-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Issue 16404 - Documentation version selector dropdown #16478
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
base: master
Are you sure you want to change the base?
Conversation
data/versions.yml
Outdated
preliminary: "1.27" | ||
|
||
# List of all versions to be included in the dropdown selector and for archive logic | ||
versions: |
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.
I think you can infer all of this programatically.
We know what the version is, we can subtract N from it, and when the site is built, it's built with a flag showing if content is archive, preliminary or current. (At least that used to be true; we can just infer anything that is not latest is archive.)
Description
This PR tests a version selector dropdown under "Documentation" and includes previous logic for implementing a netlify edge function.
Reviewers