Explorar o código

remove uneeded files as search is now free.

mitm001 %!s(int64=5) %!d(string=hai) anos
pai
achega
0dff888af6
Modificáronse 2 ficheiros con 0 adicións e 65 borrados
  1. 0 47
      .github/workflows/algolia-search.yml
  2. 0 18
      production-config.json

+ 0 - 47
.github/workflows/algolia-search.yml

@@ -1,47 +0,0 @@
-# This workflow runs the Algolia scraper for in document searches. It will pull
-#in the pre-built docker image from Algolia and build the search index.
-#
-# The cron schedule syntax determines when to run the scrape.
-# see:
-#   https://help.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule
-#
-# The token set in the secrets tab (configured on the Algolia account)
-# determines what actions can be taken using the scraper with the index.
-# see:
-#   https://www.algolia.com/doc/guides/security/api-keys/#defining-and-securing-access
-#
-# The *-config.json controls how the search works inside the documents themselves.
-# see:
-#   https://docsearch.algolia.com/docs/config-file
-
-name: Algolia Search
-
-on:
-
-#  schedule:
-#    - cron:  '0 3 * * 0'
-
-  push:
-#    branches: [ master ]
-    branches-ignore:
-      - '**'
-  pull_request:
-
-jobs:
-
-  build:
-
-    runs-on: ubuntu-latest
-
-    steps:
-    - uses: actions/checkout@v2
-
-    - name: Run scraper
-      run: |
-        docker pull algolia/docsearch-scraper
-        docker run -e "APPLICATION_ID=$APPLICATION_ID" \
-                   -e "API_KEY=$API_KEY" \
-                   -e "CONFIG=$(cat production-config.json | jq -r tostring)" algolia/docsearch-scraper
-      env:
-        APPLICATION_ID: ${{secrets.ANGOLIA_APPLICATION_ID}}
-        API_KEY: ${{secrets.ANGOLIA_API_KEY}}

+ 0 - 18
production-config.json

@@ -1,18 +0,0 @@
-{
-  "index_name": "prod_docs_wiki",
-  "start_urls": ["https://wiki.jmonkeyengine.org/"],
-  "sitemap_urls": ["https://wiki.jmonkeyengine.org/sitemap.xml"],
-  "selectors": {
-    "default": {
-      "lvl0": {
-        "global": true,
-        "selector": "h1"
-      },
-      "lvl1": "h2",
-      "lvl2": "h3",
-      "lvel3": "h4",
-      "text": "p, li"
-    }
-  },
-  "selectors_exclude": [".footer", ".header"]
-}