Skip to content

Commit

Permalink
Move mdx doc targets as separate package
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbin committed Jan 10, 2025
1 parent f549f1b commit e880688
Show file tree
Hide file tree
Showing 19 changed files with 223 additions and 18 deletions.
75 changes: 75 additions & 0 deletions bopkit-dev.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis:
"Package to regroup dev targets for the bopkit project, documentation, and more"
maintainer: ["Mathieu Barbin <[email protected]>"]
authors: ["Mathieu Barbin"]
license: "MIT"
homepage: "https://github.com/mbarbin/bopkit"
doc: "https://mbarbin.github.io/bopkit/"
bug-reports: "https://github.com/mbarbin/bopkit/issues"
depends: [
"dune" {>= "3.17"}
"ocaml" {>= "5.2"}
"ocamlformat" {with-dev-setup & = "0.27.0"}
"ANSITerminal" {>= "0.8.3"}
"appendable-list" {>= "v0.17" & < "v0.18"}
"auto-format" {>= "0.0.14"}
"base" {>= "v0.17" & < "v0.18"}
"base_quickcheck" {>= "v0.17" & < "v0.18"}
"bopkit" {= version}
"bopkit-dev" {= version}
"cmdlang" {>= "0.0.9"}
"cmdlang-cmdliner-runner" {>= "0.0.8"}
"cmdlang-to-cmdliner" {>= "0.0.9"}
"cmdliner" {>= "1.3.0"}
"comments-parser" {>= "0.2.2"}
"core" {>= "v0.17" & < "v0.18"}
"dune-site" {>= "3.17"}
"expect_test_helpers_core" {>= "v0.17" & < "v0.18"}
"fpath" {>= "0.7.3"}
"fpath-base" {>= "0.2.2"}
"graphics" {>= "5.1.2"}
"loc" {>= "0.2.0"}
"mdx" {>= "2.4"}
"menhir" {>= "20220210"}
"parsing-utils" {>= "0.2.2"}
"pp" {>= "2.0.0"}
"pp-extended" {>= "0.0.2"}
"pp-log" {>= "0.0.8"}
"ppx_compare" {>= "v0.17" & < "v0.18"}
"ppx_enumerate" {>= "v0.17" & < "v0.18"}
"ppx_expect" {>= "v0.17" & < "v0.18"}
"ppx_fields_conv" {>= "v0.17" & < "v0.18"}
"ppx_hash" {>= "v0.17" & < "v0.18"}
"ppx_here" {>= "v0.17" & < "v0.18"}
"ppx_js_style" {with-dev-setup & >= "v0.17" & < "v0.18"}
"ppx_let" {>= "v0.17" & < "v0.18"}
"ppx_sexp_conv" {>= "v0.17" & < "v0.18"}
"ppx_sexp_value" {>= "v0.17" & < "v0.18"}
"ppxlib" {>= "0.33"}
"stdio" {>= "v0.17" & < "v0.18"}
"stdune" {>= "3.17"}
"subleq" {= version}
"tsdl" {= "1.0.0"}
"tsdl-image" {>= "0.6"}
"visa" {= version}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"--promote-install-files=false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/mbarbin/bopkit.git"
2 changes: 1 addition & 1 deletion doc/dune
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
(mdx
(package bopkit-tests))
(package bopkit-dev))
4 changes: 2 additions & 2 deletions doc/reference/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(mdx
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)
(glob_files *.bop)))
Expand All @@ -20,7 +20,7 @@
(run dune format-dune-file)))))

(cram
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)
%{bin:bopkit}
Expand Down
130 changes: 130 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -453,3 +453,133 @@
(>= 0.6))
(visa
(= :version))))

(package
(name bopkit-dev)
(synopsis
"Package to regroup dev targets for the bopkit project, documentation, and more")
(allow_empty) ; The package is attached to mdx stanzas however dune doesn't see it.
(depends
(ocaml
(>= 5.2))
(ocamlformat
(and
:with-dev-setup
(= 0.27.0)))
(ANSITerminal
(>= 0.8.3))
(appendable-list
(and
(>= v0.17)
(< v0.18)))
(auto-format
(>= 0.0.14))
(base
(and
(>= v0.17)
(< v0.18)))
(base_quickcheck
(and
(>= v0.17)
(< v0.18)))
(bopkit
(= :version))
(bopkit-dev
(= :version))
(cmdlang
(>= 0.0.9))
(cmdlang-cmdliner-runner
(>= 0.0.8))
(cmdlang-to-cmdliner
(>= 0.0.9))
(cmdliner
(>= 1.3.0))
(comments-parser
(>= 0.2.2))
(core
(and
(>= v0.17)
(< v0.18)))
(dune-site
(>= 3.17))
(expect_test_helpers_core
(and
(>= v0.17)
(< v0.18)))
(fpath
(>= 0.7.3))
(fpath-base
(>= 0.2.2))
(graphics
(>= 5.1.2))
(loc
(>= 0.2.0))
(mdx
(>= 2.4))
(menhir
(>= 20220210))
(parsing-utils
(>= 0.2.2))
(pp
(>= 2.0.0))
(pp-extended
(>= 0.0.2))
(pp-log
(>= 0.0.8))
(ppx_compare
(and
(>= v0.17)
(< v0.18)))
(ppx_enumerate
(and
(>= v0.17)
(< v0.18)))
(ppx_expect
(and
(>= v0.17)
(< v0.18)))
(ppx_fields_conv
(and
(>= v0.17)
(< v0.18)))
(ppx_hash
(and
(>= v0.17)
(< v0.18)))
(ppx_here
(and
(>= v0.17)
(< v0.18)))
(ppx_js_style
(and
:with-dev-setup
(>= v0.17)
(< v0.18)))
(ppx_let
(and
(>= v0.17)
(< v0.18)))
(ppx_sexp_conv
(and
(>= v0.17)
(< v0.18)))
(ppx_sexp_value
(and
(>= v0.17)
(< v0.18)))
(ppxlib
(>= 0.33))
(stdio
(and
(>= v0.17)
(< v0.18)))
(stdune
(>= 3.17))
(subleq
(= :version))
(tsdl
(= 1.0.0))
(tsdl-image
(>= 0.6))
(visa
(= :version))))
2 changes: 1 addition & 1 deletion editor/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(mdx
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)))
2 changes: 1 addition & 1 deletion project/digital-watch/dune
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
(glob_files *.bop)))

(mdx
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)
(glob_files *.bop)))
2 changes: 1 addition & 1 deletion project/subleq/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(mdx
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)
(glob_files *.input)))
Expand Down
2 changes: 1 addition & 1 deletion project/visa/doc/dune
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
(glob_files *.bop)))

(mdx
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)
(package visa)
Expand Down
2 changes: 1 addition & 1 deletion project/visa/lib/visa_dsl/src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
ppx_sexp_value)))

(mdx
(package bopkit-tests)
(package bopkit-dev)
(files :standard - *.mli))
2 changes: 1 addition & 1 deletion project/visa/test/runtime/dune
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
(glob_files *.bop)))

(mdx
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)
get_date.exe
Expand Down
2 changes: 1 addition & 1 deletion stdlib/7-segment/dune
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
(glob_files *.bop)))

(mdx
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)
(glob_files *.bop)))
2 changes: 1 addition & 1 deletion stdlib/bopboard/example/dune
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
(glob_files *.bop)))

(mdx
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)
(glob_files *.bop)))
2 changes: 1 addition & 1 deletion stdlib/counter/dune
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
(run dune format-dune-file)))))

(mdx
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)
(glob_files *.bop)))
2 changes: 1 addition & 1 deletion stdlib/pulse/dune
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
(glob_files *.bop)))

(mdx
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)
(glob_files *.bop)))
2 changes: 1 addition & 1 deletion stdlib/stdlib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
(glob_files *.bop)))

(mdx
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)
(glob_files *.bop)))
2 changes: 1 addition & 1 deletion tutorial/bdd/division/dune
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
(glob_files *.txt)))

(mdx
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)
div.exe
Expand Down
2 changes: 1 addition & 1 deletion tutorial/bdd/dune
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
(glob_files *.txt)))

(mdx
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)
(glob_files *.bop)
Expand Down
2 changes: 1 addition & 1 deletion tutorial/hello-world/dune
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
(run dune format-dune-file)))))

(mdx
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)
(glob_files *.bop)))
2 changes: 1 addition & 1 deletion tutorial/misc/dune
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
(package bopkit)))

(mdx
(package bopkit-tests)
(package bopkit-dev)
(deps
(package bopkit)))

0 comments on commit e880688

Please sign in to comment.