Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/UsersGuide/Elab.lean
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ Each genre provides a `main` function that will carry out the remainder of the s
Usually, this `main` function can be applied to the part that represents the whole document; however, genres that don't have a strict linear order (such as the {ref "website"}[website genre]) will provide their own means of configuring the document's layout.
The `main` function typically also takes configuration parameters both in the code and on the command line, such as which output formats to generate or customizations to the generated output.

Tip: for projects with large dependencies such as Mathlib, compiling the document to a native executable can take a long time.
It is often faster to run the `main` function through the Lean interpreter instead.
To do so, invoke `lake lean Main.lean --run Main.lean` in your shell, where `Main.lean` is the file in which the genre's `main` function is called with your document as an argument.
Future updates to the Verso build process may make this the default.

# Traversal
%%%
tag := "traversal"
Expand Down
2 changes: 1 addition & 1 deletion doc/UsersGuide/Serve.lean
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ tag := "serve-running"
The `verso-serve` command takes an optional port (8000 by default) and an optional directory (the current directory by default).

```
$ lake exe serve --port 8000 _out/html
$ lake exe verso-serve --port 8000 _out/html
Comment thread
Vtec234 marked this conversation as resolved.
```
:::

Expand Down
2 changes: 1 addition & 1 deletion lakefile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require plausible from git "https://github.com/leanprover-community/plausible"@"
require illuminate from git "https://github.com/leanprover/illuminate"@"main"

package verso where
precompileModules := false -- temporarily disabled to work around an issue with nightly-2025-03-30
precompileModules := true
Comment thread
Vtec234 marked this conversation as resolved.
leanOptions := #[⟨`experimental.module, true⟩]

@[default_target]
Expand Down