-
Notifications
You must be signed in to change notification settings - Fork 65
/
docsearch.config.json
63 lines (63 loc) · 1.66 KB
/
docsearch.config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"index_name": "jquerymobile_com",
"start_urls": [
{ "url": "https://api.jquerymobile.com", "selectors_key": "api", "page_rank": 20 },
{ "url": "https://jquerymobile.com", "page_rank": 10 }
],
"sitemap_urls": [
"https://api.jquerymobile.com/wp-sitemap.xml"
],
"// stop_urls": [
"// Exclude URLs containing '?' such as /themeroller/?...",
"// Avoid excluding https://jquerymobile.com/resources/ itself"
],
"stop_urls": [
"\\?",
".com/category/",
".com/resources/.+",
".com\\/\\d\\."
],
"selectors": {
"default": {
"lvl0": {
"selector": "#menu-top .menu-item.current > a",
"global": true,
"default_value": "Documentation"
},
"lvl1": "#content h1",
"lvl2": "#content h2",
"lvl3": "#content h3",
"lvl4": "#content h4",
"lvl5": "#content h5",
"text": "#content p, #content li, #content tr"
},
"api": {
"lvl0": {
"selector": "#categories .cat-item.current-cat > a",
"global": true,
"default_value": "API"
},
"lvl1": "#content h1",
"lvl2": "#content h2, #content h4.name",
"lvl3": "#content h3, #content h4:not(.name)",
"lvl4": "#content h5, #content strong:first-child",
"text": ".entry-content p, .entry-content li"
}
},
"custom_settings": {
"token_separators": ["_", "-", "."]
},
"selectors_exclude": [
"header ~ article",
".returns",
".version-details",
".section-title",
".icon-link.toc-link",
"[class^=toclevel]",
"#toctitle",
".desc strong:first-child",
"#quick-nav header h2"
],
"min_indexed_level": 2,
"scrape_start_urls": false
}