Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Simplify release sidebar position numbering approach #253

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

merobi-hub
Copy link
Collaborator

@merobi-hub merobi-hub commented Oct 30, 2023

Currently we are using a custom script to iterate through the release files and update position numbers so the releases display in order in the sidebar. This adds complexity and an extra step to the process. It also complicates any future effort to automate the process of adding releases to the docs.

This changes release sidebar position numbers so the oldest release has a much larger number -- instead of using 1 for the most recent release. I went with 10000. Floats are supported, however, so in the unlikely event we "run out" of integers, we can start using them.

@netlify
Copy link

netlify bot commented Oct 30, 2023

Deploy Preview for mellifluous-eclair-326dcd ready!

Name Link
🔨 Latest commit 644ba63
🔍 Latest deploy log https://app.netlify.com/sites/mellifluous-eclair-326dcd/deploys/6543726ab0aef00008dd5e95
😎 Deploy Preview https://deploy-preview-253--mellifluous-eclair-326dcd.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.

…pdating.

Signed-off-by: Michael Robinson <merobi@gmail.com>
@merobi-hub merobi-hub force-pushed the releases/autogenerate-positions branch from c6e31d0 to 446fc70 Compare November 2, 2023 09:27
@merobi-hub merobi-hub changed the title Rename release files for autogeneration of sidebar positions Simplify release sidebar position numbering approach Nov 2, 2023
@JDarDagran
Copy link
Contributor

It's a great idea and looks like it's working 🚀 Maybe 10k is a better idea? Seems more relevant in decimal world.

Signed-off-by: Michael Robinson <merobi@gmail.com>
@merobi-hub
Copy link
Collaborator Author

@JDarDagran cool. works for me -- made the change.

@merobi-hub merobi-hub merged commit 487ed8d into main Nov 2, 2023
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants