diff --git a/doc/dune-files.rst b/doc/dune-files.rst index 8878d24aed7..23c7425abbe 100644 --- a/doc/dune-files.rst +++ b/doc/dune-files.rst @@ -1891,8 +1891,8 @@ plugin (Since 2.8) ------------------ Plugins are a way to load OCaml libraries at runtime. The ``plugin`` stanza -allows you to declare the plugin's name, in which :ref:`sites` should be -present, and which libraries it will load. +allows you to declare the plugin's name, which :ref:`sites` should be +present and which libraries it will load. .. code:: lisp @@ -1919,10 +1919,10 @@ The loading of the plugin is done using the facilities generated by generate_sites_module (Since 2.8) --------------------------------- -Dune proposes some facilities for dealing with :ref:`sites` in a program. The +Dune proposes some facilities for dealing with :ref:`sites` in a program. The ``generate_sites_module`` stanza will generate code for looking up the correct locations -of the sites directories and for loading plugins. It works after installation -with or without the relocation mode, inside Dune rules, when using Dune executables. +of the sites' directories and for loading plugins. It works after installation +with or without the relocation mode, inside Dune rules, and when using Dune executables. For promotion, it works only if the generated modules are solely in the executable (or library statically linked) promoted; generated modules in plugins won't work.