Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3f0af19

Browse files
mdboomtacaswell
authored andcommitted
Set metadata in more extensions
1 parent 10bbf1c commit 3f0af19

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

doc/sphinxext/gen_gallery.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,6 @@ def setup(app):
168168
app.add_config_value('mpl_example_sections', [], True)
169169
except sphinx.errors.ExtensionError:
170170
pass # mpl_example_sections already defined
171+
172+
metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
173+
return metadata

doc/sphinxext/gen_rst.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,6 @@ def setup(app):
169169
app.add_config_value('mpl_example_sections', [], True)
170170
except sphinx.errors.ExtensionError:
171171
pass # mpl_example_sections already defined
172+
173+
metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
174+
return metadata

doc/sphinxext/github.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def ghcommit_role(name, rawtext, text, lineno, inliner, options={}, content=[]):
143143

144144
def setup(app):
145145
"""Install the plugin.
146-
146+
147147
:param app: Sphinx application context.
148148
"""
149149
app.info('Initializing GitHub plugin')
@@ -152,4 +152,6 @@ def setup(app):
152152
app.add_role('ghuser', ghuser_role)
153153
app.add_role('ghcommit', ghcommit_role)
154154
app.add_config_value('github_project_url', None, 'env')
155-
return
155+
156+
metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
157+
return metadata

0 commit comments

Comments
 (0)