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:
parent
0ed3df2c3a
commit
9614f0d6df
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue