Skip to content

Commit

Permalink
Set metadata in more extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom authored and tacaswell committed Aug 28, 2016
1 parent 10bbf1c commit 3f0af19
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doc/sphinxext/gen_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,6 @@ def setup(app):
app.add_config_value('mpl_example_sections', [], True)
except sphinx.errors.ExtensionError:
pass # mpl_example_sections already defined

metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
return metadata
3 changes: 3 additions & 0 deletions doc/sphinxext/gen_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,6 @@ def setup(app):
app.add_config_value('mpl_example_sections', [], True)
except sphinx.errors.ExtensionError:
pass # mpl_example_sections already defined

metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
return metadata
6 changes: 4 additions & 2 deletions doc/sphinxext/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def ghcommit_role(name, rawtext, text, lineno, inliner, options={}, content=[]):

def setup(app):
"""Install the plugin.
:param app: Sphinx application context.
"""
app.info('Initializing GitHub plugin')
Expand All @@ -152,4 +152,6 @@ def setup(app):
app.add_role('ghuser', ghuser_role)
app.add_role('ghcommit', ghcommit_role)
app.add_config_value('github_project_url', None, 'env')
return

metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
return metadata

0 comments on commit 3f0af19

Please sign in to comment.