Skip to content

Commit

Permalink
Fix to make the code work with Sphinx 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmouret authored May 31, 2017
1 parent 920edec commit 46c5a97
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 @@ -57,7 +57,7 @@ def builder_inited(app):

# Add versions.html to sidebar.
if '**' not in app.config.html_sidebars:
app.config.html_sidebars['**'] = StandaloneHTMLBuilder.default_sidebars + ['versions.html']
app.config.html_sidebars['**'] = ['versions.html']
elif 'versions.html' not in app.config.html_sidebars['**']:
app.config.html_sidebars['**'].append('versions.html')

Expand Down

3 comments on commit 46c5a97

@joshrlesch
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should open a PR to get this merged back into Robpol86's version!! Would be nice to use the pip version of this.

@dogoepp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbmouret comments on this suggestion ?

@neoaddix
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this, works fine. Please make a PR to include it in the sphinx branch

Please sign in to comment.