package md2mld
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=65bc12176cb584bb228027c4b5fba2f5362417f844686a7c19fcea2934c34a4b
sha512=e9b931919174c41ef80b3dd48091bc6be8ed219c1a3b9bddb1e80066d3bdac17f9f85a37673c720091d78fec9aeb1e6edb99d7de5a5e6f7e5b27739987eda3e5
Description
Added to opam-repository:
README
md2mld: Convert md files into odoc mld files
md2mld converts a Markdown-format file into the mld format used by odoc to render HTML documentation or OCaml libraries. You can use this script to automatically embed a README.md file into API documentation for an OCaml library.
Usage
You can use it manually as follows
$ md2mld filename.md > outfile.mldIn dune you can use it to generate an mld file with
(rule
(target outfile.mld)
(deps filename.md)
(action
(with-stdout-to outfile.mld (run md2mld filename.md))))Attach the mld file using the (documentation …) stanza. You can see the documentation generated from the latest tagged version of this README at mseri.github.io/md2mld/md2mld.
Known issues
- Until the new odoc fixing #141 is released, the minimal header allowed in the
mdfile will be the level 3 one###. You can work around this by using the-min-header 3flag during the invocation ofmd2mld. - If you see an error like
'{0': heading level should be lower than top heading level '0', this is because inocamldocthe first header must have a level higher than all other headings in the page. You can safely ignore it or increase the level of the subsequent headings to get rid of it.
Dependencies (4)
-
omd
>= "2.0.0~alpha3" - base-bytes
-
ocaml
>= "4.08" -
dune
>= "3.7"
Dev Dependencies (1)
-
odoc
with-doc
Optional Dependencies
None
Used by (5)
-
data-encoding
>= "0.7" - neural_nets_lib
-
ppx_minidebug
>= "1.6.0" & < "2.2.0" - rpc
- testu01
Conflicts
None
Build status
Results of building md2mld with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.7.0 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure