mkdocs-material/docs/schema/plugins/redirects.json

52 lines
1.5 KiB
JSON
Raw Normal View History

2022-01-29 18:12:25 +03:00
{
"$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": {
2022-01-29 20:19:42 +03:00
"title": "Mapping of Markdown files",
"markdownDescription": "https://github.com/datarobot/mkdocs-redirects#using",
2022-01-29 18:12:25 +03:00
"type": "object",
"patternProperties": {
"\\.md$": {
"oneOf": [
{
2022-01-29 20:19:42 +03:00
"title": "Internal redirect",
"markdownDescription": "https://github.com/datarobot/mkdocs-redirects#using",
2022-01-29 18:12:25 +03:00
"pattern": "\\.md$"
},
{
2022-01-29 20:19:42 +03:00
"title": "External redirect",
"markdownDescription": "https://github.com/datarobot/mkdocs-redirects#using",
2022-01-29 18:12:25 +03:00
"pattern": "^https?:"
}
]
}
},
2022-01-30 16:19:35 +03:00
"defaultSnippets": [
{
"label": "Internal redirect",
"body": {
"${1:from}.md": "${2:to}.md"
}
},
{
"label": "External redirect",
"body": {
"${1:from}.md": "https://${2:to.url}"
}
}
],
2022-01-29 18:12:25 +03:00
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}