-
Notifications
You must be signed in to change notification settings - Fork 2.6k
69 lines (64 loc) · 2.01 KB
/
algolia-crawler-ls-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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": [],
"selectors_exclude": [".home-page-index"],
"start_urls": [
{
"url": "https://labelstud.io/guide"
},
{
"url": "https://labelstud.io/templates"
},
{
"url": "https://labelstud.io/tags"
},
{
"url": "https://labelstud.io/sitemap-tutorials.xml",
"selectors_key": "blog",
"tags": ["tutorials"]
}
],
"selectors": {
"default": {
"lvl0": ".content h1, .ResourcesBannerHeading",
"lvl1": ".content h2, .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 > *"
},
"blog": {
"lvl0": ".BlogTitle",
"lvl1": ".ResourcesContent h1, .ResourcesContent h2",
"lvl2": ".ResourcesContent h3",
"lvl3": ".ResourcesContent h4",
"lvl4": ".ResourcesContent h5",
"lvl5": ".ResourcesContent h6",
"content": ".ResourcesContent > .Text"
}
}
}
name: Index Algolia
steps:
- name: Algolia Docsearch Action
id: algolia
uses: adapttive/[email protected]