From ed5ee1eba85701d7b31b0b24dbf917c972153bf8 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Sun, 3 Nov 2024 20:57:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20test:=20algolia=20=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=94=AF=E6=8C=81-patch=5F6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/algolia.yml | 20 -------------------- crawlerConfig.json | 33 --------------------------------- 2 files changed, 53 deletions(-) delete mode 100644 .github/workflows/algolia.yml delete mode 100644 crawlerConfig.json diff --git a/.github/workflows/algolia.yml b/.github/workflows/algolia.yml deleted file mode 100644 index 0343f62..0000000 --- a/.github/workflows/algolia.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Algolia DocSearch Scraper -on: - push: - branches: - - main - -jobs: - algolia: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Get the content of algolia.json as config - id: algolia_config - run: echo "config=$(cat crawlerConfig.json | jq -r tostring)" >> $GITHUB_OUTPUT - - name: Push indices to Algolia - uses: signcl/docsearch-scraper-action@master - env: - APPLICATION_ID: ${{ secrets.APPLICATION_ID }} - API_KEY: ${{ secrets.API_KEY }} - CONFIG: ${{ steps.algolia_config.outputs.config }} 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 -}