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

docs: update version for non docs pages #6526

Merged

Conversation

charlieegan3
Copy link
Contributor

This sets the default version for all non docs pages to latest.

We have recently started to list some pages in the search index from non docs pages, when a user makes a search, they search within the current version. This will make pages from the rest of the site available in the index when searching from 'latest'.

This sets the default version for all non docs pages to latest.

We have recently started to list some pages in the search index from non
docs pages, when a user makes a search, they search within the current
version. This will make pages from the rest of the site available in the
index when searching from 'latest'.

Signed-off-by: Charlie Egan <[email protected]>
Copy link

netlify bot commented Jan 16, 2024

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit 4a5a842
🔍 Latest deploy log https://app.netlify.com/sites/openpolicyagent/deploys/65a6559b4e53180008c4324c
😎 Deploy Preview https://deploy-preview-6526--openpolicyagent.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 configuration.

Copy link
Contributor

@srenatus srenatus left a comment

Choose a reason for hiding this comment

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

It's messing with the well-alignedness of the := lines, but I don't think that's a necessary thing to keep intact. So LGTM 🚀

@ashutosh-narkar ashutosh-narkar merged commit 89bb42b into open-policy-agent:main Jan 16, 2024
25 checks passed
@charlieegan3 charlieegan3 deleted the non-docs-version branch January 17, 2024 09:22
charlieegan3 added a commit to charlieegan3/opa that referenced this pull request Jan 17, 2024
open-policy-agent#6526 contained two errors,
that I can see. First, it used `Permalink` rather than `RelPermalink`,
this contains the host and scheme on build and so the older versions of
pages were all getting version set to the latest.

Even if that had worked, the setting of version was incorrect and set a
locally scoped var instead of the variable for the whole file.

Signed-off-by: Charlie Egan <[email protected]>
ashutosh-narkar pushed a commit that referenced this pull request Jan 17, 2024
#6526 contained two errors,
that I can see. First, it used `Permalink` rather than `RelPermalink`,
this contains the host and scheme on build and so the older versions of
pages were all getting version set to the latest.

Even if that had worked, the setting of version was incorrect and set a
locally scoped var instead of the variable for the whole file.

Signed-off-by: Charlie Egan <[email protected]>
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