2022-01-06 13:28:41 +00:00
|
|
|
import DocGen4.Output.Template
|
|
|
|
import DocGen4.Output.Structure
|
2022-05-19 22:36:43 +00:00
|
|
|
import DocGen4.Process
|
2022-01-06 13:28:41 +00:00
|
|
|
|
|
|
|
namespace DocGen4
|
|
|
|
namespace Output
|
|
|
|
|
|
|
|
open scoped DocGen4.Jsx
|
2022-01-06 13:51:46 +00:00
|
|
|
open Lean
|
|
|
|
|
2022-07-22 12:48:36 +00:00
|
|
|
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>
|
2022-01-06 13:28:41 +00:00
|
|
|
|
2022-05-19 22:36:43 +00:00
|
|
|
def classToHtml (i : Process.ClassInfo) : HtmlM (Array Html) := do
|
2022-07-22 12:48:36 +00:00
|
|
|
structureToHtml i
|
2022-01-06 13:28:41 +00:00
|
|
|
|
|
|
|
end Output
|
|
|
|
end DocGen4
|