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

Commit 85a5791

Browse files
author
Sylvain Pace
committed
enhancing language feature with vuepress
1 parent d0a5659 commit 85a5791

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

configs/vuepress.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
11
{
22
"index_name": "vuepress",
33
"start_urls": [
4-
{
5-
"url": "https://vuepress.vuejs.org/zh/",
6-
"tags": [
7-
"zh"
8-
]
9-
},
10-
{
11-
"url": "https://vuepress.vuejs.org/",
12-
"tags": [
13-
"en"
14-
]
15-
}
4+
"https://vuepress.vuejs.org/"
165
],
176
"stop_urls": [],
187
"selectors": {
@@ -26,12 +15,22 @@
2615
"lvl3": ".content h3",
2716
"lvl4": ".content h4",
2817
"lvl5": ".content h5",
29-
"text": ".content p, .content li"
18+
"text": ".content p, .content li",
19+
"lang": {
20+
"selector": "/html/@lang",
21+
"type": "xpath",
22+
"global": true
23+
}
3024
},
3125
"scrap_start_urls": false,
3226
"conversation_id": [
3327
"561346943"
3428
],
3529
"strip_chars": " .,;:#",
36-
"nb_hits": 1048
30+
"custom_settings": {
31+
"attributesForFaceting": [
32+
"lang"
33+
]
34+
},
35+
"nb_hits": 1051
3736
}

0 commit comments

Comments
 (0)