-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dune] [doc] Support for building the reference manual with Dune.
This is a reduced version of coq#8503 as to provide a way to build the reference manual with Dune. Dune 1.6 supports (experimentally) directories as targets, thus we introduce a rule that will call `sphinx` to build the manual. This only provides build, however generation of `.install` rules is not done, it will be hopefully addressed in coq#8503. Note that we set `expire: 1 month` for all the artifacts we build with Dune. IMHO this makes most sense as not to abuse Gitlab's hosting, however of course we could consider a different deployment strategy if wanted.
- Loading branch information
Showing
10 changed files
with
137 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
synopsis: "The Coq Proof Assistant --- Reference Manual" | ||
description: """ | ||
Coq is a formal proof management system. It provides | ||
a formal language to write mathematical definitions, executable | ||
algorithms and theorems together with an environment for | ||
semi-interactive development of machine-checked proofs. | ||
|
||
This package provides the Coq Reference Manual. | ||
""" | ||
opam-version: "2.0" | ||
maintainer: "The Coq development team <[email protected]>" | ||
authors: "The Coq development team, INRIA, CNRS, and contributors." | ||
homepage: "https://coq.inria.fr/" | ||
bug-reports: "https://github.com/coq/coq/issues" | ||
dev-repo: "https://github.com/coq/coq.git" | ||
license: "Open Publication License" | ||
|
||
depends: [ | ||
"dune" { build } | ||
"coq" { build } | ||
] | ||
|
||
build-env: [ | ||
[ COQ_CONFIGURE_PREFIX = "%{prefix}" ] | ||
] | ||
|
||
build: [ | ||
[ "dune" "build" "@refman" "-j" jobs ] | ||
] | ||
|
||
# Would be better to have a *-conf package? | ||
depexts: [ | ||
[ "sphinx" ] | ||
[ "sphinx_rtd_theme" ] | ||
[ "beautifulsoup4" ] | ||
[ "antlr4-python3-runtime"] | ||
[ "pexpect" ] | ||
[ "sphinxcontrib-bibtex" ] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
(rule | ||
(targets sphinx_build) | ||
(deps | ||
; We could use finer dependencies here so the build is faster: | ||
; | ||
; - vo files: generated by sphinx after parsing the doc, promoted, | ||
; - Static files: | ||
; + %{bin:coqdoc} etc... | ||
; + config/coq_config.py | ||
; + tools/coqdoc/coqdoc.css | ||
(package coq) | ||
(source_tree sphinx) | ||
(source_tree tools)) | ||
(action (run sphinx-build -j4 -b html -d sphinx_build/doctrees sphinx sphinx_build/html))) | ||
|
||
(alias | ||
(name refman-html) | ||
(deps sphinx_build)) | ||
|
||
; The install target still needs more work. | ||
; (install | ||
; (section doc) | ||
; (package coq-refman) | ||
; (files sphinx_build)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(dirs :standard _static) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
(lang dune 1.4) | ||
|
||
(lang dune 1.6) | ||
(name coq) |