mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Updated JSON schema
This commit is contained in:
parent
545fb27418
commit
c2e55585fa
@ -34,6 +34,9 @@
|
||||
{
|
||||
"$ref": "plugins/offline.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/optimize.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/privacy.json"
|
||||
},
|
||||
@ -45,6 +48,9 @@
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/tags.json"
|
||||
},
|
||||
{
|
||||
"$ref": "plugins/typeset.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
95
docs/schema/plugins/optimize.json
Normal file
95
docs/schema/plugins/optimize.json
Normal file
@ -0,0 +1,95 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Built-in optimize plugin",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#built-in-optimize-plugin",
|
||||
"enum": [
|
||||
"optimize"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"optimize": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#built-in-optimize-plugin",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"title": "Enable plugin",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#+optimize.enabled",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"concurrency": {
|
||||
"title": "Concurrency (number of CPUs)",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#+optimize.concurrency",
|
||||
"type": "number",
|
||||
"default": 1
|
||||
},
|
||||
"cache": {
|
||||
"title": "Enable caching",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#+optimize.cache",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"cache_dir": {
|
||||
"title": "Cache directory",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#+optimize.cache_dir",
|
||||
"type": "string",
|
||||
"default": ".cache/plugins/social"
|
||||
},
|
||||
"optimize_png": {
|
||||
"title": "Optimization of PNGs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#+optimize.optimize_png",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"optimize_png_speed": {
|
||||
"title": "Speed/quality tradeoff [1,10]",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#+optimize.optimize_png_speed",
|
||||
"type": "number",
|
||||
"default": 4
|
||||
},
|
||||
"optimize_png_strip": {
|
||||
"title": "Strip unnecessary metadata from PNGs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#+optimize.optimize_png_strip",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"optimize_jpg": {
|
||||
"title": "Optimization of JPGs",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#+optimize.optimize_jpg",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"optimize_jpg_quality": {
|
||||
"title": "Speed/quality tradeoff for pngquant [0,10]",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#+optimize.optimize_jpg_quality",
|
||||
"type": "number",
|
||||
"default": 60
|
||||
},
|
||||
"optimize_jpg_progressive": {
|
||||
"title": "Progressive encoding (faster rendering)",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#+optimize.optimize_jpg_progressive",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"print_gain": {
|
||||
"title": "Print optimization gain",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"print_gain_summary": {
|
||||
"title": "Print optimization gain summary",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
31
docs/schema/plugins/typeset.json
Normal file
31
docs/schema/plugins/typeset.json
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema",
|
||||
"title": "Built-in typeset plugin",
|
||||
"oneOf": [
|
||||
{
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/reference/#built-in-typeset-plugin",
|
||||
"enum": [
|
||||
"typeset"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"typeset": {
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/reference/#built-in-typeset-plugin",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"title": "Enable plugin",
|
||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/reference/#+typeset.enabled",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user