mkdocs-material/docs/schema/plugins/search.json
2023-11-20 20:21:18 +01:00

153 lines
4.2 KiB
JSON

{
"$schema": "https://json-schema.org/draft-07/schema",
"title": "Built-in search plugin",
"oneOf": [
{
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/search/",
"const": "search"
},
{
"type": "object",
"properties": {
"search": {
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/search/",
"type": "object",
"properties": {
"lang": {
"oneOf": [
{
"$ref": "#/$defs/lang"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/lang"
},
"uniqueItems": true,
"minItems": 1
}
],
"default": "en"
},
"separator": {
"title": "Separator for indexing and query tokenization",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/search/#config.separator",
"type": "string"
},
"pipeline": {
"title": "Text processing pipeline for indexing",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/search/#config.pipeline",
"type": "array",
"items": {
"enum": [
"stemmer",
"stopWordFilter",
"trimmer"
]
},
"uniqueItems": true
},
"jieba_dict": {
"title": "Jieba dictionary replacement",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/search/#config.jieba_dict",
"type": "string"
},
"jieba_dict_user": {
"title": "Jieba dictionary augmentation",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/search/#config.jieba_dict_user",
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"$defs": {
"lang": {
"title": "Site search language",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/search/#config.lang",
"oneOf": [
{
"title": "Site search language: Arabic",
"const": "ar"
},
{
"title": "Site search language: Danish",
"const": "da"
},
{
"title": "Site search language: German",
"const": "de"
},
{
"title": "Site search language: Dutch",
"const": "du"
},
{
"title": "Site search language: English",
"const": "en"
},
{
"title": "Site search language: Spanish",
"const": "es"
},
{
"title": "Site search language: Finnish",
"const": "fi"
},
{
"title": "Site search language: French",
"const": "fr"
},
{
"title": "Site search language: Hungarian",
"const": "hu"
},
{
"title": "Site search language: Italian",
"const": "it"
},
{
"title": "Site search language: Japanese",
"const": "ja"
},
{
"title": "Site search language: Norwegian",
"const": "no"
},
{
"title": "Site search language: Portuguese",
"const": "pt"
},
{
"title": "Site search language: Romanian",
"const": "ro"
},
{
"title": "Site search language: Russian",
"const": "ru"
},
{
"title": "Site search language: Swedish",
"const": "sv"
},
{
"title": "Site search language: Thai",
"const": "th"
},
{
"title": "Site search language: Turkish",
"const": "tr"
},
{
"title": "Site search language: Vietnamese",
"const": "vi"
}
]
}
}
}