Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3957 from kazupon/patch/vue-i18n
Browse files Browse the repository at this point in the history
Vue I18n: update docsearch config
  • Loading branch information
shortcuts authored Apr 18, 2021
2 parents 30650e6 + afd5376 commit 97c3f4d
Showing 1 changed file with 73 additions and 27 deletions.
100 changes: 73 additions & 27 deletions configs/vue-i18n.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,89 @@
{
"index_name": "vue-i18n",
"start_urls": [
"https://vue-i18n-next.intlify.dev/"
{
"url": "https://vue-i18n.intlify.dev/ja/guide/",
"selectors_key": "guide",
"page_rank": 10,
"tags": [
"guide"
]
},
{
"url": "https://vue-i18n.intlify.dev/ja/api/",
"selectors_key": "api",
"page_rank": 8,
"tags": [
"api"
]
},
{
"url": "https://vue-i18n.intlify.dev/guide/",
"selectors_key": "guide",
"page_rank": 10,
"tags": [
"guide"
]
},
{
"url": "https://vue-i18n.intlify.dev/api/",
"selectors_key": "api",
"page_rank": 8,
"tags": [
"api"
]
}
],
"stop_urls": [
"\\.html"
],
"stop_urls": [],
"selectors": {
"lvl0": {
"selector": "(//ul[contains(@class,'menu__list')]//a[contains(@class, 'menu__link menu__link--sublist menu__link--active')]/text() | //nav[contains(@class, 'navbar')]//a[contains(@class, 'navbar__link--active')]/text())[last()]",
"type": "xpath",
"global": true,
"default_value": "Documentation"
"guide": {
"lvl0": {
"selector": "",
"default_value": "Guide"
},
"lvl1": ".content h1",
"lvl2": ".content h2",
"lvl3": ".content h3",
"lvl4": ".content h4",
"lvl5": ".content h5",
"text": ".content p, .content li",
"language": {
"selector": "/html/@lang",
"type": "xpath",
"global": true,
"default_value": "en-US"
}
},
"lvl1": ".content h1",
"lvl2": ".content h2",
"lvl3": ".content h3",
"lvl4": ".content h4",
"lvl5": ".content h5",
"lvl6": ".content h6",
"text": ".content p, .content li, .content td:last-child"
"api": {
"lvl0": {
"selector": "",
"default_value": "API"
},
"lvl1": ".content h1",
"lvl2": ".content h2",
"lvl3": ".content h3",
"lvl4": ".content h4",
"lvl5": ".content h5",
"text": ".content p, .content li",
"language": {
"selector": "/html/@lang",
"type": "xpath",
"global": true,
"default_value": "en-US"
}
}
},
"strip_chars": " .,;:#",
"custom_settings": {
"separatorsToIndex": "_",
"attributesForFaceting": [
"language",
"version",
"type",
"docusaurus_tag"
],
"attributesToRetrieve": [
"hierarchy",
"content",
"anchor",
"url",
"url_without_anchor",
"type"
"tags"
]
},
"conversation_id": [
"1353981287"
],
"nb_hits": 5742
"nb_hits": 5477
}

0 comments on commit 97c3f4d

Please sign in to comment.