Skip to content

Commit

Permalink
Added missing icons and their defaults to JSON schema (#7020)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
hudsonm62 committed Apr 6, 2024
1 parent e4eb74e commit 0e8ed32
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions docs/schema/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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}"
}
]
},
Expand Down

0 comments on commit 0e8ed32

Please sign in to comment.