From 6ea8ee9de259665611942453b0fb55008009b911 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:30:57 -0800 Subject: [PATCH] feat: add Algolia search --- .github/workflows/algolia.yml | 32 ++++++++++++++++---------------- docusaurus.config.ts | 14 +++++++------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/algolia.yml b/.github/workflows/algolia.yml index 3917fd1b..05ff725b 100644 --- a/.github/workflows/algolia.yml +++ b/.github/workflows/algolia.yml @@ -16,19 +16,19 @@ jobs: steps: - name: Check out repository uses: actions/checkout@v4 - # - name: Wait for Netlify deployment - # if: github.event_name != 'workflow_dispatch' - # uses: probablyup/wait-for-netlify-action@3.2.0 - # with: - # site_id: ${{ secrets.NETLIFY_SITE_ID }} - # env: - # NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }} - # - name: Trigger Algolia crawl - # uses: algolia/algoliasearch-crawler-github-actions@v1 - # with: - # crawler-user-id: ${{ secrets.CRAWLER_USER_ID }} - # crawler-api-key: ${{ secrets.CRAWLER_API_KEY }} - # algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }} - # algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }} - # site-url: https://inventory.fix.security - # crawler-name: resoto + - name: Wait for Netlify deployment + if: github.event_name != 'workflow_dispatch' + uses: probablyup/wait-for-netlify-action@3.2.0 + with: + site_id: ${{ secrets.NETLIFY_SITE_ID }} + env: + NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }} + - name: Trigger Algolia crawl + uses: algolia/algoliasearch-crawler-github-actions@v1 + with: + crawler-user-id: ${{ secrets.CRAWLER_USER_ID }} + crawler-api-key: ${{ secrets.CRAWLER_API_KEY }} + algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }} + algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }} + site-url: https://inventory.fix.security + crawler-name: resoto diff --git a/docusaurus.config.ts b/docusaurus.config.ts index ed64d725..e7247f0e 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -363,13 +363,13 @@ const config: Config = { footer: { copyright: `Copyright © ${new Date().getFullYear()} Some Engineering Inc.`, }, - // algolia: { - // appId: 'DOGNENB96P', - // apiKey: '0e3e7cbce9da253ee147af5fe2f7d91b', - // indexName: 'resoto', - // contextualSearch: true, - // insights: true, - // }, + algolia: { + appId: 'BT2GRJ78EI', + apiKey: 'd180d83745e710f2e2d0e1fd58da8c1a', + indexName: 'inventory-fix', + contextualSearch: true, + insights: true, + }, prism: { theme: prismThemes.github, additionalLanguages: [