From fc91abd8a64b4d68bfcf6a30693df60e9574f414 Mon Sep 17 00:00:00 2001 From: Marek Kubica Date: Fri, 14 Apr 2023 16:11:07 +0200 Subject: [PATCH 1/2] [new release] mdx (2.3.0) CHANGES: #### Added - Added support for `mld` files (realworldocaml/mdx#423, @jonludlam) #### Changed - Switch to using the parser that toplevel uses (found in a mutable `ref`, instead of always the official OCaml parser). This allows Camlp5's parser to be used with MDX. (realworldocaml/mdx#417, @chetmurthy) --- packages/mdx/mdx.2.3.0/opam | 62 +++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 packages/mdx/mdx.2.3.0/opam diff --git a/packages/mdx/mdx.2.3.0/opam b/packages/mdx/mdx.2.3.0/opam new file mode 100644 index 00000000000..8b6d8911b48 --- /dev/null +++ b/packages/mdx/mdx.2.3.0/opam @@ -0,0 +1,62 @@ +opam-version: "2.0" +synopsis: "Executable code blocks inside markdown files" +description: """ +`ocaml-mdx` allows to execute code blocks inside markdown files. +There are (currently) two sub-commands, corresponding +to two modes of operations: pre-processing (`ocaml-mdx pp`) +and tests (`ocaml-mdx test`). + +The pre-processor mode allows to mix documentation and code, +and to practice "literate programming" using markdown and OCaml. + +The test mode allows to ensure that shell scripts and OCaml fragments +in the documentation always stays up-to-date.""" +maintainer: ["Thomas Gazagnaire "] +authors: ["Thomas Gazagnaire "] +license: "ISC" +homepage: "https://github.com/realworldocaml/mdx" +bug-reports: "https://github.com/realworldocaml/mdx/issues" +depends: [ + "dune" {>= "3.5"} + "ocaml" {>= "4.08.0"} + "ocamlfind" + "fmt" {>= "0.8.7"} + "cppo" {build & >= "1.1.0"} + "csexp" {>= "1.3.2"} + "astring" + "logs" {>= "0.7.0"} + "cmdliner" {>= "1.1.0"} + "re" {>= "1.7.2"} + "ocaml-version" {>= "2.3.0"} + "odoc-parser" {>= "1.0.0"} + "lwt" {with-test} + "alcotest" {with-test} + "odoc" {with-doc} +] +conflicts: [ + "result" {< "1.5"} +] +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://github.com/realworldocaml/mdx.git" +url { + src: + "https://github.com/realworldocaml/mdx/releases/download/2.3.0/mdx-2.3.0.tbz" + checksum: [ + "sha256=32a08398100afd2d2e7988bc3b45c9b69971271f7ab708851ded3843c9470661" + "sha512=b16d257fa9e515318dba22a1eb7a19f59c40414cdbeaaee0e48b6384f74b56497fd0e547b234a1329b7334d2fbdbb7c256fdf8406ae1d1f85b49dd5c5025eba2" + ] +} +x-commit-hash: "3125899ce5c6c3bd0360b43697f0fd32def7fad5" From e3633b98a32eb4cc1dc576360880425fcb894705 Mon Sep 17 00:00:00 2001 From: Marek Kubica Date: Sat, 15 Apr 2023 21:21:34 +0200 Subject: [PATCH 2/2] Do not support OCaml 5.1 There is some behavior change that needs to be investigated. Co-authored-by: Anil Madhavapeddy --- packages/mdx/mdx.2.3.0/opam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mdx/mdx.2.3.0/opam b/packages/mdx/mdx.2.3.0/opam index 8b6d8911b48..cf1eaeb3c1a 100644 --- a/packages/mdx/mdx.2.3.0/opam +++ b/packages/mdx/mdx.2.3.0/opam @@ -18,7 +18,7 @@ homepage: "https://github.com/realworldocaml/mdx" bug-reports: "https://github.com/realworldocaml/mdx/issues" depends: [ "dune" {>= "3.5"} - "ocaml" {>= "4.08.0"} + "ocaml" {>= "4.08.0" & < "5.1.0"} "ocamlfind" "fmt" {>= "0.8.7"} "cppo" {build & >= "1.1.0"}