Directives ========== reStructuredText can be expanded with `Directives `_. Sphinx makes extensive use of this. Here are some examples: Table of Contents ----------------- .. code-block:: rest .. toctree:: :maxdepth: 2 start docstrings Meta information ~~~~~~~~~~~~~~~~ .. sectionauthor:: Veit Schiele .. codeauthor:: Veit Schiele .. code-block:: rest .. sectionauthor:: Veit Schiele .. codeauthor:: Veit Schiele .. note:: By default, this information is not included in the output until you set the configuration for ``show_authors`` to ``True``. See also ~~~~~~~~ .. seealso:: `Sphinx Directives `_ .. code-block:: rest .. seealso:: `Sphinx Directives `_ Glossary ~~~~~~~~ .. glossary:: environment A structure where information about all documents under the root is saved, and used for cross-referencing. The environment is pickled after the parsing stage, so that successive runs only need to read and parse new and changed documents. source directory The directory which, including its subdirectories, contains all source files for one Sphinx project. .. code-block:: rest .. glossary:: environment A structure where information about all documents under the root is saved, and used for cross-referencing. The environment is pickled after the parsing stage, so that successive runs only need to read and parse new and changed documents. source directory The directory which, including its subdirectories, contains all source files for one Sphinx project.