Skip to content

Commit

Permalink
[Doc] Add information about dune-site
Browse files Browse the repository at this point in the history
Signed-off-by: François Bobot <[email protected]>
  • Loading branch information
bobot committed Sep 30, 2020
1 parent deeddb2 commit 39f635f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/sites.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,13 @@ site using the :ref:`generate module stanza<generate_module>`
(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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 39f635f

Please sign in to comment.