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: I104271bc706fc33247548a147db0af05aa88737d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-04-13 08:58:54 -05:00
parent 0ed3df2c3a
commit 9614f0d6df
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8
2 changed files with 8 additions and 0 deletions

View File

@ -165,3 +165,7 @@ class ShowPolicyDirective(rst.Directive):
def setup(app):
app.add_directive('show-policy', ShowPolicyDirective)
return {
'parallel_read_safe': True,
'parallel_write_safe': True,
}

View File

@ -92,3 +92,7 @@ def setup(app):
app.add_config_value('policy_generator_config_file', None, 'env')
app.add_config_value('sample_policy_basename', None, 'env')
app.connect('builder-inited', generate_sample)
return {
'parallel_read_safe': True,
'parallel_write_safe': True,
}