Browse Source

Mark Sphinx extensions as parallel-safe

This makes it possible to build the whole documentation in parallel
by specifying the `-j <threads>` argument on the `sphinx-build`
command line.
Hugo Locurcio 6 years ago
parent
commit
8cda912ac4
2 changed files with 10 additions and 0 deletions
  1. 5 0
      extensions/gdscript.py
  2. 5 0
      extensions/sphinx_tabs/tabs.py

+ 5 - 0
extensions/gdscript.py

@@ -169,3 +169,8 @@ class GDScriptLexer(RegexLexer):
 
 def setup(sphinx):
     sphinx.add_lexer('gdscript', GDScriptLexer())
+
+    return {
+        'parallel_read_safe': True,
+        'parallel_write_safe': True,
+    }

+ 5 - 0
extensions/sphinx_tabs/tabs.py

@@ -339,3 +339,8 @@ def setup(app):
                 app.add_javascript(path)
     app.connect('html-page-context', update_context)
     app.connect('build-finished', copy_assets)
+
+    return {
+        'parallel_read_safe': True,
+        'parallel_write_safe': True,
+    }