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
2 changes: 1 addition & 1 deletion .github/workflows/generate_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: opam install -y --deps-only . && opam exec -- make -j 4

- name: Install Rocqnavi
run: opam install -y rocq-navi
run: opam install -y rocq-navi.0.3.1

- name: Generate Documents
run: |
Expand Down
25 changes: 4 additions & 21 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -132,33 +132,16 @@ $(DOCDIR)/dependency_graph.dot: $(DOCDIR)/dependency_graph.pre
tred $(DOCDIR)/dependency_graph.pre > $(DOCDIR)/dependency_graph.dot

html: build $(DOCDIR)/dependency_graph.dot
etc/rocqnavi_generate-hierarchy-graph.sh $(DOCDIR)/hierarchy_graph.dot
mkdir -p $(DOCDIR)
find . -not -path '*/.*' -name "*.v" -or -name "*.glob" | xargs rocqnavi \
-title "Mathcomp Analysis" \
-d $(DOCDIR) -base mathcomp -Q theories analysis \
-coqlib https://rocq-prover.org/doc/V8.20.1/stdlib/ \
-dependency-graph $(DOCDIR)/dependency_graph.dot \
-hierarchy-graph $(DOCDIR)/hierarchy_graph.dot \
-index-blacklist etc/rocqnavi_index-blacklist \
-show-type-information-using-coqtop-process \
-external https://math-comp.github.io/htmldoc_2_3_0/ mathcomp.ssreflect \
-external https://math-comp.github.io/htmldoc_2_3_0/ mathcomp.algebra

machtml: build $(DOCDIR)/dependency_graph.dot
coqdep -f _CoqProject > depend.d
cat -n depend.d >&2
gsed -i 's/Classical/mathcomp\.classical/' depend.dot
gsed -i 's/Theories/mathcomp\.analysis/' depend.dot
gsed -i 's/Reals_stdlib/mathcomp\.reals_stdlib/' depend.dot
gsed -i 's/Experimental_reals/mathcomp\.experimental_reals/' depend.dot
gsed -i 's/Reals/mathcomp\.reals/' depend.dot
gsed -i 's/Analysis_stdlib/mathcomp\.analysis_stdlib/' depend.dot
gsed -i 's/\//\./g' depend.dot
../coq2html/tools/generate-hierarchy-graph.sh
rm test_interval_inference.glob
find . -not -path '*/.*' -name "*.v" -or -name "*.glob" | xargs ../coq2html/rocqnavi \
-title "Mathcomp Analysis" \
-d $(DOCDIR) -base mathcomp -Q theories analysis \
-coqlib https://rocq-prover.org/doc/V8.20.1/stdlib/ \
-hierarchy-graph "hierarchy-graph.dot" \
-dependency-graph $(DOCDIR)/dependency_graph.dot \
-external https://math-comp.github.io/htmldoc_2_3_0/ mathcomp.ssreflect \
-external https://math-comp.github.io/htmldoc_2_3_0/ mathcomp.algebra \
-index-blacklist ../coq2html/tools/index-blacklist
12 changes: 12 additions & 0 deletions etc/rocqnavi_generate-hierarchy-graph.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
DST=$1
coqtop -Q classical mathcomp.classical -Q reals mathcomp.reals -Q reals_stdlib mathcomp.reals_stdlib -Q experimental_reals mathcomp.experimental_reals -Q theories mathcomp.analysis -Q analysis_stdlib mathcomp.analysis_stdlib <<EOF
From HB Require Import structures.
Require Import mathcomp.classical.all_classical.
Require Import mathcomp.analysis.all_analysis.
Require Import mathcomp.reals_stdlib.Rstruct.
Require Import mathcomp.reals.all_reals.
Import mathcomp.analysis.lebesgue_integral_theory.simple_functions.HBSimple.
Import mathcomp.analysis.lebesgue_integral_theory.simple_functions.HBNNSimple.
Require Import mathcomp.analysis_stdlib.Rstruct_topology.
HB.graph "$DST".
EOF
4 changes: 4 additions & 0 deletions etc/rocqnavi_index-blacklist
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*__to__*
*__canonical__*
*_unnamed_factory_*
*_unnamed_mixin_*