Disabling individual Sphinx warning messages

Are there .rst files in your Sphinx project whose content you don’t want in the output? Use the exclude_patterns configuration variable. No output (and no warning messages) will be generated for files matching the specified patterns. See http://www.sphinx-doc.org/en/master/usage/configuration.html#confval-exclude_patterns. Are there .rst files in your Sphinx project that are not part of any toctree but whose … Read more

How to include the toctree in the sidebar of each page

You can customize your html sidebar in conf.py. The default html sidebar consists of 4 templates: [‘localtoc.html’, ‘relations.html’, ‘sourcelink.html’, ‘searchbox.html’] In conf.py you could change localtoc.html to globaltoc.html like this: html_sidebars = { ‘**’: [‘globaltoc.html’, ‘relations.html’, ‘sourcelink.html’, ‘searchbox.html’] } Since this in the end this will be used in HTML files, this should work on … Read more

Sphinx autosummary “toctree contains reference to nonexisting document” warnings

Sorry for such a late answer (if it can be considered that) but I found this link that discusses what may be happening to you: https://github.com/phn/pytpm/issues/3#issuecomment-12133978 The idea that if you have some special Doc scraper in your documentation code that is building autosummary documentation after autosummary has already run may be something to look … Read more