diff --git a/doc/contents.rst b/doc/contents.rst index 79a10493dc..0f5527baef 100644 --- a/doc/contents.rst +++ b/doc/contents.rst @@ -34,7 +34,14 @@ Sphinx documentation contents Indices and tables ================== -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` -* :ref:`glossary` +.. only:: builder_html + + * :ref:`genindex` + * :ref:`modindex` + * :ref:`search` + * :ref:`glossary` + +.. only:: not builder_html + + * :ref:`modindex` + * :ref:`glossary`