From 6b3accd2a77c99b8f53badb94f673a310ccf143f Mon Sep 17 00:00:00 2001 From: Adrian Rumpold Date: Tue, 21 Nov 2023 16:01:30 +0100 Subject: [PATCH] Add mkdocs.yml JSON schema support for sane_lists and Neoteroi markdown extensions --- docs/schema/extensions.json | 3 +++ docs/schema/extensions/external/neoteroi.json | 27 +++++++++++++++++++ docs/schema/extensions/markdown.json | 8 ++++++ 3 files changed, 38 insertions(+) create mode 100644 docs/schema/extensions/external/neoteroi.json diff --git a/docs/schema/extensions.json b/docs/schema/extensions.json index 50bb5fc5c..a237216d8 100644 --- a/docs/schema/extensions.json +++ b/docs/schema/extensions.json @@ -10,6 +10,9 @@ }, { "$ref": "extensions/pymdownx.json" + }, + { + "$ref": "extensions/external/neoteroi.json" } ] }, diff --git a/docs/schema/extensions/external/neoteroi.json b/docs/schema/extensions/external/neoteroi.json new file mode 100644 index 000000000..de9543663 --- /dev/null +++ b/docs/schema/extensions/external/neoteroi.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema", + "title": "Neoteroi markdown extensions", + "markdownDescription": "https://www.neoteroi.dev/mkdocs-plugins", + "oneOf": [ + { + "title": "Cards – Neoteroi Markdown", + "markdownDescription": "https://www.neoteroi.dev/mkdocs-plugins/cards/", + "const": "neoteroi.cards" + }, + { + "title": "Timeline – Neoteroi Markdown", + "markdownDescription": "https://www.neoteroi.dev/mkdocs-plugins/timeline/", + "const": "neoteroi.timeline" + }, + { + "title": "Gantt – Neoteroi Markdown", + "markdownDescription": "https://www.neoteroi.dev/mkdocs-plugins/gantt/", + "const": "neoteroi.projects" + }, + { + "title": "Spantable – Neoteroi Markdown", + "markdownDescription": "https://www.neoteroi.dev/mkdocs-plugins/spantable/", + "const": "neoteroi.spantable" + } + ] +} diff --git a/docs/schema/extensions/markdown.json b/docs/schema/extensions/markdown.json index 0de7f1fba..746040faf 100644 --- a/docs/schema/extensions/markdown.json +++ b/docs/schema/extensions/markdown.json @@ -59,6 +59,14 @@ "md_in_html" ] }, + { + "title": "Sane Lists – Python Markdown", + "markdownDescription": "https://python-markdown.github.io/extensions/sane_lists/", + "enum": [ + "markdown.extensions.sane_lists", + "sane_lists" + ] + }, { "title": "Tables – Python Markdown", "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#tables",