Added missing icons and their defaults to JSON schema (#7020)

* add missing `icon`s to theme schema

https://squidfunk.github.io/mkdocs-material/setup/changing-the-logo-and-icons/?h=icons#site-icons

* Add missing schema defaults
This commit is contained in:
Hudson 2024-04-07 09:43:56 +10:00 committed by GitHub
parent e4eb74e7ff
commit 0e8ed32bda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -344,6 +344,33 @@
"repo": {
"$ref": "#/$defs/icon"
},
"annotation": {
"$ref": "#/$defs/icon"
},
"top": {
"$ref": "#/$defs/icon"
},
"share": {
"$ref": "#/$defs/icon"
},
"menu": {
"$ref": "#/$defs/icon"
},
"alternate": {
"$ref": "#/$defs/icon"
},
"search": {
"$ref": "#/$defs/icon"
},
"close": {
"$ref": "#/$defs/icon"
},
"previous": {
"$ref": "#/$defs/icon"
},
"next": {
"$ref": "#/$defs/icon"
},
"admonition": {
"title": "Admonition icon",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/reference/admonitions/#admonition-icons",
@ -463,6 +490,34 @@
{
"label": "repo",
"body": "repo: ${1:fontawesome/brands/git-alt}"
},
{
"label": "top",
"body": "top: ${1:material/arrow-up}"
},
{
"label": "menu",
"body": "menu: ${1:material/menu}"
},
{
"label": "alternate",
"body": "alternate: ${1:material/translate}"
},
{
"label": "share",
"body": "share: ${1:material/share-variant}"
},
{
"label": "search",
"body": "search: ${1:material/magnify}"
},
{
"label": "previous",
"body": "previous: ${1:material/arrow-left}"
},
{
"label": "next",
"body": "next: ${1:material/arrow-right}"
}
]
},