From 39f635f715ae5210d808971b8870261c8e9d0773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bobot?= Date: Mon, 21 Sep 2020 14:56:30 +0200 Subject: [PATCH] [Doc] Add information about `dune-site` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Bobot --- doc/sites.rst | 6 ++++++ 1 file changed, 6 insertions(+) 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