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

DOC-4344: Add Algolia site keys to playbooks #121

Merged
merged 2 commits into from
Apr 23, 2024
Merged

DOC-4344: Add Algolia site keys to playbooks #121

merged 2 commits into from
Apr 23, 2024

Conversation

eric-schneider
Copy link
Contributor

@eric-schneider eric-schneider commented Apr 23, 2024

Jira: DOC-4344

This PR updates the DocSearch script configuration to use variables instead of explicit hard-coded values. In this paradigm, the UI now depends on the playbook to supply the corresponding values (in this case using site.keys).

In addition, I've added conditional logic such that if any of the variables is missing or undefined in the playbook, then the script doesn't get generated (and the search box doesn't appear in the UI). I felt that this was more ideal than loading a non-functional search box if the values weren't supplied. If this isn't the desired behavior, then we might consider adding default values to the build logic so that we at least ensure that a valid configuration is supplied.

IMPORTANT: We must merge https://github.com/riptano/datastax-docs-site/pull/157 first before implementing the UI changes in this PR.

@eric-schneider eric-schneider self-assigned this Apr 23, 2024
@mlr
Copy link
Contributor

mlr commented Apr 23, 2024

UI bundle preview build successful! ✅
Deploying preview to GitHub Pages.
Deployment successful! View preview

@mlr
Copy link
Contributor

mlr commented Apr 23, 2024

Antora site build successful! ✅
Deploying draft to GitHub Pages.
Deployment successful! View draft

Copy link
Collaborator

@colegoldsmith colegoldsmith left a comment

Choose a reason for hiding this comment

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

Looks solid to me!

@eric-schneider eric-schneider merged commit 567723b into main Apr 23, 2024
2 checks passed
@eric-schneider eric-schneider deleted the DOC-4344 branch April 23, 2024 21:14
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