diff --git a/DocGen4/Output/Navbar.lean b/DocGen4/Output/Navbar.lean index e56aa38..1a75288 100644 --- a/DocGen4/Output/Navbar.lean +++ b/DocGen4/Output/Navbar.lean @@ -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]