diff --git a/doc/sites.rst b/doc/sites.rst index d301dc7b8e0..9f4d86442f6 100644 --- a/doc/sites.rst +++ b/doc/sites.rst @@ -78,10 +78,13 @@ site using the :ref:`generate module stanza` (executable (name mygui) (modules mygui mysites) + (libraries dune-site) ) (generate_module (name mysites) (sites mygui)) +The generated module `mysites` depends on the library `dune-site` provided by Dune. + Then inside ``mygui.ml`` module the locations can be recovered and used: .. code:: ocaml @@ -194,6 +197,9 @@ Main executable (C) (generate_module (module sites) (plugins (c plugins))) +The generated module `sites` depends here also on the library +`dune-site.plugins` because the plugins optional field is requested. + - The module ``c_register.ml`` of the library ``c.register``: .. code:: ocaml