-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.lean
More file actions
23 lines (19 loc) · 749 Bytes
/
Copy pathMain.lean
File metadata and controls
23 lines (19 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/-
Minimal executable for `lake exe generate-site`.
Calls Verso's manual site generator to build docs/verso/_build/.
See docs/contributor-playbook.md#verso-integration-optional and docs/generated-artifacts.md.
-/
import VersoManual
import ScientificMemoryVerso
open Verso.Genre Manual
def config : Config where
destination := "docs/verso/_build"
emitTeX := false
emitHtmlSingle := .no
emitHtmlMulti := .immediately
htmlDepth := 2
-- Avoid relying on bundled search assets in this minimal setup.
features := {}
def main (args : List String) : IO UInt32 := do
let options := if args.isEmpty then ["--output", "docs/verso/_build"] else args
manualMain (%doc ScientificMemoryVerso) (options := options) (config := { config with })