Skip to content

Commit

Permalink
refactor: reorganize docs template
Browse files Browse the repository at this point in the history
  • Loading branch information
fgdorais committed Nov 11, 2024
1 parent c13ced7 commit 1a3fe2e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 27 deletions.
21 changes: 0 additions & 21 deletions BatteriesDocs.lean

This file was deleted.

15 changes: 15 additions & 0 deletions docs/docs.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/- Import project roots here -/
import Batteries

/-! # Documentation
To generate documentation for this project:
```sh
cd docs
lake build
```
The [`doc-gen4`](https://github.com/leanprover/doc-gen4) documentation will be found in the
`docs/doc` and `docs/doc-data` subdirectories.
-/
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@
"inherited": false,
"dir": "./..",
"configFile": "lakefile.toml"}],
"name": "«batteries-docs»",
"name": "docs",
"lakeDir": ".lake"}
9 changes: 4 additions & 5 deletions BatteriesDocs/lakefile.toml → docs/lakefile.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "batteries-docs"
name = "docs"
reservoir = false
buildDir = "../docs"
defaultTargets = ["BatteriesDocs"]
buildDir = "."
defaultTargets = ["docs"]

[[require]]
name = "doc-gen4"
Expand All @@ -13,6 +13,5 @@ name = "batteries"
path = ".."

[[lean_lib]]
name = "BatteriesDocs"
srcDir = ".."
name = "docs"
defaultFacets = ["docs"]

0 comments on commit 1a3fe2e

Please sign in to comment.