diff --git a/docs/schema/extensions.json b/docs/schema/extensions.json index f5706dbaf..efb6a92ec 100644 --- a/docs/schema/extensions.json +++ b/docs/schema/extensions.json @@ -63,13 +63,6 @@ }, { "oneOf": [ - { - "title": "Table Of Contents – Python Markdown", - "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#table-of-contents", - "enum": [ - "toc" - ] - }, { "type": "object", "properties": { @@ -105,6 +98,7 @@ }, "toc_depth": { "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#toc-depth", + "type": "number", "enum": [ 0, 1, @@ -116,22 +110,28 @@ ] } }, - "additionalProperties": false + "additionalProperties": false, + "defaultSnippets": [ + { + "label": "permalink", + "body": "permalink: true" + } + ] } }, "additionalProperties": false + }, + { + "title": "Table Of Contents – Python Markdown", + "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#table-of-contents", + "enum": [ + "toc" + ] } ] }, { "oneOf": [ - { - "title": "Arithmatex – Python Markdown Extensions", - "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#arithmatex", - "enum": [ - "pymdownx.arithmatex" - ] - }, { "type": "object", "properties": { @@ -150,18 +150,18 @@ } }, "additionalProperties": false + }, + { + "title": "Arithmatex – Python Markdown Extensions", + "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#arithmatex", + "enum": [ + "pymdownx.arithmatex" + ] } ] }, { "oneOf": [ - { - "title": "BetterEm – Python Markdown Extensions", - "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#betterem", - "enum": [ - "pymdownx.betterem" - ] - }, { "type": "object", "properties": { @@ -172,18 +172,27 @@ "properties": { "smart_enable": { "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/betterem/#options", + "type": "string", "enum": [ "all", "asterisk", "underscore", "none" - ] + ], + "default": "all" } }, "additionalProperties": false } }, "additionalProperties": false + }, + { + "title": "BetterEm – Python Markdown Extensions", + "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#betterem", + "enum": [ + "pymdownx.betterem" + ] } ] }, @@ -277,11 +286,13 @@ "properties": { "emoji_generator": { "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/emoji/#options", - "type": "string" + "type": "string", + "default": "!!python/name:materialx.emoji.to_svg" }, "emoji_index": { "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/emoji/#options", - "type": "string" + "type": "string", + "default": "!!python/name:materialx.emoji.twemoji" }, "options": { "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#custom-icons", @@ -395,10 +406,15 @@ }, "repo_url_shorthand": { "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options", - "type": "boolean" + "type": "boolean", + "default": true } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "user", + "repo" + ] } }, "additionalProperties": false @@ -595,9 +611,11 @@ "properties": { "alternate_style": { "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#tabbed-alternate-style", + "type": "boolean", "enum": [ true - ] + ], + "default": true } }, "additionalProperties": false, @@ -618,7 +636,8 @@ "properties": { "custom_checkbox": { "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#tasklist-custom-checkbox", - "type": "boolean" + "type": "boolean", + "default": true }, "clickable_checkbox": { "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#tasklist-clickable-checkbox", diff --git a/mkdocs.yml b/mkdocs.yml index c5824d143..943fc3cf8 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -133,8 +133,8 @@ markdown_extensions: - pymdownx.caret - pymdownx.details - pymdownx.emoji: - emoji_index: !!python/name:materialx.emoji.twemoji emoji_generator: !!python/name:materialx.emoji.to_svg + emoji_index: !!python/name:materialx.emoji.twemoji - pymdownx.highlight: anchor_linenums: true - pymdownx.inlinehilite