docs: Include module indices only when building standalone package doc
In order to remove warnings about /apidoc/*.rst files being included multiple times in toc when building full swh documentation, prefer to include module indices only when building standalone package documentation. Also include them the proper sphinx way. Related to T4496
This commit is contained in:
parent
b3b5639e9a
commit
4cec345028
1 changed files with 9 additions and 1 deletions
|
@ -29,4 +29,12 @@ Reference Documentation
|
|||
:maxdepth: 2
|
||||
|
||||
cli
|
||||
/apidoc/swh.lister
|
||||
|
||||
.. only:: standalone_package_doc
|
||||
|
||||
Indices and tables
|
||||
------------------
|
||||
|
||||
* :ref:`genindex`
|
||||
* :ref:`modindex`
|
||||
* :ref:`search`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue