Skip to content

Commit 248c213

Browse files
Merge #386
386: Fix CI test with the new documentation data r=alallema a=alallema The new documentation website has changed so the config file struct for the test wasn't working Co-authored-by: alallema <[email protected]>
2 parents 7942cdd + 5ea3336 commit 248c213

File tree

2 files changed

+23
-17
lines changed

2 files changed

+23
-17
lines changed
Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
{
22
"index_uid": "docs",
3-
"start_urls": ["https://docs.meilisearch.com"],
3+
"start_urls": ["https://www.meilisearch.com/docs"],
44
"selectors": {
55
"lvl0": {
6-
"selector": ".sidebar-heading.open",
6+
"selector": "#sidebar-list .sidebar-link[data-active=true]",
77
"global": true,
88
"default_value": "Documentation"
99
},
10-
"lvl1": ".theme-default-content h1",
11-
"lvl2": ".theme-default-content h2",
12-
"lvl3": ".theme-default-content h3",
13-
"lvl4": ".theme-default-content h4",
14-
"lvl5": ".theme-default-content h5",
15-
"text": ".theme-default-content p, .theme-default-content li"
10+
"lvl1": {
11+
"selector": ".docs-main h1",
12+
"global": true
13+
},
14+
"lvl2": ".docs-main h2",
15+
"lvl3": ".docs-main h3",
16+
"lvl4": ".docs-main h4",
17+
"lvl5": ".docs-main h5",
18+
"text": ".docs-main p, .docs-main li, .docs-main td"
1619
}
1720
}

tests/config_files_examples/docs-custom.config.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
{
22
"index_uid": "docs",
3-
"sitemap_urls": ["https://docs.meilisearch.com/sitemap.xml"],
4-
"start_urls": ["https://docs.meilisearch.com"],
3+
"sitemap_urls": ["https://www.meilisearch.com/sitemap.xml"],
4+
"start_urls": ["https://www.meilisearch.com/docs"],
55
"selectors": {
66
"lvl0": {
7-
"selector": ".sidebar-heading.open",
7+
"selector": "#sidebar-list .sidebar-link[data-active=true]",
88
"global": true,
99
"default_value": "Documentation"
1010
},
11-
"lvl1": ".theme-default-content h1",
12-
"lvl2": ".theme-default-content h2",
13-
"lvl3": ".theme-default-content h3",
14-
"lvl4": ".theme-default-content h4",
15-
"lvl5": ".theme-default-content h5",
16-
"text": ".theme-default-content p, .theme-default-content li"
11+
"lvl1": {
12+
"selector": ".docs-main h1",
13+
"global": true
14+
},
15+
"lvl2": ".docs-main h2",
16+
"lvl3": ".docs-main h3",
17+
"lvl4": ".docs-main h4",
18+
"lvl5": ".docs-main h5",
19+
"text": ".docs-main p, .docs-main li, .docs-main td"
1720
},
1821
"strip_chars": " .,;:#",
1922
"scrap_start_urls": true,

0 commit comments

Comments
 (0)