WebThen use your index.rst as usual, referencing the rst files in the same directory. So in my index.rst in my local Sphinx folder: Contents: .. toctree:: :maxdepth: 4 Package1 Package2 Package3 Then in package1.rst, you should be able to just reference the relative packages normally. Webtoctree 是 reStructuredText的 directive (指令), 一种用途十分广泛的块标记. 定义了参数、选项及目录. Arguments 直接在双冒号后面给出指令的名字. 每个指令都有不定个数的参数. Options 在参数后以”字段列表”的形式给出. 如 maxdepth 是 toctree 指令的选项之一. Content 具体内容,在选项或参数的后面,隔开一个空行. 每个指令后面都跟着不同作用的内容. 共 …
First Steps with Sphinx - Sphinx Documentation
WebA numeric maxdepth option may be given to indicate the depth of the tree; by default, all levels are included. [ 1] The representation of “TOC tree” is changed in each output format. … WebThe toctree directive is a fundamental part of this structure. The above example will output a Table of Contents in the page where it occurs. The maxdepth argument tells Sphinx to include 2 levels of headers in it’s output. It will output the … lg 65 inch tv 120 hz
Specifying tocdepth doesn
WebYou can include other levels in an indented list by setting the :maxdepth: parameter to 2 or higher: .. toctree :: :maxdepth: 2 In this example, second-level headings will be indented … Web12. júl 2011 · Copy and paste your installation and usage instructions from README.rst into docs/installation.rst and docs/usage.rst. I know it's annoying. There's no good way to symlink your Github readme content to your Read the Docs Sphinx readme content (yet). Web7. feb 2024 · Specifying tocdepth doesn't influence the sidebar TOC depth on that page #6033 Closed jorisvandenbossche opened this issue on Feb 7, 2024 · 5 comments Contributor jorisvandenbossche commented on Feb 7, 2024 • edited OS: Linux (Ubuntu) Python version: 3.5.5 Sphinx version: 1.8.1 jorisvandenbossche added the type:bug label … lg 65 inch tv c2