forked from algolia/docsearch-configs
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemberjs_versions_new.json
69 lines (69 loc) · 2.34 KB
/
emberjs_versions_new.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
64
65
66
67
68
69
{
"index_name": "emberjs_versions_new",
"start_urls": [
{
"url": "https://guides.emberjs.com/(?P<version>.*?)/",
"variables": {
"version": {
"url": "https://guides.emberjs.com",
"js": "var versions = $('#version-select option').map(function(i, e) { return $(e).text(); }).toArray(); return JSON.stringify(versions);"
}
},
"tags": [
"guide"
],
"selectors_key": "guide"
},
{
"url": "https://emberjs.com/api/ember/2.13/",
"variables": {
"version": {
"url": "https://emberjs.com/api/ember/2.13/namespaces/Ember",
"js": "var shoeboxEmberVersions = JSON.parse(document.getElementById('shoebox-meta-store').text)['availableProjectVersions']['ember']; var groupedByMinor = shoeboxEmberVersions.reduce(function(previous, current) { var splitVersion = current.split('.'); var minorVersion = splitVersion[0]+'.'+splitVersion[1]; if(!previous[minorVersion]) { previous[minorVersion] = [splitVersion[2]]; } else { previous[minorVersion].push(splitVersion[2]); } return previous; },{}); var versions = Object.keys(groupedByMinor); return JSON.stringify(versions);"
}
},
"tags": [
"api"
],
"selectors_key": "api"
}
],
"selectors_exclude": [
".old-version-warning",
".edit-page",
".class-info",
"#content p:first-child",
"p.attributes"
],
"stop_urls": [
"\\?anchor"
],
"selectors": {
"guide": {
"lvl0": ".header ul li.active a, #header ul li a.active, #header ul li.active a",
"lvl1": ".toc-level-0.selected > a, #sidebar .level-1.selected > a",
"lvl2": "main h1, #content h1",
"lvl3": "main h2, #content h2",
"lvl4": "main h3, #content h3",
"lvl5": "main h4, #content h4",
"text": "main p, #content p"
},
"api": {
"lvl0": {
"selector": "//*[contains(@class, 'ember-view')]//*[contains(@class, 'ember-view')]//*[contains(@class, 'toc-level-1')]/a[contains(@class, 'active')]/../../preceding::a[1]",
"type": "xpath",
"default_value": "API Documentation"
},
"lvl1": "article h1",
"lvl2": ".api-index-filter a",
"lvl3": "article h3",
"lvl4": "article h4",
"text": "article .description"
}
},
"min_indexed_level": {
"guide": 2,
"api": 1
},
"nb_hits": 43352
}