doc: Output top level module

main
Henrik Böving 2022-05-19 20:54:42 +02:00
parent 653c67e9b7
commit 0b8f7a1397
1 changed files with 5 additions and 1 deletions

View File

@ -16,8 +16,12 @@ import DocGen4.Output.SourceLinker
namespace DocGen4 namespace DocGen4
open Lean Std IO System Output open Lean IO System Output
/--
The main entrypoint for outputting the documentation HTML based on an
`AnalyzerResult`.
-/
def htmlOutput (result : AnalyzerResult) (ws : Lake.Workspace) (leanHash: String) : IO Unit := do def htmlOutput (result : AnalyzerResult) (ws : Lake.Workspace) (leanHash: String) : IO Unit := do
let config : SiteContext := { depthToRoot := 0, result := result, currentName := none, sourceLinker := ←sourceLinker ws leanHash} let config : SiteContext := { depthToRoot := 0, result := result, currentName := none, sourceLinker := ←sourceLinker ws leanHash}
let basePath := FilePath.mk "." / "build" / "doc" let basePath := FilePath.mk "." / "build" / "doc"