From 4906bc8e4ad8fc40ce284614f8d6dd416279d3b7 Mon Sep 17 00:00:00 2001 From: David Rosa Tamsen Date: Fri, 17 Nov 2017 12:40:58 -0600 Subject: [PATCH] docs: Prevent readthedocs from overriding collapse_navigation setting. Expand bullets "[+]" show up on locals instance, but they do not show up online on readthedocs. The expand icon is valuable to indicate that each section has more content. The problem is readthedocs appends code to conf.py that overrides the html_theme_options prior to a build. This commit prevents this from happening so that collapse_navigation remains set to False. In response to merged PR 7326. --- docs/conf.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index ee9ea88946..bb97d4eb91 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -113,6 +113,11 @@ if not on_rtd: import sphinx_rtd_theme html_theme = 'sphinx_rtd_theme' html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +else: + html_theme = 'sphinx_rtd_theme' + html_style = None + html_theme_options = {'collapse_navigation': False} + using_rtd_theme = True # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the