File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : ' Update Algolia Search Results'
2+ on :
3+ # Allows you to run this workflow manually from the Actions tab
4+ workflow_dispatch :
5+ schedule :
6+ # The CRON duration for the job: At 2:30 AM UTC MON-FRI
7+ - cron : ' 30 2 * * 1-5'
8+
9+ # permission can be added at job level or workflow level
10+ permissions :
11+ id-token : write
12+ contents : read # This is required for actions/checkout
13+
14+ jobs :
15+ publish :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v3
20+ - name : Get the content of algolia.json as config
21+ id : algolia_config
22+ run : echo "::set-output name=config::$(cat apps/base-docs/algolia.json | jq -r tostring)"
23+ - name : Push indices to Algolia
24+ uses : signcl/docsearch-scraper-action@master
25+ env :
26+ APPLICATION_ID : ${{ secrets.ALGOLIA_APPLICATION_ID }}
27+ API_KEY : ${{ secrets.ALGOLIA_API_KEY }}
28+ CONFIG : ${{ steps.algolia_config.outputs.config }}
Original file line number Diff line number Diff line change 1+ {
2+ "index_name" : " prod" ,
3+ "start_urls" : [
4+ " https://docs.base.org"
5+ ],
6+ "sitemap_urls" : [
7+ " https://docs.base.org/sitemap.xml"
8+ ],
9+ "selectors" : {
10+ "default" : {
11+ "lvl0" : " article h1" ,
12+ "lvl1" : " article h2" ,
13+ "lvl2" : " article h3" ,
14+ "lvl3" : " article h4" ,
15+ "lvl4" : " article h5" ,
16+ "lvl5" : " article td:first-child" ,
17+ "lvl6" : " article td:not(td:first-child)" ,
18+ "text" : " article p, article li"
19+ }
20+ },
21+ "strip_chars" : " .,;:#"
22+ }
You can’t perform that action at this time.
0 commit comments