Skip to content

Commit c040cbc

Browse files
committed
Evade Understanding JSON Schema no longer having an inventory.
See json-schema-org/website#84 for minor context. This obviously isn't/wasn't very hard in this specific repo, given we only really link to the homepage. Some more work may be required in sphinx-json-schema-spec.
1 parent 6b126db commit c040cbc

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

docs/conf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"sphinx.ext.autosectionlabel",
2121
"sphinx.ext.coverage",
2222
"sphinx.ext.doctest",
23+
"sphinx.ext.extlinks",
2324
"sphinx.ext.imgconverter",
2425
"sphinx.ext.intersphinx",
2526
"sphinx.ext.napoleon",
@@ -122,12 +123,18 @@ def entire_domain(host):
122123

123124
autosectionlabel_prefix_document = True
124125

126+
# -- extlinks --
127+
128+
extlinks = {
129+
"ujs": ("https://json-schema.org/understanding-json-schema%s", None),
130+
}
131+
extlinks_detect_hardcoded_links = True
132+
125133
# -- intersphinx --
126134

127135
intersphinx_mapping = {
128136
"python": ("https://docs.python.org/3", None),
129137
"referencing": ("https://referencing.readthedocs.io/en/stable/", None),
130-
"ujs": ("https://json-schema.org/understanding-json-schema/", None),
131138
}
132139

133140
# -- sphinxcontrib-spelling --

docs/validate.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Schema Validation
99

1010
Most of the documentation for this package assumes you're familiar with the fundamentals of writing JSON schemas themselves, and focuses on how this library helps you validate with them in Python.
1111

12-
If you aren't already comfortable with writing schemas and need an introduction which teaches about JSON Schema the specification, you may find `Understanding JSON Schema <ujs:basics>` to be a good read!
12+
If you aren't already comfortable with writing schemas and need an introduction which teaches about JSON Schema the specification, you may find :ujs:`Understanding JSON Schema </>` to be a good read!
1313

1414

1515
The Basics

0 commit comments

Comments
 (0)