Stog comes with a custom OCamldoc generator. This generator modifies the HTML code generated by the regular HTML generator so that all these files can be handled by Stog as documents of type "ocamldoc".
This allows to embed an OCamldoc-generated HTML documentation into a Stog-generated web site.
Moreover, it gives access to elements of the documentation identified
by ids in HTML files. For example, in this documentation, the following
code will create a link to the definition of the
This ensures that references from the web site to elements of the code are verified at "compilation" time.
Like any other OCamldoc generator, once installed, you can use it with the following command, in native code:
and in bytecode:
By now, this OCamldoc generator is more a hack of the default HTML generator. A better generator would require to recode a lot of methods, or improve the default HTML generator.