From 04e90437a91dbad6cbe0ac6f79de53423fbd8b3b Mon Sep 17 00:00:00 2001 From: Brian Toby Date: Mon, 23 Mar 2026 16:52:23 -0500 Subject: [PATCH] =?UTF-8?q?Revert=20"Fix=20empty=20index=20in=20PDF=20docs?= =?UTF-8?q?=20for=20both=20developer=20and=20scripting=20manuals=20?= =?UTF-8?q?=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a6eb29bc20248f4bcb9b55868fae89fb70e3456b. --- docs/environment.yml | 2 +- docs/scripting/conf.py | 3 --- docs/scripting/scrpt-indices.rst | 9 --------- docs/source/conf.py | 3 --- docs/source/indices.rst | 6 +++++- 5 files changed, 6 insertions(+), 17 deletions(-) diff --git a/docs/environment.yml b/docs/environment.yml index d6d106954..e919543f7 100644 --- a/docs/environment.yml +++ b/docs/environment.yml @@ -2,7 +2,7 @@ channels: - conda-forge - nodefaults dependencies: - - python=3.13 + - python=3.11 - scipy - pyopengl - imageio diff --git a/docs/scripting/conf.py b/docs/scripting/conf.py index fde7dd954..6572bab00 100644 --- a/docs/scripting/conf.py +++ b/docs/scripting/conf.py @@ -249,9 +249,6 @@ #this allows \AA to be used in equations 'preamble': '\\global\\renewcommand{\\AA}{\\text{\\r{A}}}', - -# Suppress auto-generated printindex at end; index is printed via scrpt-indices.rst -'printindex': '', } # Grouping the document tree into LaTeX files. List of tuples diff --git a/docs/scripting/scrpt-indices.rst b/docs/scripting/scrpt-indices.rst index 3f9d2aedf..9436dcbf5 100644 --- a/docs/scripting/scrpt-indices.rst +++ b/docs/scripting/scrpt-indices.rst @@ -5,12 +5,3 @@ `General Index <./genindex.html>`_ -------------------------------------------- - -.. only:: latex - - Index - ===== - - .. raw:: latex - - \printindex diff --git a/docs/source/conf.py b/docs/source/conf.py index 59eaa337c..145eded36 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -253,9 +253,6 @@ #this allows \AA to be used in equations 'preamble': '\\global\\renewcommand{\\AA}{\\text{\\r{A}}}', - -# Suppress auto-generated printindex at end; index is printed via indices.rst -'printindex': '', } # Grouping the document tree into LaTeX files. List of tuples diff --git a/docs/source/indices.rst b/docs/source/indices.rst index 7e5155c6f..cb046c523 100644 --- a/docs/source/indices.rst +++ b/docs/source/indices.rst @@ -16,4 +16,8 @@ .. raw:: latex - \printindex + \renewcommand{\printindex}{% + \begin{theindex} + \printindex + \end{theindex} + }