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
4 changes: 2 additions & 2 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
- uses: leanprover/lean-action@v1
with:
test: false
build-args: "-R -Kwerror -Kenv=doc" # IDK if these are necessary?
build-args: "-Kwerror"
use-mathlib-cache: true
- name: build docs
run: |
lake build -R -Kwerror -Kenv=doc SampCert:docs
lake build -Kwerror SampCert:docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Barring the exceptions made for extraction, SLang programs should follow this na

## Tools

SampCert uses [doc-gen4](https://github.com/leanprover/doc-gen4) to render its documentation. You can build a local copy using the command ``lake -R -Kenv=doc build SampCert:docs``.
SampCert uses [doc-gen4](https://github.com/leanprover/doc-gen4) to render its documentation. You can build a local copy using the command ``lake build SampCert:docs``.

SampCert also installs [import-graph](https://github.com/leanprover-community/import-graph). The command ``lake exe graph --to SampCert import_graph.pdf`` will render a dependency graph between SampCert files.

Expand Down
52 changes: 51 additions & 1 deletion lake-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@
"inputRev": "v4.29.0",
"inherited": false,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover/doc-gen4",
"type": "git",
"subDir": null,
"scope": "",
"rev": "aa4c3e4e14f5b31495b7c7238762ecceddd9f52c",
"name": "«doc-gen4»",
"manifestFile": "lake-manifest.json",
"inputRev": "v4.29.0",
"inherited": false,
"configFile": "lakefile.lean"},
{"url": "https://github.com/leanprover-community/plausible",
"type": "git",
"subDir": null,
Expand Down Expand Up @@ -90,6 +100,46 @@
"manifestFile": "lake-manifest.json",
"inputRev": "v4.29.0",
"inherited": true,
"configFile": "lakefile.toml"}],
"configFile": "lakefile.toml"},
{"url": "https://github.com/kim-em/leansqlite",
"type": "git",
"subDir": null,
"scope": "",
"rev": "d14544c72b593af6a66131bc34cdab16bf7c0940",
"name": "leansqlite",
"manifestFile": "lake-manifest.json",
"inputRev": "suppress-reducibility-warning",
"inherited": true,
"configFile": "lakefile.lean"},
{"url": "https://github.com/fgdorais/lean4-unicode-basic",
"type": "git",
"subDir": null,
"scope": "",
"rev": "9539e34e5cb2d52a6454d9b6218f6b6835cad071",
"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": "5d31b64fb703c5d77f6ef4d1fb958f9bdf1ea539",
"name": "BibtexQuery",
"manifestFile": "lake-manifest.json",
"inputRev": "nightly-testing",
"inherited": true,
"configFile": "lakefile.toml"},
{"url": "https://github.com/acmepjz/md4lean",
"type": "git",
"subDir": null,
"scope": "",
"rev": "6a3fb240133bcb7e1a066fdc784b3fdc304e3fc5",
"name": "MD4Lean",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
"inherited": true,
"configFile": "lakefile.lean"}],
"name": "sampcert",
"lakeDir": ".lake"}
7 changes: 3 additions & 4 deletions lakefile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ open Lake DSL System
package «sampcert» where
testDriver := "test"

require «doc-gen4» from git
"https://github.com/leanprover/doc-gen4" @ "v4.29.0"

require mathlib from git
"https://github.com/leanprover-community/mathlib4.git" @ "v4.29.0"

-- From doc-gen4
meta if get_config? env = some "doc" then
require «doc-gen4» from git "https://github.com/leanprover/doc-gen4" @ "main"

target ffi.o (pkg : NPackage __name__) : FilePath := do
let oFile := pkg.buildDir / "ffi.o"
let srcFile ← inputFile (pkg.dir / "ffi.cpp") false
Expand Down
Loading