From d2b32d1d798d454f5527e3496d68d8ead2617946 Mon Sep 17 00:00:00 2001 From: Revathy Venugopal <104772255+Revathyvenugopal162@users.noreply.github.com> Date: Tue, 14 Feb 2023 09:08:56 +0100 Subject: [PATCH] Add the collapse button (#199) --- src/ansys_sphinx_theme/__init__.py | 1 + .../theme/ansys_sphinx_theme/_templates/autosummary/class.rst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ansys_sphinx_theme/__init__.py b/src/ansys_sphinx_theme/__init__.py index d1e67cd0..44eef0ac 100644 --- a/src/ansys_sphinx_theme/__init__.py +++ b/src/ansys_sphinx_theme/__init__.py @@ -79,6 +79,7 @@ def setup_default_html_theme_options(app): app.config.html_theme_options.setdefault( "navbar_end", ["version-switcher", "theme-switcher", "navbar-icon-links"] ) + app.config.html_theme_options.setdefault("collapse_navigation", "True") def setup(app: sphinx.application.Sphinx) -> Dict: diff --git a/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/_templates/autosummary/class.rst b/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/_templates/autosummary/class.rst index aea894e6..0c722508 100644 --- a/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/_templates/autosummary/class.rst +++ b/src/ansys_sphinx_theme/theme/ansys_sphinx_theme/_templates/autosummary/class.rst @@ -1,4 +1,4 @@ -{{ fullname | escape | underline}} +{{ objname | escape | underline}} .. currentmodule:: {{ module }}