-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Updating DocSeach to v3 from v2 #5706
Updating DocSeach to v3 from v2 #5706
Conversation
✅ Deploy Preview for openpolicyagent ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
25c3493
to
28719bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @Parsifal-M 🙏 and for being so patient while we worked out how to get the App ID too. It is appreciated!
These changes look fine to me. They work in the preview and locally. It's nice that updating seems to be a pretty minimal change too 👏
Do you have anything left to do here?
28719bc
to
7cfb0c0
Compare
Signed-off-by: Peter Macdonald <[email protected]>
7cfb0c0
to
f64f361
Compare
The base URL is used to generate Permalinks in hugo: https://gohugo.io/content-management/urls/ We then use page permalinks to generate the canonical URL: https://github.com/open-policy-agent/opa/blob/09f1724270abe9b17a440c035d3837303688e268/docs/website/layouts/partials/meta.html#L47 This causes issues for the algolia crawler since www.openpolicyagent.org is the domain used in there, and not openpolicyagent.org. Given that we don't seem to use it either: ``` $ curl -I https://openpolicyagent.org/docs/v0.43.1/policy-language/ HTTP/2 301 location: https://www.openpolicyagent.org/docs/v0.43.1/policy-language/ ... ``` I think it makes sense to update this to www. This is being done as follow on from: #5706 Signed-off-by: Charlie Egan <[email protected]>
Hey! 👋
This PR is to update from the legacy (now unsupported) Algolia v2 to the new v3 🥳
As its not fully working yet I have marked it as [WIP] and as you can see there are still some debugging stuff in there to help get this over the finish line 😅
Right now I think there is an issue with the
{{ apiKey }}
, when you check the console after trying to make a search you get some403
sThanks! 💪
Thanks!