bookshelf-doc/DocGen4/Output/Class.lean

23 lines
505 B
Plaintext
Raw Normal View History

import DocGen4.Output.Template
import DocGen4.Output.Structure
import DocGen4.Process
namespace DocGen4
namespace Output
open scoped DocGen4.Jsx
2022-01-06 13:51:46 +00:00
open Lean
def classInstancesToHtml (className : Name) : HtmlM Html := do
2022-02-12 14:09:13 +00:00
pure
<details «class»="instances">
2022-01-06 13:51:46 +00:00
<summary>Instances</summary>
2022-07-22 14:15:37 +00:00
<ul id={s!"instances-list-{className}"} class="instances-list"></ul>
2022-01-06 13:51:46 +00:00
</details>
def classToHtml (i : Process.ClassInfo) : HtmlM (Array Html) := do
structureToHtml i
end Output
end DocGen4