Skip to content

Conversation

@eak12913
Copy link
Contributor

This PR updates the indexing operation in the CI/CD pipeline to start using the new version of the docs-sourcer that is capable of indexing operations. The behavior will mimic what already have: merge to master will update the stage index and a release will update the prod index.

This PR updates the indexing operation in the CI/CD pipeline to start using the new version of the `docs-sourcer` that is capable of indexing operations. The behavior will mimic what already have: merge to `master` will update the `stage` index and a release will update the `prod` index.
@netlify
Copy link

netlify bot commented May 31, 2023

Deploy Preview for pensive-meitner-faaeee ready!

Name Link
🔨 Latest commit 2a357a3
🔍 Latest deploy log https://app.netlify.com/sites/pensive-meitner-faaeee/deploys/6477b246ae31c700089db60e
😎 Deploy Preview https://deploy-preview-844--pensive-meitner-faaeee.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

echo "Updating search index with docs-sourcer using prefix: $index_prefix"
# Update Algolia index using docs-sourcer. This is the new method of indexing.
# In order to add plugins to this list just space separate them.
ALGOLIA_APP_ID="$ALGOLIA_APP_ID" ALGOLIA_API_KEY="$api_key" ALGOLIA_INDEX_PREFIX="$index_prefix" yarn regenerate --plugins docs-indexer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to clone the docs-sourcer somewhere in the job first for this to work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope - the plugin hits GitHub via API. So we should be decent

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦 sorry I saw the dependency then immediately decided i didn't see it, apparently

@eak12913 eak12913 merged commit f62c92a into master May 31, 2023
@eak12913 eak12913 deleted the CORE-983-use-docs-sourcer-for-indexing branch May 31, 2023 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants