Skip to content

Commit

Permalink
7: Fix Algolia search crawler to work properly to re-index content (#33)
Browse files Browse the repository at this point in the history
* Update search workflow to trigger on push to this branch and add a step to install homebrew

* Use homebrew action to set up homebrew

* Use newer checkout action, refactor to use native package manager instead of homebrew

* Fix syntax error

* Use homebrew again

* Update docs for clarity

* Remove push event to trigger crawler
  • Loading branch information
mokaymokay authored Nov 25, 2024
1 parent 83b68a9 commit 7016877
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Run Scraper
run: |
brew install jq
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ See https://www.npmjs.com/package/typedoc-plugin-markdown for details.

# How to Update search indices with algolia

- Create an .env file with `APPLICATION_ID` and the `API_KEY` (write access).
- Create an .env file with `APPLICATION_ID` and the `API_KEY` (Admin API Key w/ write access, should be kept secret).
If you don't have those, one for the Engineering Managers should be able to help you.
- Edit config.json file if needed:
- Start url from updated website
Expand Down
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
additionalLanguages: ['solidity'],
},
algolia: {
apiKey: '32465e2ab6f7554ff014e64c0d92171c',
apiKey: '32465e2ab6f7554ff014e64c0d92171c', // Search-Only API Key (Public & safe to commit)
indexName: 'v3-docs',
appId: 'S0IDD0YGLZ',
},
Expand Down

0 comments on commit 7016877

Please sign in to comment.