[FIX] extensions: support parallel read

Now that patchqueue was removed, we can consider supporting the parallel 
read with our local extensions.

Since we only have basic extensions, not storing any data on the build 
environment, the change mainly consists of specifying the extensions as 
parallelizable.

The only specific case is the html domain, since the base html domain 
requires the support of the method merge_domaindata in parallel read 
mode.  Since we do not need to share anything between the envs for this 
extension, we can simply ignore the method.
This commit is contained in:
Victor Feyens 2021-05-12 13:22:41 +02:00 committed by Antoine Vandevenne (anv)
parent ba72b396a4
commit 2ddac026f1
8 changed files with 16 additions and 8 deletions

View File

@ -21,6 +21,6 @@ def setup(app):
directives.register_directive('autoattribute', PlaceHolder)
return {
'parallel_read_safe': False,
'parallel_read_safe': True,
'parallel_write_safe': True
}

View File

@ -66,6 +66,6 @@ def setup(app):
directives.register_directive('vimeo', Vimeo)
return {
'parallel_read_safe': False,
'parallel_read_safe': True,
'parallel_write_safe': True
}

View File

@ -21,7 +21,7 @@ def setup(app):
))
return {
'parallel_read_safe': False,
'parallel_read_safe': True,
'parallel_write_safe': True
}

View File

@ -75,7 +75,7 @@ def setup(app):
app.config.linkcode_resolve = linkcode_resolve
return {
'parallel_read_safe': False,
'parallel_read_safe': True,
'parallel_write_safe': True
}

View File

@ -40,7 +40,7 @@ def setup(app):
addnode(app, node, name)
return {
'parallel_read_safe': False,
'parallel_read_safe': True,
'parallel_write_safe': True
}
@ -183,3 +183,11 @@ class HtmlDomain(Domain):
'var': makerole(var),
'samp': makerole(samp),
}
def merge_domaindata(self, docnames, otherdata) -> None:
"""Merge in data regarding *docnames* from a different domaindata
inventory (coming from a subprocess in parallel builds).
"""
# This extension doesn't store any data on the env
# and therefore doesn't need to support this method.
pass

View File

@ -16,7 +16,7 @@ def setup(app):
app.add_js_file('js/page_toc.js')
return {
'parallel_read_safe': False,
'parallel_read_safe': True,
'parallel_write_safe': True
}

View File

@ -64,6 +64,6 @@ def setup(app):
app.connect('builder-inited', generate_redirects)
return {
'parallel_read_safe': False,
'parallel_read_safe': True,
'parallel_write_safe': True
}

View File

@ -13,7 +13,7 @@ def setup(app):
app.connect('env-updated', add_statics)
return {
'parallel_read_safe': False,
'parallel_read_safe': True,
'parallel_write_safe': True
}