You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.rst
+16-3
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,7 @@ The extension currently provides a single Sphinx `role`:
9
9
10
10
.. rst:role:: kw
11
11
12
-
Link to the current JSON Schema specification's definition of the keyword
13
-
provided.
12
+
Link to the current JSON Schema specification's definition of the keyword provided.
14
13
15
14
For instance, writing:
16
15
@@ -22,7 +21,21 @@ will produce:
22
21
23
22
Reference resolution in JSON Schema is done using the :kw:`$ref` keyword.
24
23
24
+
In addition, the extension automatically populates the Sphinx glossary with terms from the `JSON Schema Glossary <https://json-schema.org/learn/glossary.html>`_, such that:
25
+
26
+
.. code-block:: rst
27
+
28
+
If a :term:`schema` has a :term:`meta-schema`, what do :term:`meta-schemas <meta-schema>` have?
29
+
30
+
will produce:
31
+
32
+
If a :term:`schema` has a :term:`meta-schema`, what do :term:`meta-schemas <meta-schema>` have?
33
+
34
+
35
+
Contributing
36
+
------------
37
+
25
38
What's here, albeit crude, has been used in some form for a long while by `jsonschema` (the Python library), but the hope is it may be useful to alternate implementations or users in general.
26
39
Help is very much welcome to improve it!
27
40
28
-
In the future support may be added for linking to different drafts, or for linking to `Understanding JSON Schema <https://json-schema.org/understanding-json-schema/index.html>`_.
41
+
In particular, help adding support for other (historic or future) drafts, rather than just the single draft currently supported, would be great.
0 commit comments