mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-15 05:38:30 +01:00
Add a heading and version to module section (#58)
This commit is contained in:
parent
c39cd34765
commit
673a176b93
@ -103,10 +103,15 @@ $newline never
|
||||
|
||||
$maybe (version, modules) <- mdocs
|
||||
<div .docs>
|
||||
<ul>
|
||||
$forall Module _ name url <- modules
|
||||
<li>
|
||||
<a href=#{url}>#{name}
|
||||
<h4>
|
||||
Module documentation for #{version}
|
||||
$if null modules
|
||||
<p>There are no documented modules for this package.
|
||||
$else
|
||||
<ul .docs-list>
|
||||
$forall Module _ name url <- modules
|
||||
<li>
|
||||
<a href=#{url}>#{name}
|
||||
|
||||
$if not (LT.null (LT.renderHtml (metadataReadme metadata)))
|
||||
<div .markdown-container .readme-container>
|
||||
|
||||
@ -56,9 +56,9 @@ h3 {
|
||||
margin-top: 0.5em;
|
||||
border-top: 1px solid #ddd;
|
||||
padding-top: 0.5em;
|
||||
max-height: 20ex;
|
||||
overflow: auto;
|
||||
ul {
|
||||
max-height: 20ex;
|
||||
overflow: auto;
|
||||
list-style-type: none;
|
||||
margin-left: 0;
|
||||
padding-left: 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user