Skip to content

Commit

Permalink
Switch to the new doc-gen setup
Browse files Browse the repository at this point in the history
  • Loading branch information
YaelDillies committed Jan 6, 2025
1 parent 7b5d9c7 commit bb09c3b
Show file tree
Hide file tree
Showing 10 changed files with 191 additions and 104 deletions.
31 changes: 9 additions & 22 deletions .github/workflows/push_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,37 +45,24 @@ jobs:
run: curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain leanprover/lean4:4.0.0

- name: Get cache
run: ~/.elan/bin/lake -Kenv=dev exe cache get || true
run: ~/.elan/bin/lake exe cache get || true

- name: Build project
run: ~/.elan/bin/lake -Kenv=dev build LeanCamCombi
run: ~/.elan/bin/lake build LeanCamCombi

- name: Cache dependencies docs
uses: actions/cache@v3
with:
path: |
.lake/build/doc/Aesop
.lake/build/doc/Batteries
.lake/build/doc/Cli
.lake/build/doc/DocGen4
.lake/build/doc/ImportGraph
.lake/build/doc/Init
.lake/build/doc/Lake
.lake/build/doc/Lean
.lake/build/doc/LeanSearchClient
.lake/build/doc/Mathlib
.lake/build/doc/Plausible
.lake/build/doc/ProofWidgets
.lake/build/doc/Qq
.lake/build/doc/Std
.lake/build/doc/UnicodeBasic
.lake/build/doc/declarations
path: docbuild/.lake/build/doc
key: MathlibDoc-${{ hashFiles('lake-manifest.json') }}
restore-keys: |
MathlibDoc-
- name: Build documentation
run: ~/.elan/bin/lake -Kenv=dev build LeanCamCombi:docs
working-directory: docbuild
run: |
~/.elan/bin/lake exe cache get || true
~/.elan/bin/lake build LeanCamCombi:docs
# - name: Build blueprint and copy to `website/blueprint`
# uses: xu-cheng/texlive-action@v2
Expand All @@ -95,7 +82,7 @@ jobs:

- name: Copy documentation to `website/docs`
run: |
mv .lake/build/doc website/docs
mv docbuild/.lake/build/doc website/docs
- name: Bundle dependencies
uses: ruby/setup-ruby@v1
Expand All @@ -119,4 +106,4 @@ jobs:

- name: Make sure the cache works
run: |
mv website/docs .lake/build/doc
mv website/docs docbuild/.lake/build/doc
1 change: 0 additions & 1 deletion LeanCamCombi.lean
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import LeanCamCombi.Mathlib.Algebra.MvPolynomial.Basic
import LeanCamCombi.Mathlib.Algebra.MvPolynomial.Degrees
import LeanCamCombi.Mathlib.Algebra.MvPolynomial.Equiv
import LeanCamCombi.Mathlib.Algebra.Order.Monoid.Unbundled.Pow
import LeanCamCombi.Mathlib.Algebra.Polynomial.Degree.Lemmas
import LeanCamCombi.Mathlib.Algebra.Polynomial.Degree.Operations
import LeanCamCombi.Mathlib.Algebra.Ring.Hom.Defs
import LeanCamCombi.Mathlib.AlgebraicGeometry.PrimeSpectrum.Basic
Expand Down
3 changes: 1 addition & 2 deletions LeanCamCombi/GrowthInGroups/Chevalley.lean
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import Mathlib.AlgebraicGeometry.PrimeSpectrum.Polynomial
import Mathlib.Data.DFinsupp.WellFounded
import LeanCamCombi.GrowthInGroups.ConstructiblePrimeSpectrum
import LeanCamCombi.Mathlib.Algebra.Polynomial.Degree.Lemmas
import LeanCamCombi.Mathlib.Algebra.Polynomial.Degree.Operations
import LeanCamCombi.Mathlib.Data.Prod.Lex
import LeanCamCombi.Mathlib.RingTheory.FinitePresentation
import LeanCamCombi.Mathlib.RingTheory.Localization.Integral
import LeanCamCombi.GrowthInGroups.ConstructiblePrimeSpectrum

open Polynomial PrimeSpectrum TensorProduct Topology

Expand Down
10 changes: 0 additions & 10 deletions LeanCamCombi/Mathlib/Algebra/Polynomial/Degree/Lemmas.lean

This file was deleted.

142 changes: 142 additions & 0 deletions docbuild/lake-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{"version": "1.1.0",
"packagesDir": "../.lake/packages",
"packages":
[{"url": "https://github.com/leanprover/doc-gen4",
"type": "git",
"subDir": null,
"scope": "leanprover",
"rev": "0291556f04e89d46cd2999f0f4c1164c81778207",
"name": "«doc-gen4»",
"manifestFile": "lake-manifest.json",
"inputRev": "v4.15.0",
"inherited": false,
"configFile": "lakefile.lean"},
{"type": "path",
"scope": "",
"name": "LeanCamCombi",
"manifestFile": "lake-manifest.json",
"inherited": false,
"dir": "./../",
"configFile": "lakefile.lean"},
{"url": "https://github.com/mhuisi/lean4-cli",
"type": "git",
"subDir": null,
"scope": "",
"rev": "0c8ea32a15a4f74143e4e1e107ba2c412adb90fd",
"name": "Cli",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inherited": true,
"configFile": "lakefile.toml"},
{"url": "https://github.com/fgdorais/lean4-unicode-basic",
"type": "git",
"subDir": null,
"scope": "",
"rev": "470c41643209208d325a5a7315116f293c7443fb",
"name": "UnicodeBasic",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inherited": true,
"configFile": "lakefile.lean"},
{"url": "https://github.com/dupuisf/BibtexQuery",
"type": "git",
"subDir": null,
"scope": "",
"rev": "46376bc3c8f46ac1a1fd7712856b0f7bd6166098",
"name": "BibtexQuery",
"manifestFile": "lake-manifest.json",
"inputRev": "master",
"inherited": true,
"configFile": "lakefile.lean"},
{"url": "https://github.com/acmepjz/md4lean",
"type": "git",
"subDir": null,
"scope": "",
"rev": "f8ed91f3a9d806648ae6a03ab98c8b87e8bedc7e",
"name": "MD4Lean",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inherited": true,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover-community/mathlib4.git",
"type": "git",
"subDir": null,
"scope": "",
"rev": "9837ca9d65d9de6fad1ef4381750ca688774e608",
"name": "mathlib",
"manifestFile": "lake-manifest.json",
"inputRev": "v4.15.0",
"inherited": true,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover-community/plausible",
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "2c57364ef83406ea86d0f78ce3e342079a2fece5",
"name": "plausible",
"manifestFile": "lake-manifest.json",
"inputRev": "v4.15.0",
"inherited": true,
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover-community/LeanSearchClient",
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "003ff459cdd85de551f4dcf95cdfeefe10f20531",
"name": "LeanSearchClient",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inherited": true,
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover-community/import-graph",
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "9a0b533c2fbd6195df067630be18e11e4349051c",
"name": "importGraph",
"manifestFile": "lake-manifest.json",
"inputRev": "v4.15.0",
"inherited": true,
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover-community/ProofWidgets4",
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "2b000e02d50394af68cfb4770a291113d94801b5",
"name": "proofwidgets",
"manifestFile": "lake-manifest.json",
"inputRev": "v0.0.48",
"inherited": true,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover-community/aesop",
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "2689851f387bb2cef351e6825fe94a56a304ca13",
"name": "aesop",
"manifestFile": "lake-manifest.json",
"inputRev": "v4.15.0",
"inherited": true,
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover-community/quote4",
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "f0c584bcb14c5adfb53079781eeea75b26ebbd32",
"name": "Qq",
"manifestFile": "lake-manifest.json",
"inputRev": "v4.15.0",
"inherited": true,
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover-community/batteries",
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "e8dc5fc16c625fc4fe08f42d625523275ddbbb4b",
"name": "batteries",
"manifestFile": "lake-manifest.json",
"inputRev": "v4.15.0",
"inherited": true,
"configFile": "lakefile.toml"}],
"name": "docbuild",
"lakeDir": ".lake"}
13 changes: 13 additions & 0 deletions docbuild/lakefile.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name = "docbuild"
reservoir = false
version = "0.1.0"
packagesDir = "../.lake/packages"

[[require]]
name = "LeanCamCombi"
path = "../"

[[require]]
scope = "leanprover"
name = "doc-gen4"
rev = "v4.15.0"
1 change: 1 addition & 0 deletions docbuild/lean-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
leanprover/lean4:v4.15.0
86 changes: 23 additions & 63 deletions lake-manifest.json
Original file line number Diff line number Diff line change
@@ -1,74 +1,24 @@
{"version": "1.1.0",
"packagesDir": ".lake/packages",
"packages":
[{"url": "https://github.com/leanprover/doc-gen4",
[{"url": "https://github.com/leanprover-community/mathlib4.git",
"type": "git",
"subDir": null,
"scope": "",
"rev": "e498801db5f148f633237b7cf9f4284f0fd197f8",
"name": "«doc-gen4»",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inherited": false,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover-community/mathlib4.git",
"type": "git",
"subDir": null,
"scope": "",
"rev": "0571c82877b7c2b508cbc9a39e041eb117d050b7",
"rev": "9837ca9d65d9de6fad1ef4381750ca688774e608",
"name": "mathlib",
"manifestFile": "lake-manifest.json",
"inputRev": null,
"inputRev": "v4.15.0",
"inherited": false,
"configFile": "lakefile.lean"},
{"url": "https://github.com/mhuisi/lean4-cli",
"type": "git",
"subDir": null,
"scope": "",
"rev": "0c8ea32a15a4f74143e4e1e107ba2c412adb90fd",
"name": "Cli",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inherited": true,
"configFile": "lakefile.toml"},
{"url": "https://github.com/fgdorais/lean4-unicode-basic",
"type": "git",
"subDir": null,
"scope": "",
"rev": "d55279d2ff01759fa75752fcf1a93d1db8db18ff",
"name": "UnicodeBasic",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inherited": true,
"configFile": "lakefile.lean"},
{"url": "https://github.com/dupuisf/BibtexQuery",
"type": "git",
"subDir": null,
"scope": "",
"rev": "982700bcf78b93166e5b1af0b4b756b8acfdb54b",
"name": "BibtexQuery",
"manifestFile": "lake-manifest.json",
"inputRev": "master",
"inherited": true,
"configFile": "lakefile.lean"},
{"url": "https://github.com/acmepjz/md4lean",
"type": "git",
"subDir": null,
"scope": "",
"rev": "fe8e6e649ac8251f43c6f6f934f095ebebce7e7c",
"name": "MD4Lean",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inherited": true,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover-community/plausible",
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "8e5cb8d424df462f84997dd68af6f40e347c3e35",
"rev": "2c57364ef83406ea86d0f78ce3e342079a2fece5",
"name": "plausible",
"manifestFile": "lake-manifest.json",
"inputRev": "v4.15.0-rc1",
"inputRev": "v4.15.0",
"inherited": true,
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover-community/LeanSearchClient",
Expand All @@ -85,10 +35,10 @@
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "ed3b856bd8893ade75cafe13e8544d4c2660f377",
"rev": "9a0b533c2fbd6195df067630be18e11e4349051c",
"name": "importGraph",
"manifestFile": "lake-manifest.json",
"inputRev": "v4.15.0-rc1",
"inputRev": "v4.15.0",
"inherited": true,
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover-community/ProofWidgets4",
Expand All @@ -105,29 +55,39 @@
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "a4a08d92be3de00def5298059bf707c72dfd3c66",
"rev": "2689851f387bb2cef351e6825fe94a56a304ca13",
"name": "aesop",
"manifestFile": "lake-manifest.json",
"inputRev": "master",
"inputRev": "v4.15.0",
"inherited": true,
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover-community/quote4",
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "ad942fdf0b15c38bface6acbb01d63855a2519ac",
"rev": "f0c584bcb14c5adfb53079781eeea75b26ebbd32",
"name": "Qq",
"manifestFile": "lake-manifest.json",
"inputRev": "v4.14.0",
"inputRev": "v4.15.0",
"inherited": true,
"configFile": "lakefile.lean"},
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover-community/batteries",
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "f007bfe46ea8fb801ec907df9ab540054abcc5fd",
"rev": "e8dc5fc16c625fc4fe08f42d625523275ddbbb4b",
"name": "batteries",
"manifestFile": "lake-manifest.json",
"inputRev": "v4.15.0",
"inherited": true,
"configFile": "lakefile.toml"},
{"url": "https://github.com/leanprover/lean4-cli",
"type": "git",
"subDir": null,
"scope": "leanprover",
"rev": "0c8ea32a15a4f74143e4e1e107ba2c412adb90fd",
"name": "Cli",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inherited": true,
"configFile": "lakefile.toml"}],
Expand Down
Loading

0 comments on commit bb09c3b

Please sign in to comment.