API reference
wodoc is both a command-line tool and an OCaml library. The library exposes one module per pass of the pipeline; the wodoc command-line subcommands (Commands) are thin wrappers over them.
Modules
Wodoc.PreprocessPre-processing of odoc source files.Wodoc.Renderwodoc rendering pass over odoc's HTML output.Wodoc.AssembleAssembly layer: wrap odoc's rendered HTML in a project-provided site template.Wodoc.NavBuild a project's API module navigation from a curated odoc index.Wodoc.ResolveLink cross-package "sibling" references odoc left unresolved.Wodoc.ConvertBest-effort converter from extended wikicréole to odoc.mldwith wodoc markers.Wodoc.ConfigWodoc.BuildWodoc.BlogWodoc.LlmsGenerate the LLM-friendly index files for a built project doc, from the Markdown twin tree thatWodoc.Buildproduces in the output directory.Wodoc.ThemeBuilt-in default assets shipped bywodoc build, so it produces a styled, self-contained site with no theme setup. Each is overridable: the stylesheet via the(css …)config stanza, the top menu via--menu.
Where to start
Wodoc.Preprocess— rewrite{%wodoc:…%}markers to HTML-comment sentinels before odoc runs.Wodoc.Render— turn those sentinels in odoc's HTML into real nested HTML.Wodoc.Assemble— wrap the rendered HTML in a project's site template.Wodoc.Nav— render a client/server project's API module list from a curated odoc index (the manual's own navigation is declared in thedoc/wodocconfig, not here).Wodoc.Resolve— link cross-package "sibling" references odoc left dead.Wodoc.Convert— the wikicréole →.mldmigration aid.Wodoc.Config— parse the declarativedoc/wodocfile.Wodoc.Build— the turn-keywodoc build: assemble a whole site from it.Wodoc.Blog— the ultra-simple blog: dated.mldposts, a generated nav section and a "latest posts" landing fragment.Wodoc.Llms— generate thellms.txt/llms-full.txtindex from the Markdown twin tree (the LLM-friendly view of a built site).Wodoc.Theme— the built-in default assets (theme stylesheet, top bar) shipped when a project configures none.