mauro
mauro

Reputation: 582

Sphinx: list of modules of a subpackage

When I build my documentation, the left menu of the html documentation is something like:

main_package
 |
 |-- Subpackages
 |    |-- subpackage_1
 |    |-- subpackage_2
 |
 |-- Submodules
 |
 |-- Module contents

How can I add in this menu the list of the submodules? Example:

main_package
 |
 |-- Subpackages
 |    |-- subpackage_1
 |    |    |-- submodule_1a
 |    |    |-- submodule_1b
 |    |-- subpackage_2
 |         |-- submodule_2a
 |         |-- submodule_2b 
 |-- Submodules
 |
 |-- Module contents

Upvotes: 0

Views: 711

Answers (1)

mauro
mauro

Reputation: 582

I am using sphinx_rtd_theme and thanks to Steve Piercy's hint, the answer is that it is theme related. For this theme, in the conf.py file, it should be added html_theme_options = {'navigation_depth': value}.

Upvotes: 1

Related Questions