Skip to content

Commit

Permalink
Fix config file struct for the new documentation website
Browse files Browse the repository at this point in the history
  • Loading branch information
alallema committed May 30, 2023
1 parent 7942cdd commit 5ea3336
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
19 changes: 11 additions & 8 deletions tests/config_files_examples/docs-basics.config.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{
"index_uid": "docs",
"start_urls": ["https://docs.meilisearch.com"],
"start_urls": ["https://www.meilisearch.com/docs"],
"selectors": {
"lvl0": {
"selector": ".sidebar-heading.open",
"selector": "#sidebar-list .sidebar-link[data-active=true]",
"global": true,
"default_value": "Documentation"
},
"lvl1": ".theme-default-content h1",
"lvl2": ".theme-default-content h2",
"lvl3": ".theme-default-content h3",
"lvl4": ".theme-default-content h4",
"lvl5": ".theme-default-content h5",
"text": ".theme-default-content p, .theme-default-content li"
"lvl1": {
"selector": ".docs-main h1",
"global": true
},
"lvl2": ".docs-main h2",
"lvl3": ".docs-main h3",
"lvl4": ".docs-main h4",
"lvl5": ".docs-main h5",
"text": ".docs-main p, .docs-main li, .docs-main td"
}
}
21 changes: 12 additions & 9 deletions tests/config_files_examples/docs-custom.config.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
{
"index_uid": "docs",
"sitemap_urls": ["https://docs.meilisearch.com/sitemap.xml"],
"start_urls": ["https://docs.meilisearch.com"],
"sitemap_urls": ["https://www.meilisearch.com/sitemap.xml"],
"start_urls": ["https://www.meilisearch.com/docs"],
"selectors": {
"lvl0": {
"selector": ".sidebar-heading.open",
"selector": "#sidebar-list .sidebar-link[data-active=true]",
"global": true,
"default_value": "Documentation"
},
"lvl1": ".theme-default-content h1",
"lvl2": ".theme-default-content h2",
"lvl3": ".theme-default-content h3",
"lvl4": ".theme-default-content h4",
"lvl5": ".theme-default-content h5",
"text": ".theme-default-content p, .theme-default-content li"
"lvl1": {
"selector": ".docs-main h1",
"global": true
},
"lvl2": ".docs-main h2",
"lvl3": ".docs-main h3",
"lvl4": ".docs-main h4",
"lvl5": ".docs-main h5",
"text": ".docs-main p, .docs-main li, .docs-main td"
},
"strip_chars": " .,;:#",
"scrap_start_urls": true,
Expand Down

0 comments on commit 5ea3336

Please sign in to comment.