1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
(documentation
(package odoc)
(mld_files
driver
dune
features
index
interface
ocamldoc_differences
odoc_for_authors
cheatsheet
json))
; Uncomment to run mdx on the documentation's code blocks.
; (mdx
; (files
; driver.mld
; dune.mld
; features.mld
; index.mld
; interface.mld
; ocamldoc_differences.mld
; odoc_for_authors.mld
; parent_child_spec.mld))
; The driver is also used to collect benchmarks. The benchmark result is always
; generated but is promoted only by the @bench alias.
(rule
(targets driver.mld.corrected driver-benchmarks.json)
(enabled_if
(> %{ocaml_version} 4.11))
(deps
(package odoc)
(universe) ; Benchmark depends on the running time of odoc commands
(glob_files *.mld)
(glob_files *.js)
(glob_files library_mlds/*)
(glob_files examples/*.ml*))
(action
(progn
(write-file driver-benchmarks.json "")
(run ocaml-mdx-test --force-output %{dep:driver.mld}))))
(rule
(alias docgen)
(action
(progn
(diff driver.mld driver.mld.corrected))))
(install
(section doc)
(files
odoc-config.sexp
(odoc_logo_placeholder.jpg as odoc-pages/odoc_logo_placeholder.jpg))
(package odoc))
(install
(section doc)
(files
(odoc-parser-config.sexp as odoc-config.sexp))
(package odoc-parser))
|