Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7: Fix Algolia search crawler to work properly to re-index content #33

Merged
merged 7 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@ name: Algolia Search
on:
schedule:
- cron: '0 10 * * *'
# TODO: Remove trigger from push event when search index scraper is fixed
push:
branches:
- '7-fix-search'

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
mokaymokay marked this conversation as resolved.
Show resolved Hide resolved
- 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 @@ -27,7 +27,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
Loading