Structure ========= Files ----- Documentation always starts in ``/doc/index.rst``. Small modules may have only this file with all chapters included. Documentation for larger modules should be organized into several files and subfolders, for example: .. code-block:: none /doc/index.rst /doc/integration.rst /doc/configuration.rst /doc/generator.rst /doc/api.rst /doc/examples.rst /doc/limitations.rst /doc/internal.rst In this case, use a non-hidden *toctree* at the end of ``/doc/index.rst``: .. code-block:: rst .. toctree:: integration configuration generator api examples limitations internal Additional resources, such as images, should also be added to the *doc* folder, for example: .. code-block:: none /doc/integration/generators/abc/overview.png /doc/integration/generators/abc/concept.png /doc/integration/generators/abc/integration.png Main Page --------- When creating a module, you are not expected to document everything in the first pull request, except for the *Introduction*. The *Introduction* should always be placed in ``/doc/index.rst``. If the documentation is split into several files, do not add an explicit heading: .. code-block:: rst myModule ======== .. toctree:: ... If the documentation is all in one file without a *toctree*, add a heading for *Introduction*: .. code-block:: rst myModule ======== Introduction ------------ Other Chapter ------------- ...