feat: short names in side bar
parent
84a116ac43
commit
327fdf0ddd
|
@ -108,7 +108,7 @@ def moduleNameToLink (n : Name) : BaseHtmlM String := do
|
||||||
Returns the HTML doc-gen4 link to a module name.
|
Returns the HTML doc-gen4 link to a module name.
|
||||||
-/
|
-/
|
||||||
def moduleToHtmlLink (module : Name) : BaseHtmlM Html := do
|
def moduleToHtmlLink (module : Name) : BaseHtmlM Html := do
|
||||||
pure <a href={←moduleNameToLink module}>{module.toString}</a>
|
pure <a href={←moduleNameToLink module}>{module.getString!}</a>
|
||||||
|
|
||||||
/--
|
/--
|
||||||
Returns the LeanInk link to a module name.
|
Returns the LeanInk link to a module name.
|
||||||
|
|
|
@ -33,7 +33,7 @@ partial def moduleListDir (h : Hierarchy) : BaseHtmlM Html := do
|
||||||
if h.isFile then
|
if h.isFile then
|
||||||
<summary>{←moduleToHtmlLink h.getName}</summary>
|
<summary>{←moduleToHtmlLink h.getName}</summary>
|
||||||
else
|
else
|
||||||
<summary>{h.getName.toString}</summary>
|
<summary>{h.getName.getString!}</summary>
|
||||||
|
|
||||||
pure
|
pure
|
||||||
<details class="nav_sect" "data-path"={moduleLink} [if (←getCurrentName).any (h.getName.isPrefixOf ·) then #[("open", "")] else #[]]>
|
<details class="nav_sect" "data-path"={moduleLink} [if (←getCurrentName).any (h.getName.isPrefixOf ·) then #[("open", "")] else #[]]>
|
||||||
|
|
Loading…
Reference in New Issue