diff --git a/.github/workflows/algoliasearch.yml b/.github/workflows/algoliasearch.yml index 88aeddc..c142e6f 100644 --- a/.github/workflows/algoliasearch.yml +++ b/.github/workflows/algoliasearch.yml @@ -13,9 +13,10 @@ jobs: - name: Checkout Repository uses: actions/checkout@v2 - - name: Get the content of algolia.json as config - id: algolia_config - run: echo "config=$(cat crawlerConfig.json | jq -r tostring)" >> $GITHUB_OUTPUT + - name: Prepare Algolia DocSearch config + run: | + echo '${{ secrets.ALGOLIA_CONFIG }}' > config.json + cat config.json - name: Trigger Algolia Crawler uses: algolia/algoliasearch-crawler-github-actions@v1 diff --git a/crawlerConfig.json b/crawlerConfig.json deleted file mode 100644 index dbdcd7c..0000000 --- a/crawlerConfig.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "index_name": "rrorangeandfriends", - "start_urls": ["https://rrorangeandfriends.site/"], - "rateLimit": 8, - "maxDepth": 10, - "selectors": { - "lvl0": { - "selector": "", - "defaultValue": "Documentation" - }, - "lvl1": ".content h1", - "lvl2": ".content h2", - "lvl3": ".content h3", - "lvl4": ".content h4", - "lvl5": ".content h5", - "content": ".content p, .content li", - "lang": { - "selector": "/html/@lang", - "type": "xpath", - "global": true - } - }, - "selectors_exclude": [ - "aside", - ".page-footer", - ".next-and-prev-link", - ".table-of-contents" - ], - "custom_settings": { - "attributesForFaceting": ["lang", "tags"] - }, - "js_render": true -}