2023-07-18 16:02:13 +03:00
|
|
|
{
|
|
|
|
"$schema": "https://json-schema.org/draft-07/schema",
|
|
|
|
"title": "Built-in optimize plugin",
|
|
|
|
"oneOf": [
|
|
|
|
{
|
2023-09-15 12:30:01 +03:00
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/",
|
2023-11-20 12:59:18 +03:00
|
|
|
"const": "optimize"
|
2023-07-18 16:02:13 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"optimize": {
|
2023-09-15 12:30:01 +03:00
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/",
|
2023-07-18 16:02:13 +03:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"enabled": {
|
|
|
|
"title": "Enable plugin",
|
2023-09-15 12:30:01 +03:00
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.enabled",
|
2023-07-18 16:02:13 +03:00
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"concurrency": {
|
|
|
|
"title": "Concurrency (number of CPUs)",
|
2023-09-15 12:30:01 +03:00
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.concurrency",
|
2023-07-29 18:58:01 +03:00
|
|
|
"type": "number"
|
2023-07-18 16:02:13 +03:00
|
|
|
},
|
|
|
|
"cache": {
|
|
|
|
"title": "Enable caching",
|
2023-09-15 12:30:01 +03:00
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.cache",
|
2023-07-18 16:02:13 +03:00
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"cache_dir": {
|
|
|
|
"title": "Cache directory",
|
2023-09-15 12:30:01 +03:00
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.cache_dir",
|
2023-07-18 16:02:13 +03:00
|
|
|
"type": "string",
|
2023-09-15 12:30:01 +03:00
|
|
|
"default": ".cache/plugins/optimize"
|
2023-07-18 16:02:13 +03:00
|
|
|
},
|
|
|
|
"optimize_png": {
|
|
|
|
"title": "Optimization of PNGs",
|
2023-09-15 12:30:01 +03:00
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_png",
|
2023-07-18 16:02:13 +03:00
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"optimize_png_speed": {
|
|
|
|
"title": "Speed/quality tradeoff [1,10]",
|
2023-09-15 12:30:01 +03:00
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_png_speed",
|
2023-07-18 16:02:13 +03:00
|
|
|
"type": "number",
|
|
|
|
"default": 4
|
|
|
|
},
|
|
|
|
"optimize_png_strip": {
|
|
|
|
"title": "Strip unnecessary metadata from PNGs",
|
2023-09-15 12:30:01 +03:00
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_png_strip",
|
2023-07-18 16:02:13 +03:00
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"optimize_jpg": {
|
|
|
|
"title": "Optimization of JPGs",
|
2023-09-15 12:30:01 +03:00
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_jpg",
|
2023-07-18 16:02:13 +03:00
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"optimize_jpg_quality": {
|
|
|
|
"title": "Speed/quality tradeoff for pngquant [0,10]",
|
2023-09-15 12:30:01 +03:00
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_jpg_quality",
|
2023-07-18 16:02:13 +03:00
|
|
|
"type": "number",
|
|
|
|
"default": 60
|
|
|
|
},
|
|
|
|
"optimize_jpg_progressive": {
|
|
|
|
"title": "Progressive encoding (faster rendering)",
|
2023-09-15 12:30:01 +03:00
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_jpg_progressive",
|
2023-07-18 16:02:13 +03:00
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
2023-09-15 12:30:01 +03:00
|
|
|
"optimize_include": {
|
|
|
|
"title": "Files or folders to include",
|
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_include",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"title": "Files or folders matching this pattern will be included",
|
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_include",
|
|
|
|
"pattern": ".*"
|
|
|
|
},
|
|
|
|
"uniqueItems": true,
|
|
|
|
"minItems": 1
|
|
|
|
},
|
|
|
|
"optimize_exclude": {
|
|
|
|
"title": "Files or folders to exclude",
|
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_exclude",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"title": "Files or folders matching this pattern will be excluded",
|
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.optimize_exclude",
|
|
|
|
"pattern": ".*"
|
|
|
|
},
|
|
|
|
"uniqueItems": true,
|
|
|
|
"minItems": 1
|
|
|
|
},
|
2023-07-18 16:02:13 +03:00
|
|
|
"print_gain": {
|
|
|
|
"title": "Print optimization gain",
|
2023-09-15 12:30:01 +03:00
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.print_gain",
|
2023-07-18 16:02:13 +03:00
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"print_gain_summary": {
|
|
|
|
"title": "Print optimization gain summary",
|
2023-09-15 12:30:01 +03:00
|
|
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/optimize/#config.print_gain_summary",
|
2023-07-18 16:02:13 +03:00
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"additionalProperties": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|