Skip to content

Commit 3498c15

Browse files
committed
Add a version specifically for the role, and declare we're safe in parallel.
1 parent 06691bd commit 3498c15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sphinx_json_schema_spec/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from lxml import html
1313

1414

15+
__version__ = "1.0.0"
1516
VALIDATION_SPEC = "https://json-schema.org/draft-04/json-schema-validation.html"
1617

1718

@@ -38,6 +39,8 @@ def setup(app):
3839
spec = fetch_or_load(path)
3940
app.add_role("validator", docutils_sucks(spec))
4041

42+
return dict(version=__version__, parallel_read_safe=True)
43+
4144

4245
def fetch_or_load(spec_path):
4346
"""

0 commit comments

Comments
 (0)