mkdocs-material/docs/schema/plugins/redirects.json
2022-01-30 14:19:35 +01:00

52 lines
1.5 KiB
JSON

{
"$schema": "https://json-schema.org/draft-07/schema",
"title": "Redirects plugin",
"type": "object",
"properties": {
"redirects": {
"markdownDescription": "https://github.com/datarobot/mkdocs-redirects",
"type": "object",
"properties": {
"redirect_maps": {
"title": "Mapping of Markdown files",
"markdownDescription": "https://github.com/datarobot/mkdocs-redirects#using",
"type": "object",
"patternProperties": {
"\\.md$": {
"oneOf": [
{
"title": "Internal redirect",
"markdownDescription": "https://github.com/datarobot/mkdocs-redirects#using",
"pattern": "\\.md$"
},
{
"title": "External redirect",
"markdownDescription": "https://github.com/datarobot/mkdocs-redirects#using",
"pattern": "^https?:"
}
]
}
},
"defaultSnippets": [
{
"label": "Internal redirect",
"body": {
"${1:from}.md": "${2:to}.md"
}
},
{
"label": "External redirect",
"body": {
"${1:from}.md": "https://${2:to.url}"
}
}
],
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}