Skip to content

Commit 3818b76

Browse files
lpsingerashb
authored andcommitted
Declare that parallel builds are supported
Populate and return extension metadata to declare that sphinxext-argparse supports parallel builds. See sphinx documentation: https://www.sphinx-doc.org/en/master/extdev/index.html?highlight=parallel_read_safe#extension-metadata Fixes alex-rudakov/sphinx-argparse#105.
1 parent 45fc6d9 commit 3818b76

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sphinxarg/ext.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
from sphinxarg.parser import parse_parser, parser_navigate
1414

15+
from . import __version__
16+
1517

1618
def map_nested_definitions(nested_content):
1719
if nested_content is None:
@@ -510,3 +512,7 @@ def run(self):
510512

511513
def setup(app):
512514
app.add_directive('argparse', ArgParseDirective)
515+
return {
516+
'parallel_read_safe': True,
517+
'version': __version__
518+
}

0 commit comments

Comments
 (0)