sphinx-doc / sphinx

The Sphinx documentation generator
https://www.sphinx-doc.org/
Other
6.61k stars 2.13k forks source link

Syntax for Multiple Index Entries in Sphinx #13102

Closed tarcine closed 2 weeks ago

tarcine commented 2 weeks ago

I would like to know if there is a way to add multiple index entries in Sphinx.

In the tutorials, I've found that only two entries can be added using the format

.. index:: main_entry; sub_entry

However, I am looking for a method to include more than two entries, similar to LaTeX's approach with

\index{main_entry!sub_entry!sub_sub_entry}

Is there a way to achieve this in Sphinx?