summaryrefslogtreecommitdiff
path: root/stevedore/sphinxext.py
diff options
context:
space:
mode:
authorSean McGinnis <sean.mcginnis@gmail.com>2020-04-13 09:04:36 -0500
committerStephen Finucane <stephenfin@redhat.com>2020-04-21 15:14:20 +0100
commitedc7f06a92d73c00918b8496c12b0efba6a58b6c (patch)
treea7b96ec5b1e0cb6fd67438d0235e906e7e1bdb31 /stevedore/sphinxext.py
parentee784d5de70b1b55a7ab616b32a098498ba9e391 (diff)
downloadstevedore-edc7f06a92d73c00918b8496c12b0efba6a58b6c.tar.gz
Mark sphinx extensions thread safe
This adds the return of some metadata to our sphinx extension setup to indicate they are thread safe. This is needed to allow consuming projects to do multithreaded docs builds. In some cases, this can save a noticeable amount of time in job execution. Change-Id: I43e8f0c992eaec9f5b669eea4ae551c8a3273588 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Diffstat (limited to 'stevedore/sphinxext.py')
-rw-r--r--stevedore/sphinxext.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/stevedore/sphinxext.py b/stevedore/sphinxext.py
index bdfa023..26f01e0 100644
--- a/stevedore/sphinxext.py
+++ b/stevedore/sphinxext.py
@@ -111,3 +111,7 @@ class ListPluginsDirective(rst.Directive):
def setup(app):
LOG.info('loading stevedore.sphinxext')
app.add_directive('list-plugins', ListPluginsDirective)
+ return {
+ 'parallel_read_safe': True,
+ 'parallel_write_safe': True,
+ }