Skip to content

Commit

Permalink
refactor: further simplify setup
Browse files Browse the repository at this point in the history
  • Loading branch information
fgdorais committed Nov 11, 2024
1 parent 1a3fe2e commit 9556fbc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Build Docs
working-directory: docs
run: lake build -q
run: lake build -q Batteries:docs

- name: Deploy Docs
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: Build Docs
working-directory: docs
run: lake build -q
run: lake build -q Batteries:docs

- name: Compress Docs
working-directory: docs
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ Additionally, please make sure that you're using the version of Lean that the cu

# Documentation

You can generate `batteries`' documentation with
You can generate `batteries` documentation with

```sh
cd docs
lake build
lake build Batteries:docs
```

The top-level HTML file will be located at `docs/doc/index.html`, though to actually expose the
documentation as a server you need to change to the `docs/doc` and then run a HTTP server (e.g. `python3 -m http.server`).
documentation you need to run a HTTP server (e.g. `python3 -m http.server`) in the `docs/doc` directory.

Note that documentation for the latest nightly of `batteries` is also available as part of [the Mathlib 4
documentation][mathlib4 docs].
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.lake/
15 changes: 0 additions & 15 deletions docs/docs.lean

This file was deleted.

5 changes: 0 additions & 5 deletions docs/lakefile.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name = "docs"
reservoir = false
buildDir = "."
defaultTargets = ["docs"]

[[require]]
name = "doc-gen4"
Expand All @@ -11,7 +10,3 @@ rev = "main"
[[require]]
name = "batteries"
path = ".."

[[lean_lib]]
name = "docs"
defaultFacets = ["docs"]

0 comments on commit 9556fbc

Please sign in to comment.