fix: doc string for all DocInfo

main
Xubai Wang 2022-02-17 13:53:29 +08:00
parent b7c6a98969
commit 5790172eab
1 changed files with 3 additions and 1 deletions

View File

@ -81,6 +81,8 @@ def docInfoToHtml (module : Name) (doc : DocInfo) : HtmlM Html := do
| DocInfo.definitionInfo i => definitionToHtml i | DocInfo.definitionInfo i => definitionToHtml i
| DocInfo.instanceInfo i => instanceToHtml i | DocInfo.instanceInfo i => instanceToHtml i
| DocInfo.classInductiveInfo i => classInductiveToHtml i | DocInfo.classInductiveInfo i => classInductiveToHtml i
| i => match i.getDocString with
| some d => pure #[docStringToHtml d]
| _ => pure #[] | _ => pure #[]
let attrs := doc.getAttrs let attrs := doc.getAttrs