Devlog 2026-W08 › A setup for proper documentation › Delivering to the user [UNAU]
Now that the documentation is installed on the user’s system, we will use dune sites to implant the documentation into the users forest in dev mode.
let config =
if dev then
let doc_json_blob =
List.hd Theme_site.Sites.docs ^"/forest/docs.json"
in
{
config with
foreign =
[
{
path = doc_json_blob;
route_locally = true;
include_in_manifest = true;
};
];
}
else configinclude_in_manifest = true means that the documentation is searchable using the familiar CTRL-k keybinding. In dev mode we render a link to the docs in the header:
let page_template =
html []
[
...
conditional dev render_doc_button;
...
]