Skip to content

Commit

Permalink
Replaced enum by const for constant value types in schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
sisp committed Nov 20, 2023
1 parent 258e1df commit 8a60a2a
Show file tree
Hide file tree
Showing 22 changed files with 1,733 additions and 5,197 deletions.
6,326 changes: 1,582 additions & 4,744 deletions docs/schema/assets/fonts.json

Large diffs are not rendered by default.

64 changes: 16 additions & 48 deletions docs/schema/extensions/pymdownx.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
{
"title": "Arithmatex – Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#arithmatex",
"enum": [
"pymdownx.arithmatex"
]
"const": "pymdownx.arithmatex"
}
]
},
Expand Down Expand Up @@ -63,9 +61,7 @@
{
"title": "BetterEm – Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#betterem",
"enum": [
"pymdownx.betterem"
]
"const": "pymdownx.betterem"
}
]
},
Expand All @@ -74,9 +70,7 @@
{
"title": "Caret – Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#caret-mark-tilde",
"enum": [
"pymdownx.caret"
]
"const": "pymdownx.caret"
},
{
"type": "object",
Expand Down Expand Up @@ -114,9 +108,7 @@
{
"title": "Critic – Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#critic",
"enum": [
"pymdownx.critic"
]
"const": "pymdownx.critic"
},
{
"type": "object",
Expand Down Expand Up @@ -145,18 +137,14 @@
{
"title": "Details – Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#details",
"enum": [
"pymdownx.details"
]
"const": "pymdownx.details"
},
{
"oneOf": [
{
"title": "Emoji – Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#emoji",
"enum": [
"pymdownx.emoji"
]
"const": "pymdownx.emoji"
},
{
"type": "object",
Expand Down Expand Up @@ -208,9 +196,7 @@
{
"title": "Highlight – Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#highlight",
"enum": [
"pymdownx.highlight"
]
"const": "pymdownx.highlight"
},
{
"type": "object",
Expand Down Expand Up @@ -267,18 +253,14 @@
{
"title": "InlineHilite – Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#inlinehilite",
"enum": [
"pymdownx.inlinehilite"
]
"const": "pymdownx.inlinehilite"
},
{
"oneOf": [
{
"title": "Keys – Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#keys",
"enum": [
"pymdownx.keys"
]
"const": "pymdownx.keys"
},
{
"type": "object",
Expand Down Expand Up @@ -320,9 +302,7 @@
{
"title": "MagicLink – Python Markdown Extensions",
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/",
"enum": [
"pymdownx.magiclink"
]
"const": "pymdownx.magiclink"
},
{
"type": "object",
Expand Down Expand Up @@ -410,9 +390,7 @@
{
"title": "Mark – Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#caret-mark-tilde",
"enum": [
"pymdownx.mark"
]
"const": "pymdownx.mark"
},
{
"type": "object",
Expand Down Expand Up @@ -440,9 +418,7 @@
{
"title": "SmartSymbols – Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#smartsymbols",
"enum": [
"pymdownx.smartsymbols"
]
"const": "pymdownx.smartsymbols"
},
{
"type": "object",
Expand Down Expand Up @@ -569,9 +545,7 @@
{
"title": "Snippets – Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#snippets",
"enum": [
"pymdownx.snippets"
]
"const": "pymdownx.snippets"
}
]
},
Expand All @@ -580,9 +554,7 @@
{
"title": "SuperFences – Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#superfences",
"enum": [
"pymdownx.superfences"
]
"const": "pymdownx.superfences"
},
{
"type": "object",
Expand Down Expand Up @@ -663,9 +635,7 @@
{
"title": "Tasklist – Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#tasklist",
"enum": [
"pymdownx.tasklist"
]
"const": "pymdownx.tasklist"
},
{
"type": "object",
Expand Down Expand Up @@ -697,9 +667,7 @@
{
"title": "Tilde – Python Markdown Extensions",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#caret-mark-tilde",
"enum": [
"pymdownx.tilde"
]
"const": "pymdownx.tilde"
},
{
"type": "object",
Expand Down
24 changes: 6 additions & 18 deletions docs/schema/extra.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
"if": {
"properties": {
"provider": {
"enum": [
"google"
]
"const": "google"
}
}
},
Expand All @@ -29,9 +27,7 @@
"provider": {
"title": "Google Analytics",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-analytics/#google-analytics",
"enum": [
"google"
]
"const": "google"
},
"property": {
"anyOf": [
Expand Down Expand Up @@ -189,21 +185,15 @@
"oneOf": [
{
"title": "Button to accept cookies",
"enum": [
"accept"
]
"const": "accept"
},
{
"title": "Button to reject cookies",
"enum": [
"reject"
]
"const": "reject"
},
{
"title": "Button to manage settings",
"enum": [
"manage"
]
"const": "manage"
}
]
},
Expand Down Expand Up @@ -310,9 +300,7 @@
"provider": {
"title": "Versioning provider",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-versioning/#versioning",
"enum": [
"mike"
]
"const": "mike"
},
"default": {
"title": "Default version",
Expand Down
12 changes: 3 additions & 9 deletions docs/schema/plugins/blog.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"oneOf": [
{
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/blog/",
"enum": [
"blog"
]
"const": "blog"
},
{
"type": "object",
Expand Down Expand Up @@ -114,15 +112,11 @@
"oneOf": [
{
"title": "Post excerpts are optional",
"enum": [
"optional"
]
"const": "optional"
},
{
"title": "Post excerpts are required, thus the build will fail",
"enum": [
"required"
]
"const": "required"
}
],
"default": "optional"
Expand Down
4 changes: 1 addition & 3 deletions docs/schema/plugins/external/gen-files.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"oneOf": [
{
"markdownDescription": "https://github.com/oprypin/mkdocs-gen-files",
"enum": [
"git-authors"
]
"const": "git-authors"
},
{
"type": "object",
Expand Down
4 changes: 1 addition & 3 deletions docs/schema/plugins/external/git-authors.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"oneOf": [
{
"markdownDescription": "https://timvink.github.io/mkdocs-git-authors-plugin/",
"enum": [
"git-authors"
]
"const": "git-authors"
},
{
"type": "object",
Expand Down
4 changes: 1 addition & 3 deletions docs/schema/plugins/external/git-committers.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"oneOf": [
{
"markdownDescription": "https://github.com/ojacques/mkdocs-git-committers-plugin-2",
"enum": [
"git-committers"
]
"const": "git-committers"
},
{
"type": "object",
Expand Down
4 changes: 1 addition & 3 deletions docs/schema/plugins/external/git-revision-date.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"oneOf": [
{
"markdownDescription": "https://github.com/zhaoterryy/mkdocs-git-revision-date-plugin",
"enum": [
"git-revision-date"
]
"const": "git-revision-date"
},
{
"type": "object",
Expand Down
4 changes: 1 addition & 3 deletions docs/schema/plugins/external/literate-nav.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"oneOf": [
{
"markdownDescription": "https://github.com/oprypin/mkdocs-literate-nav",
"enum": [
"literate-nav"
]
"const": "literate-nav"
},
{
"type": "object",
Expand Down
4 changes: 1 addition & 3 deletions docs/schema/plugins/external/macros.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"oneOf": [
{
"markdownDescription": "https://github.com/fralau/mkdocs_macros_plugin",
"enum": [
"macros"
]
"const": "macros"
},
{
"type": "object",
Expand Down
4 changes: 1 addition & 3 deletions docs/schema/plugins/external/section-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"oneOf": [
{
"markdownDescription": "https://github.com/oprypin/mkdocs-section-index",
"enum": [
"section-index"
]
"const": "section-index"
},
{
"type": "object",
Expand Down
4 changes: 1 addition & 3 deletions docs/schema/plugins/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"oneOf": [
{
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/info/",
"enum": [
"info"
]
"const": "info"
},
{
"type": "object",
Expand Down
4 changes: 1 addition & 3 deletions docs/schema/plugins/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"oneOf": [
{
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/meta/",
"enum": [
"meta"
]
"const": "meta"
},
{
"type": "object",
Expand Down
4 changes: 1 addition & 3 deletions docs/schema/plugins/offline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"oneOf": [
{
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/offline/",
"enum": [
"offline"
]
"const": "offline"
},
{
"type": "object",
Expand Down
4 changes: 1 addition & 3 deletions docs/schema/plugins/optimize.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"oneOf": [
{
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/",
"enum": [
"optimize"
]
"const": "optimize"
},
{
"type": "object",
Expand Down
4 changes: 1 addition & 3 deletions docs/schema/plugins/privacy.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"oneOf": [
{
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/",
"enum": [
"privacy"
]
"const": "privacy"
},
{
"type": "object",
Expand Down
Loading

0 comments on commit 8a60a2a

Please sign in to comment.