diff --git a/DocGen4/Output/Navbar.lean b/DocGen4/Output/Navbar.lean index efc9735..1a75288 100644 --- a/DocGen4/Output/Navbar.lean +++ b/DocGen4/Output/Navbar.lean @@ -14,7 +14,7 @@ open Lean open scoped DocGen4.Jsx def moduleListFile (file : Name) : HtmlM Html := do - pure
+ pure
{file.toString}
@@ -29,7 +29,12 @@ partial def moduleListDir (h : Hierarchy) : HtmlM Html := do pure
- {Html.element "summary" true #[] #[{h.getName.toString}]} + { + if (←getResult).moduleInfo.contains h.getName then + Html.element "summary" true #[] #[{h.getName.toString}] + else + {h.getName.toString} + } [dirNodes] [fileNodes]
diff --git a/static/style.css b/static/style.css index a4e0c9a..d056b40 100644 --- a/static/style.css +++ b/static/style.css @@ -273,10 +273,15 @@ nav { margin-top: 1ex; } -.nav details, .nav_link { +.nav details > * { padding-left: 2ex; } +.nav summary { + cursor: pointer; + padding-left: 0; +} + .nav summary::marker { font-size: 85%; } @@ -294,6 +299,10 @@ nav { overflow-wrap: break-word; } +.nav_link { + overflow-wrap: break-word; +} + .decl > div, .mod_doc { padding-left: 8px; padding-right: 8px;