File tree Expand file tree Collapse file tree 5 files changed +23
-7
lines changed
jsonschema_specifications Expand file tree Collapse file tree 5 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 1
1
import importlib .metadata
2
2
import re
3
3
4
+ HOMEPAGE = "https://github.com/python-jsonschema/jsonschema-specifications"
5
+
4
6
project = "jsonschema-specifications"
5
7
author = "Julian Berman"
6
8
copyright = f"2022, { author } "
@@ -38,12 +40,19 @@ def entire_domain(host):
38
40
39
41
linkcheck_ignore = [
40
42
entire_domain ("img.shields.io" ),
41
- "https://github.com/python-jsonschema/jsonschema /actions" ,
42
- "https://github.com/python-jsonschema/jsonschema /workflows/CI/badge.svg" ,
43
+ f" { HOMEPAGE } /actions" ,
44
+ f" { HOMEPAGE } /workflows/CI/badge.svg" ,
43
45
]
44
46
45
47
# = Extensions =
46
48
49
+ # -- autodoc --
50
+
51
+ autodoc_default_options = {
52
+ "members" : True ,
53
+ "member-order" : "bysource" ,
54
+ }
55
+
47
56
# -- autosectionlabel --
48
57
49
58
autosectionlabel_prefix_document = True
Original file line number Diff line number Diff line change 1
1
metaschemas
2
2
runtime
3
+ schemas
Original file line number Diff line number Diff line change 1
- from jsonschema_specifications ._core import REGISTRY # noqa: F401
1
+ from referencing import Registry as _Registry
2
+ from referencing .jsonschema import SchemaRegistry as _SchemaRegistry
3
+
4
+ from jsonschema_specifications ._core import _schemas
5
+
6
+ #: A `referencing.jsonschema.SchemaRegistry` containing all of the official
7
+ #: meta-schemas and vocabularies.
8
+ REGISTRY : _SchemaRegistry = (_schemas () @ _Registry ()).crawl ()
9
+
10
+ __all__ = ["REGISTRY" ]
Original file line number Diff line number Diff line change 9
9
except ImportError :
10
10
from importlib_resources import files # type: ignore
11
11
12
- from referencing import Registry , Resource
12
+ from referencing import Resource
13
13
14
14
15
15
def _schemas ():
@@ -31,6 +31,3 @@ def _schemas():
31
31
for path in children :
32
32
contents = json .loads (path .read_text ())
33
33
yield Resource .from_contents (contents )
34
-
35
-
36
- REGISTRY : Registry = (_schemas () @ Registry ()).crawl ()
You can’t perform that action at this time.
0 commit comments