diff --git a/DocGen4/Output/Navbar.lean b/DocGen4/Output/Navbar.lean index c94b6d9..fee4598 100644 --- a/DocGen4/Output/Navbar.lean +++ b/DocGen4/Output/Navbar.lean @@ -32,13 +32,12 @@ partial def moduleListDir (h : Hierarchy) : HtmlM Html := do [fileNodes] -def moduleList : HtmlM (Array Html) := do +def moduleList : HtmlM Html := do let hierarchy := (←getResult).hierarchy let mut list := Array.empty for (n, cs) in hierarchy.getChildren do - list := list.push

{n.toString}

list := list.push $ ←moduleListDir cs - list + return
[list]
def navbar : HtmlM Html := do end Output diff --git a/static/style.css b/static/style.css index 727ba48..958eb2f 100644 --- a/static/style.css +++ b/static/style.css @@ -268,6 +268,11 @@ nav { margin-bottom: 1ex; } +/* top-level modules in left navbar */ +.nav .module_list > details { + margin-top: 1ex; +} + .nav details > * { padding-left: 2ex; } @@ -287,10 +292,6 @@ nav { margin-block-end: 4px; } -.nav h4 { - margin-bottom: 1ex; -} - /* People use way too long declaration names. */ .internal_nav, .decl_name { overflow-wrap: break-word;