-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Nuklai/feat/algolia
handle algolia and stuff
- Loading branch information
Showing
11 changed files
with
12,254 additions
and
3,175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.env | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"index_name": "nuklai_docs", | ||
"start_urls": ["https://docs.nukl.ai/", "http://localhost:3000/sitemap.xml"], | ||
"sitemap_urls": ["http://localhost:3000/sitemap.xml"], | ||
"allowed_domains": ["docs.nukl.ai"], | ||
"stop_urls": ["#__docusaurus_skipToContent_fallback"], | ||
"sitemap_alternate_links": true, | ||
"selectors": { | ||
"lvl0": { | ||
"selector": "(//ul[contains(@class,'menu__list')]//a[contains(@class, 'menu__link menu__link--sublist menu__link--active')]/text() | //nav[contains(@class, 'navbar')]//a[contains(@class, 'navbar__link--active')]/text())[last()]", | ||
"type": "xpath", | ||
"global": true, | ||
"default_value": "Documentation" | ||
}, | ||
"lvl1": "article h1", | ||
"lvl2": "article h2", | ||
"lvl3": "article h3", | ||
"lvl4": "article h4", | ||
"lvl5": "article h5", | ||
"text": "article p, article li" | ||
}, | ||
"strip_chars": " .,;:#", | ||
"custom_settings": { | ||
"separatorsToIndex": "_", | ||
"attributesForFaceting": ["language", "version", "type", "docusaurus_tag"], | ||
"attributesToRetrieve": [ | ||
"hierarchy", | ||
"content", | ||
"anchor", | ||
"url", | ||
"url_without_anchor", | ||
"type" | ||
] | ||
}, | ||
"js_render": true, | ||
"js_wait": 25, | ||
"max_concurrent_requests": 3, | ||
"nb_retries": 5, | ||
"use_anchors": false, | ||
"selectors_exclude": [".hash-link"], | ||
"min_indexed_level": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
docker run --platform linux/amd64 -it --env-file=.env \ | ||
-e "CONFIG=$(cat config.json | jq -c)" \ | ||
-e "DEBUG=1" -e "LOG_LEVEL=DEBUG" -e "VERBOSE=1" \ | ||
algolia/docsearch-scraper:latest | ||
|
||
|
||
# algolia sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.