From 6ec58167b7f37703a9fc79fb87c5148b92543383 Mon Sep 17 00:00:00 2001 From: sabine <6594573+sabine@users.noreply.github.com> Date: Thu, 6 Nov 2025 14:02:18 +0100 Subject: [PATCH] Add dune ocaml doc command to generating-documentation tutorial --- data/tutorials/platform/2_08_odoc.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data/tutorials/platform/2_08_odoc.md b/data/tutorials/platform/2_08_odoc.md index 05d3dd2db5..a3f5943598 100644 --- a/data/tutorials/platform/2_08_odoc.md +++ b/data/tutorials/platform/2_08_odoc.md @@ -23,6 +23,14 @@ $ open _build/default/_doc/_html/index.html $ explorer _build\default\_doc\_html\index.html ``` +Alternatively, you can use the `dune ocaml doc` command, which builds the documentation and automatically opens it in your web browser: + +```shell +$ dune ocaml doc +``` + +This is a convenient shortcut that combines the build and open steps into a single command. + ## Generating `.mld` Documentation Pages In addition to documenting the publicly-visible API of your project,