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

I have a index.rst with this sintaxis:


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

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:


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:


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

Read more here:

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: