Python Sphinx: Documentation main page like in Python doc or Sphinx doc

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.


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:

  • http://sphinx-doc.org/theming.html
  • http://sphinx-doc.org/templating.html
  • 链接地址: http://www.djcxy.com/p/84122.html

    上一篇: 狮身人面像类属性文件

    下一篇: Python Sphinx:文档主页,如Python doc或Sphinx doc