2
votes

I trying to get the effect obtained on Python and Sphinx main pages of documentation. I mean the table of contents structure. Is there any keyword for toctree to get similar effect or I have to do this manually? I tried to find something in the documentation but without any success and sadly the main page of Sphinx documentation doesn't provide the source of rst file.

Any ideas?

Here is the Sphinx doc main page

I need the format effect from section DOCUMENTATION with members like first steps, search page, contents and general index.

1

1 Answers

4
votes

The Sphinx documentation start page is not generated from a reST file; it is built from Jinja templates. The main template is index.html. Inheritance is used: index.html extends layout.html, which in turn extends basic/layout.html.

In order to get the desired "format effect", you will need to look into themes and templates: