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

69 lines
2.4 KiB
JSON
Raw Normal View History

2022-01-29 21:14:23 +03:00
{
"$schema": "https://json-schema.org/draft-07/schema",
"title": "Built-in social plugin",
"oneOf": [
{
2022-07-17 17:36:42 +03:00
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards/#built-in-social-plugin",
2022-01-29 21:14:23 +03:00
"enum": [
"social"
]
},
{
"type": "object",
"properties": {
"social": {
2022-07-17 17:36:42 +03:00
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards/#built-in-social-plugin",
2022-01-29 21:14:23 +03:00
"type": "object",
"properties": {
"cards": {
"title": "Social card generation",
2022-09-11 20:25:40 +03:00
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards/#+social.cards",
2022-02-21 14:03:36 +03:00
"type": "boolean",
"default": true
2022-01-29 21:14:23 +03:00
},
"cards_color": {
"title": "Social card color palette",
2022-09-11 20:25:40 +03:00
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards/#+social.cards_color",
2022-01-29 21:14:23 +03:00
"type": "object",
"properties": {
"fill": {
"title": "Background fill color",
2022-09-11 20:25:40 +03:00
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards/#+social.cards_color",
2022-01-29 21:14:23 +03:00
"type": "string"
},
"text": {
"title": "Foreground text color",
2022-09-11 20:25:40 +03:00
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards/#+social.cards_color",
2022-01-29 21:14:23 +03:00
"type": "string"
}
},
"additionalProperties": false,
"required": [
"fill",
"text"
]
},
"cards_font": {
2022-01-30 11:04:11 +03:00
"$ref": "../assets/fonts.json"
2022-01-29 21:14:23 +03:00
},
2022-06-19 09:17:14 +03:00
"cards_dir": {
2022-01-29 21:14:23 +03:00
"title": "Social card directory",
2022-09-11 20:25:40 +03:00
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards/#+social.cards_dir",
2022-01-29 21:14:23 +03:00
"type": "string",
"default": "assets/images/social"
}
},
2022-01-30 20:00:23 +03:00
"additionalProperties": false,
"defaultSnippets": [
{
"label": "cards_font",
"body": "cards_font: ${1:Roboto}"
}
]
2022-01-29 21:14:23 +03:00
}
},
"additionalProperties": false
}
]
}