How to hide the sidebar using Sphinx RTD theme when making htmlhelp

后端 未结 3 367
我在风中等你
我在风中等你 2021-01-23 09:59

Is it possible to hide the sidebar when using Sphinx with the ReadTheDocs theme?

Extending the question a bit more, can I have it include the s

3条回答
  •  悲&欢浪女
    2021-01-23 10:30

    In the alabaster theme, I was able to remove the TOC/sidebar by adding the following to my conf.py file:

    html_theme_options = {
        # Disable showing the sidebar. Defaults to 'false'
        'nosidebar': True,
    }
    

    I tested this in the sphinx_rtd_theme and it did not work. However, I add this as an answer here as it might be helpful for others trying to remove the sidebar in other themes (as was the case for me).

提交回复
热议问题