[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:
parent
ba72b396a4
commit
2ddac026f1
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ def setup(app):
|
||||
))
|
||||
|
||||
return {
|
||||
'parallel_read_safe': False,
|
||||
'parallel_read_safe': True,
|
||||
'parallel_write_safe': True
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user