-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add algolia crawler for LS docs (#6570)
- Loading branch information
1 parent
6faee2f
commit 5d20416
Showing
4 changed files
with
164 additions
and
82 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,41 @@ | ||
name: Algolia Indexer for HumanSignal Docs | ||
|
||
on: | ||
push: | ||
branches: ["develop"] | ||
paths: | ||
- "docs/**" | ||
- ".github/workflows/algolia-crawler-hs-docs.yml" | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
algolia_indexer: | ||
runs-on: ubuntu-latest | ||
env: | ||
APPLICATION_ID: "M7RXTHKYPM" | ||
API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }} | ||
INDEX_NAME: "ghaction" | ||
CONFIG: > | ||
{"index_name": "ghaction", | ||
"stop_urls": ["https://docs.humansignal.com/guide/index.html", "https://docs.humansignal.com/guide/notion-faq.html", "https://labelstud.io/sdk/index.html"], | ||
"selectors_exclude": [".home-page-index"], | ||
"sitemap_urls": ["https://docs.humansignal.com/guide/sitemap-docs.xml", "https://labelstud.io/sitemap-blog.xml"], | ||
"selectors": { | ||
"default": { | ||
"lvl0": ".content h1, .ResourcesBannerHeading, .BlogTitle", | ||
"lvl1": ".content h2, .ResourcesContent h1, .ResourcesContent h2", | ||
"lvl2": ".content h3, .ResourcesContent h3", | ||
"lvl3": ".content h4, .ResourcesContent h4", | ||
"lvl4": ".content h5, .ResourcesContent h5", | ||
"lvl5": ".content h6, .ResourcesContent h6", | ||
"content": ".content-markdown > *, .ResourcesContent > .Text" | ||
} | ||
} | ||
} | ||
name: Index Algolia | ||
steps: | ||
- name: Algolia Docsearch Action | ||
id: algolia | ||
uses: adapttive/[email protected] |
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 @@ | ||
name: Algolia Indexer for Label Studio Docs | ||
|
||
on: | ||
push: | ||
branches: ["develop"] | ||
paths: | ||
- "docs/**" | ||
- ".github/workflows/algolia-crawler-ls-docs.yml" | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
algolia_indexer: | ||
runs-on: ubuntu-latest | ||
env: | ||
APPLICATION_ID: "M7RXTHKYPM" | ||
API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }} | ||
INDEX_NAME: "labelstudiodocs" | ||
CONFIG: > | ||
{ | ||
"index_name": "labelstudiodocs", | ||
"stop_urls": ["https://labelstud.io/guide/index.html", "https://labelstud.io/sdk/index.html"], | ||
"selectors_exclude": [".home-page-index"], | ||
"sitemap_urls": ["https://labelstud.io/sitemap-blog.xml", "https://labelstud.io/guide/sitemap-docs.xml"], | ||
"selectors": { | ||
"default": { | ||
"lvl0": ".content h1, .ResourcesBannerHeading, .BlogTitle", | ||
"lvl1": ".content h2, .ResourcesContent h1, .ResourcesContent h2", | ||
"lvl2": ".content h3, .ResourcesContent h3", | ||
"lvl3": ".content h4, .ResourcesContent h4", | ||
"lvl4": ".content h5, .ResourcesContent h5", | ||
"lvl5": ".content h6, .ResourcesContent h6", | ||
"content": ".content-markdown > *, .ResourcesContent > .Text" | ||
} | ||
} | ||
} | ||
name: Index Algolia | ||
steps: | ||
- name: Algolia Docsearch Action | ||
id: algolia | ||
uses: adapttive/[email protected] |
This file was deleted.
Oops, something went wrong.
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