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

后端 未结 3 365
我在风中等你
我在风中等你 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:39

    First of all, it is poor form to ask two questions in one post. Next time, create a separate question.

    For your first question, I am not sure what the option collapse_navigation actually does, but its name implies that it does what you seek. The default value is False, so toggle it to True and see what happens. See other Read the Docs theme configuration options.

    For your second question, there are at least two methods.

    You can use the -D option of sphinx-build and override settings in your conf.py.

    You can have multiple conf.py files (named as you see fit), and use the -c option to select the appropriate file for the output you want.

提交回复
热议问题