Debian Codegraph @

doc/corelib/dune

raw
1 ; This is an ad-hoc rule to ease the migration, it should be handled
2 ; natively by Dune in the future.
3 (rule
4 (targets index-list.html)
5 (deps
6 make-library-index index-list.html.template hidden-files
7 (source_tree %{project_root}/theories)
8 (source_tree %{project_root}/user-contrib))
9 (action
10 (chdir %{project_root}
11 ; On windows run will fail
12 (bash "doc/corelib/make-library-index doc/corelib/index-list.html doc/corelib/hidden-files"))))
13
14 (rule
15 (targets (dir html))
16 (alias corelib-html)
17 (deps
18 ; This will be replaced soon by `theories/**/*.v` soon, thanks to rgrinberg
19 (source_tree %{project_root}/theories)
20 (source_tree %{project_root}/user-contrib)
21 (:header %{project_root}/doc/common/styles/html/coqremote/header.html)
22 (:footer %{project_root}/doc/common/styles/html/coqremote/footer.html)
23 ; For .glob files, should be gone when Coq Dune is smarter.
24 (package rocq-runtime)
25 (package coq-core)
26 (package rocq-core))
27 (action
28 (progn
29 (run mkdir -p html)
30 (bash "%{bin:coqdoc} -q -d html --with-header %{header} --with-footer %{footer} --multi-index --html -g -R %{project_root}/theories/Corelib Corelib -Q %{project_root}/theories/Ltac2 Ltac2 $(find %{project_root}/theories -name *.v)")
31 (run mv html/index.html html/genindex.html)
32 (with-stdout-to
33 _index.html
34 (progn (bash "sed 's/@@TITLE@@/Table of contents/' %{header}")
35 (cat index-list.html)
36 (cat %{footer})))
37 (run cp _index.html html/index.html))))