Skip to content

Commit

Permalink
Merge sphinx-contrib#50: Sphinx 1.6 compat
Browse files Browse the repository at this point in the history
StandaloneHTMLBuilder.default_sidebars was removed in sphinx ~1.6.

sphinx-doc/sphinx@e8e63b1

Get the side bar from the theme instead when possible.

Fixes sphinx-contrib#42
  • Loading branch information
muggenhor committed Sep 12, 2019
2 parents 5235778 + fd8c63f commit 4827e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinxcontrib/versioning/sphinx_.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def builder_inited(app):
try:
app.config.html_sidebars['**'] = StandaloneHTMLBuilder.default_sidebars + ['versions.html']
except AttributeError:
app.config.html_sidebars['**'] = ['versions.html']
app.config.html_sidebars['**'] = StandaloneHTMLBuilder(app).get_theme_config()[1].get('html_sidebars', []) + ['versions.html']
elif 'versions.html' not in app.config.html_sidebars['**']:
app.config.html_sidebars['**'].append('versions.html')

Expand Down

0 comments on commit 4827e44

Please sign in to comment.