ReadTheDocs setup¶
This directory is ready for ReadTheDocs using Sphinx.
Files¶
documentation/conf.pyconfigures Sphinx.documentation/requirements.txtlists documentation dependencies.documentation/.readthedocs.yamldescribes the ReadTheDocs build.documentation/index.mdis the documentation home page.
Configure the ReadTheDocs project¶
Import the repository in ReadTheDocs.
Choose the branch that should publish documentation.
Use
documentation/.readthedocs.yamlas the configuration file when custom config paths are supported.If ReadTheDocs requires the config file at the repository root, copy this file to
.readthedocs.yamland keep the same contents.Trigger a build.
Local validation before pushing¶
python -m pip install -r documentation/requirements.txt
sphinx-build -W -b html documentation documentation/_build/html