forked from ueberdosis/tiptap
-
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.
- Loading branch information
1 parent
2d7661c
commit 15e2685
Showing
2 changed files
with
65 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Automate, customize, and execute your software development workflows right in your repository with GitHub Actions. | ||
# Documentation: https://docs.github.com/en/actions | ||
|
||
name: docsearch | ||
|
||
on: | ||
workflow_dispatch: | ||
repository_dispatch: | ||
types: | ||
- docsearch | ||
|
||
jobs: | ||
|
||
docsearch: | ||
steps: | ||
- name: Run DocSearch Scraper | ||
shell: bash | ||
run: | | ||
docker run \ | ||
-e TYPESENSE_API_KEY=${{ secrets.TYPESENSE_API_KEY }} \ | ||
-e TYPESENSE_HOST="${{ secrets.TYPESENSE_HOST }}" \ | ||
-e TYPESENSE_PORT="${{ secrets.TYPESENSE_PORT }}" \ | ||
-e TYPESENSE_PROTOCOL="${{ secrets.TYPESENSE_PROTOCOL }}" \ | ||
-e CONFIG="$(cat docsearch.config.json | jq -r tostring)" \ | ||
typesense/docsearch-scraper |
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,40 @@ | ||
{ | ||
"index_name": "tiptap", | ||
"start_urls": [ | ||
"https://tiptap.dev" | ||
], | ||
"sitemap_alternate_links": true, | ||
"stop_urls": [ | ||
"https://tiptap.dev/hocuspocus" | ||
], | ||
"selectors": { | ||
"default": { | ||
"lvl0": { | ||
"selector": "", | ||
"global": true, | ||
"default_value": "Documentation" | ||
}, | ||
"lvl1": "main h1", | ||
"lvl2": "main h2", | ||
"lvl3": "main h3", | ||
"lvl4": "main h4", | ||
"lvl5": "main h5", | ||
"lvl6": "main h6", | ||
"text": "main p, main li, main pre, main td" | ||
} | ||
}, | ||
"strip_chars": " .,;:#", | ||
"custom_settings": { | ||
"separatorsToIndex": "_", | ||
"attributesForFaceting": [ | ||
"type", | ||
"lang" | ||
], | ||
"attributesToRetrieve": [ | ||
"hierarchy", | ||
"text", | ||
"anchor", | ||
"url" | ||
] | ||
} | ||
} |