Using odoc to Write Documentation
summary
A concrete how-to: odoc reads the compiler artifacts and builds API pages (one module per page) automatically, dune runs the single command to produce the site, and adding docstrings plus three files (doc/, doc/dune, index.mld) turns autogenerated output into a real landing page and tutorials. Local browsing works via odoc/dune, published docs appear on ocaml.org when the package is on opam, and odoc3 promises improved search, cross-package refs and source rendering.
AI-written summary · about
