From 8d4568140c0ece3c727efaf76c56b83cb9ef78f2 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 3 Nov 2021 21:01:09 -0700 Subject: [PATCH] docs: Enable collapse_navigation for local builds. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes local builds significantly faster, while leaving the fancy navigation enabled on Read the Docs where it’s important. https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html#confval-collapse_navigation Signed-off-by: Anders Kaseorg --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index f71145bc40..0eb17342d0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,7 +43,7 @@ myst_substitutions = { html_theme = "sphinx_rtd_theme" html_theme_options = { - "collapse_navigation": False, + "collapse_navigation": not on_rtd, # makes local builds much faster "logo_only": True, } html_logo = "images/zulip-logo.svg"