bookshelf-doc/Main.lean

14 lines
363 B
Plaintext
Raw Normal View History

2021-11-27 15:19:56 +00:00
import DocGen4
import Lean
open DocGen4 Lean IO
2021-11-27 15:19:56 +00:00
def main (args : List String) : IO Unit := do
let root := args.head!
let modules := args.tail!
let path ← lakeSetupSearchPath (←getLakePath) modules.toArray
IO.println s!"Loading modules from: {path}"
let doc ← load $ modules.map Name.mkSimple
2021-12-15 11:02:05 +00:00
IO.println "Outputting HTML"
htmlOutput doc root