On behalf of the Odoc development team, I’m delighted to announce the release of Odoc 3! This is a big big release with loads of new features and bug fixes, and I encourage everyone to install it and have a play!
For an overview of the new features see our beta release announcement. tl;dr:
$ opam install odoc-driver # will install odoc 3
$ odoc_driver odoc odoc-parser odoc-driver odoc-md sherlodoc --remap
and point your browser at _html/index.html
. This example shows odoc_driver creating the docs for the 5 packages specified and remapping links to other packages (see here for an explanation)
If you try the above command, you’ll note something interesting, and hopefully this will encourage you to run odoc_driver
on your own packages before you release them, as then you’ll be able to avoid slightly embarrassing post-release fixes like this one
Here are the changes from the beta release:
Added
- Add png, pdf and jpeg image support to the latex backend by Octachron · Pull Request #1297 · ocaml/odoc · GitHub
- Add header field to the json output by panglesd · Pull Request #1314 · ocaml/odoc · GitHub
- Extract code blocks by name by panglesd · Pull Request #1326 · ocaml/odoc · GitHub
Changed
- Fix suppress_warnings parameter by jonludlam · Pull Request #1304 · ocaml/odoc · GitHub
- Fix suppress_warnings parameter by jonludlam · Pull Request #1304 · ocaml/odoc · GitHub
- Disable warnings coming from linking implementations by jonludlam · Pull Request #1319 · ocaml/odoc · GitHub
- Driver compile warnings by jonludlam · Pull Request #1323 · ocaml/odoc · GitHub
- Fix "box model" for code blocks by panglesd · Pull Request #1317 · ocaml/odoc · GitHub
- Store raw content of code blocks in parser's AST by panglesd · Pull Request #1325 · ocaml/odoc · GitHub
Fixed
- Fix suppress_warnings parameter by jonludlam · Pull Request #1304 · ocaml/odoc · GitHub
- Don't backtrace on invalid input in compile-deps by jonludlam · Pull Request #1313 · ocaml/odoc · GitHub
- Fix indentation bug with verbatim in tags by jonludlam · Pull Request #1312 · ocaml/odoc · GitHub
- Driver: Check for missing/unknown opam packages by jonludlam · Pull Request #1311 · ocaml/odoc · GitHub
- Fix suppress_warnings parameter by jonludlam · Pull Request #1304 · ocaml/odoc · GitHub
- Further fixes for virtual libraries by jonludlam · Pull Request #1309 · ocaml/odoc · GitHub
- Fix issue #610 - `odoc html-fragment` not producing headings correctly by jonludlam · Pull Request #1306 · ocaml/odoc · GitHub
- Fix classify when there are archives sharing modules by jonludlam · Pull Request #1310 · ocaml/odoc · GitHub