File tree 1 file changed +3
-9
lines changed
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 9
9
from lxml import html
10
10
import certifi
11
11
12
- __version__ = "2.0.0"
13
-
14
12
BASE_URL = "https://json-schema.org/draft/2020-12/"
15
13
VOCABULARIES = {
16
14
"core" : urljoin (BASE_URL , "json-schema-core.html" ),
@@ -45,7 +43,7 @@ def setup(app):
45
43
}
46
44
app .add_role ("kw" , docutils_does_not_allow_using_classes (documents ))
47
45
48
- return dict (version = __version__ , parallel_read_safe = True )
46
+ return dict (parallel_read_safe = True )
49
47
50
48
51
49
def fetch_or_load (vocabulary_path , url ):
@@ -63,12 +61,8 @@ def fetch_or_load(vocabulary_path, url):
63
61
the URL of the vocabulary document
64
62
"""
65
63
66
- headers = {
67
- "User-Agent" : "python-jsonschema v{} - documentation build v{}" .format (
68
- metadata .version ("jsonschema" ),
69
- __version__ ,
70
- ),
71
- }
64
+ version = metadata .version ("sphinx-json-schema-spec" )
65
+ headers = {"User-Agent" : f"sphinx-json-schema-spec v{ version } " }
72
66
73
67
with suppress (FileNotFoundError ):
74
68
modified = datetime .utcfromtimestamp (vocabulary_path .stat ().st_mtime )
You can’t perform that action at this time.
0 commit comments