diff --git a/.github/workflows/typesense.yml b/.github/workflows/typesense.yml deleted file mode 100644 index 785797b..0000000 --- a/.github/workflows/typesense.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Update Typesense - -on: - workflow_dispatch: - push: - branches: [develop] - -jobs: - build: - name: Update Typesense index - runs-on: ubuntu-latest - permissions: - contents: read - steps: - - name: Check out the repo - uses: actions/checkout@v4 - - - run: | - docker run -e TYPESENSE_API_KEY="${{ secrets.TYPESENSE_API_KEY }}" \ - -e TYPESENSE_HOST="typesense.test.aelf.dev" \ - -e TYPESENSE_PORT=443 \ - -e TYPESENSE_PROTOCOL=https \ - -e "CONFIG=$(cat config/typesense.json | jq -r tostring)" typesense/docsearch-scraper:0.9.1 \ No newline at end of file diff --git a/config/typesense.json b/config/typesense.json deleted file mode 100644 index d078c76..0000000 --- a/config/typesense.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "index_name": "aelf-docs", - "start_urls": ["https://docs.aelf.dev"], - "sitemap_urls": ["http://docs.aelf.dev/sitemap.xml"], - "sitemap_alternate_links": true, - "stop_urls": [], - "selectors": { - "lvl0": { - "selector": "(//ul[contains(@class,'menu__list')]//a[contains(@class, 'menu__link menu__link--sublist menu__link--active')]/text() | //nav[contains(@class, 'navbar')]//a[contains(@class, 'navbar__link--active')]/text())[last()]", - "type": "xpath", - "global": true, - "default_value": "Documentation" - }, - "lvl1": "article h1, header h1", - "lvl2": "article h2", - "lvl3": "article h3", - "lvl4": "article h4", - "lvl5": "article h5, article td:first-child", - "lvl6": "article h6", - "text": "article p, article li, article td:last-child" - }, - "strip_chars": " .,;:#", - "custom_settings": { - "separatorsToIndex": "_", - "attributesForFaceting": ["language", "version", "type", "docusaurus_tag"], - "attributesToRetrieve": [ - "hierarchy", - "content", - "anchor", - "url", - "url_without_anchor", - "type" - ] - }, - "conversation_id": ["833762294"], - "nb_hits": 46250 -}