Merge pull request #4736 from pawamoy/patch-4

Allow attribute-less use of pymdownx.emoji and pymdownx.tasklist
This commit is contained in:
Martin Donath 2022-12-11 18:20:11 +01:00 committed by GitHub
commit 163a74361d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,47 +150,58 @@
] ]
}, },
{ {
"type": "object", "oneOf": [
"properties": { {
"pymdownx.emoji": {
"title": "Emoji Python Markdown Extensions", "title": "Emoji Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#emoji", "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#emoji",
"enum": [
"pymdownx.emoji"
]
},
{
"type": "object", "type": "object",
"properties": { "properties": {
"emoji_generator": { "pymdownx.emoji": {
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.emoji.emoji_generator", "title": "Emoji Python Markdown Extensions",
"default": "!!python/name:materialx.emoji.to_svg" "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#emoji",
},
"emoji_index": {
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.emoji.emoji_index",
"default": "!!python/name:materialx.emoji.twemoji"
},
"options": {
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.emoji.options.custom_icons",
"type": "object", "type": "object",
"properties": { "properties": {
"custom_icons": { "emoji_generator": {
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.emoji.emoji_generator",
"default": "!!python/name:materialx.emoji.to_svg"
},
"emoji_index": {
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.emoji.emoji_index",
"default": "!!python/name:materialx.emoji.twemoji"
},
"options": {
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.emoji.options.custom_icons", "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.emoji.options.custom_icons",
"type": "array", "type": "object",
"items": { "properties": {
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.emoji.options.custom_icons", "custom_icons": {
"type": "string" "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.emoji.options.custom_icons",
"type": "array",
"items": {
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.emoji.options.custom_icons",
"type": "string"
},
"uniqueItems": true,
"minItems": 1
}
}, },
"uniqueItems": true, "additionalProperties": false
"minItems": 1
} }
}, },
"additionalProperties": false "additionalProperties": false,
"required": [
"emoji_generator",
"emoji_index"
]
} }
}, },
"additionalProperties": false, "additionalProperties": false
"required": [
"emoji_generator",
"emoji_index"
]
} }
}, ]
"additionalProperties": false
}, },
{ {
"oneOf": [ "oneOf": [
@ -561,27 +572,38 @@
"additionalProperties": false "additionalProperties": false
}, },
{ {
"type": "object", "oneOf": [
"properties": { {
"pymdownx.tasklist": {
"title": "Tasklist Python Markdown Extensions", "title": "Tasklist Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#tasklist", "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#tasklist",
"enum": [
"pymdownx.tasklist"
]
},
{
"type": "object", "type": "object",
"properties": { "properties": {
"custom_checkbox": { "pymdownx.tasklist": {
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.tasklist.custom_checkbox", "title": "Tasklist Python Markdown Extensions",
"type": "boolean", "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#tasklist",
"default": true "type": "object",
}, "properties": {
"clickable_checkbox": { "custom_checkbox": {
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.tasklist.clickable_checkbox", "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.tasklist.custom_checkbox",
"type": "boolean" "type": "boolean",
"default": true
},
"clickable_checkbox": {
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#+pymdownx.tasklist.clickable_checkbox",
"type": "boolean"
}
},
"additionalProperties": false
} }
}, },
"additionalProperties": false "additionalProperties": false
} }
}, ]
"additionalProperties": false
}, },
{ {
"oneOf": [ "oneOf": [