import CMark import DocGen4.Output.Template namespace DocGen4 namespace Output open scoped DocGen4.Jsx def ctorToHtml (i : NameInfo) : HtmlM Html := do let shortName := i.name.components'.head!.toString let name := i.name.toString pure
  • {shortName} : [←infoFormatToHtml i.type]
  • def inductiveToHtml (i : InductiveInfo) : HtmlM (Array Html) := do let constructorsHtml := let docstringHtml? := i.doc.map λ s => Html.text (CMark.renderHtml s) match docstringHtml? with | some d => pure #[constructorsHtml, d] | none => pure #[constructorsHtml] end Output end DocGen4