index.rst build just only links of the rest of pages. – Sphinx

I have a index.rst with this sintaxis:

Example
======================================================

.. toctree::
   :maxdepth: 0 
   :caption: Contents:

   item 
Items and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

By other hand, I have a item.rst file with this:

Another page
======================================================

.. toctree::
   :maxdepth: 0 
   :caption: Contents:

   item2

What's the problem? I have an index with this:

enter image description here

But I do not want this. All content of item.rst (Another page) It should be displayed when I push in Another page not in the index.

I just want display in index the link of the rest of pages like this:

Contents:

  • Another page
  • Another second page
  • Another third page.


Read more here: https://stackoverflow.com/questions/67940938/index-rst-build-just-only-links-of-the-rest-of-pages-sphinx

Content Attribution

This content was originally published by sincorchetes at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: