-
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 #1 from liuyuweitarek/dev
feat: jubi chatbot
- Loading branch information
Showing
63 changed files
with
1,708 additions
and
1,129 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 |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
/build | ||
/.docusaurus | ||
/coverage | ||
|
||
*.mdx |
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 |
---|---|---|
|
@@ -25,32 +25,32 @@ jobs: | |
with: | ||
node-version: 20.x | ||
cache: npm | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Create .env file | ||
uses: ozaytsev86/create-env-file@v1 | ||
with: | ||
ENV_APPLICATION_ID: ${{ secrets.APPLICATION_ID }} | ||
ENV_API_KEY: ${{ secrets.API_KEY }} | ||
ENV_INDEX_NAME: ${{ secrets.INDEX_NAME }} | ||
|
||
- name: Build website | ||
run: npm run build | ||
|
||
- name: Create .nojekyll file for GitHub Pages | ||
run: | | ||
mkdir -p build/test-site/ && touch -f build/test-site/.nojekyll | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./build | ||
user_name: liuyuweitarek | ||
user_email: [email protected] | ||
|
||
- name: Get the content of algolia.json as config | ||
id: algolia_config | ||
run: echo "config=$(cat ./algolia/prod-algolia-config.json | jq -r tostring)" >> $GITHUB_OUTPUT | ||
|
@@ -61,4 +61,4 @@ jobs: | |
INDEX_NAME: ${{ secrets.INDEX_NAME }} | ||
APPLICATION_ID: ${{ secrets.APPLICATION_ID }} | ||
API_KEY: ${{ secrets.API_KEY }} | ||
CONFIG: ${{ steps.algolia_config.outputs.config }} | ||
CONFIG: ${{ steps.algolia_config.outputs.config }} |
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
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 |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
/build | ||
/.docusaurus | ||
/coverage | ||
|
||
*.mdx |
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
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
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
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 |
---|---|---|
@@ -1,39 +1,37 @@ | ||
{ | ||
"index_name": "dev_personal_website", | ||
"start_urls": ["https://1f2e-42-73-214-202.ngrok-free.app"], | ||
"sitemap_urls": [ | ||
"https://1f2e-42-73-214-202.ngrok-free.app/sitemap.xml" | ||
], | ||
"sitemap_alternate_links": true, | ||
"stop_urls": ["/tests"], | ||
"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": "header h1", | ||
"lvl2": "article h2", | ||
"lvl3": "article h3", | ||
"lvl4": "article h4", | ||
"lvl5": "article h5, article td:first-child", | ||
"lvl6": "article h6", | ||
"text": "article p, article li, article td:last-child" | ||
"index_name": "dev_personal_website", | ||
"start_urls": ["https://1f2e-42-73-214-202.ngrok-free.app"], | ||
"sitemap_urls": ["https://1f2e-42-73-214-202.ngrok-free.app/sitemap.xml"], | ||
"sitemap_alternate_links": true, | ||
"stop_urls": ["/tests"], | ||
"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" | ||
}, | ||
"strip_chars": " .,;:#", | ||
"custom_settings": { | ||
"separatorsToIndex": "_", | ||
"attributesForFaceting": ["language", "version", "type", "docusaurus_tag"], | ||
"attributesToRetrieve": [ | ||
"hierarchy", | ||
"content", | ||
"anchor", | ||
"url", | ||
"url_without_anchor", | ||
"type" | ||
] | ||
}, | ||
"conversation_id": ["833762294"], | ||
"nb_hits": 46250 | ||
} | ||
"lvl1": "header h1", | ||
"lvl2": "article h2", | ||
"lvl3": "article h3", | ||
"lvl4": "article h4", | ||
"lvl5": "article h5, article td:first-child", | ||
"lvl6": "article h6", | ||
"text": "article p, article li, article td:last-child" | ||
}, | ||
"strip_chars": " .,;:#", | ||
"custom_settings": { | ||
"separatorsToIndex": "_", | ||
"attributesForFaceting": ["language", "version", "type", "docusaurus_tag"], | ||
"attributesToRetrieve": [ | ||
"hierarchy", | ||
"content", | ||
"anchor", | ||
"url", | ||
"url_without_anchor", | ||
"type" | ||
] | ||
}, | ||
"conversation_id": ["833762294"], | ||
"nb_hits": 46250 | ||
} |
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 |
---|---|---|
@@ -1,39 +1,37 @@ | ||
{ | ||
"index_name": "personal_website", | ||
"start_urls": ["https://liuyuweitarek.github.io"], | ||
"sitemap_urls": [ | ||
"https://liuyuweitarek.github.io/sitemap.xml" | ||
], | ||
"sitemap_alternate_links": true, | ||
"stop_urls": ["/tests"], | ||
"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": "header h1", | ||
"lvl2": "article h2", | ||
"lvl3": "article h3", | ||
"lvl4": "article h4", | ||
"lvl5": "article h5, article td:first-child", | ||
"lvl6": "article h6", | ||
"text": "article p, article li, article td:last-child" | ||
"index_name": "personal_website", | ||
"start_urls": ["https://liuyuweitarek.github.io"], | ||
"sitemap_urls": ["https://liuyuweitarek.github.io/sitemap.xml"], | ||
"sitemap_alternate_links": true, | ||
"stop_urls": ["/tests"], | ||
"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" | ||
}, | ||
"strip_chars": " .,;:#", | ||
"custom_settings": { | ||
"separatorsToIndex": "_", | ||
"attributesForFaceting": ["language", "version", "type", "docusaurus_tag"], | ||
"attributesToRetrieve": [ | ||
"hierarchy", | ||
"content", | ||
"anchor", | ||
"url", | ||
"url_without_anchor", | ||
"type" | ||
] | ||
}, | ||
"conversation_id": ["833762294"], | ||
"nb_hits": 46250 | ||
} | ||
"lvl1": "header h1", | ||
"lvl2": "article h2", | ||
"lvl3": "article h3", | ||
"lvl4": "article h4", | ||
"lvl5": "article h5, article td:first-child", | ||
"lvl6": "article h6", | ||
"text": "article p, article li, article td:last-child" | ||
}, | ||
"strip_chars": " .,;:#", | ||
"custom_settings": { | ||
"separatorsToIndex": "_", | ||
"attributesForFaceting": ["language", "version", "type", "docusaurus_tag"], | ||
"attributesToRetrieve": [ | ||
"hierarchy", | ||
"content", | ||
"anchor", | ||
"url", | ||
"url_without_anchor", | ||
"type" | ||
] | ||
}, | ||
"conversation_id": ["833762294"], | ||
"nb_hits": 46250 | ||
} |
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
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.