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

[v1.0.0b] [Task] - Docs: Tag new Features with Version Info #3310

Open
hay-kot opened this issue Mar 13, 2024 · 3 comments
Open

[v1.0.0b] [Task] - Docs: Tag new Features with Version Info #3310

hay-kot opened this issue Mar 13, 2024 · 3 comments
Labels
task General Task that needs to be completed v1 Version 1 Issue/PR

Comments

@hay-kot
Copy link
Collaborator

hay-kot commented Mar 13, 2024

What is the problem this task addresses?

There is some confusion with how documentation is published with nightly information and what is available in stable.

Proposed/Possible Solution(s)?

I suggest that we tag documentation sections with the release tag. I do this for Homebox.

CleanShot 2024-03-13 at 10 01 44@2x

You can see the code for that here

https://github.com/hay-kot/homebox/blob/main/docs/docs/tips-tricks.md#qr-codes

Basically, just add :octicons-tag-24: v0.9.0

@hay-kot hay-kot added task General Task that needs to be completed v1 Version 1 Issue/PR labels Mar 13, 2024
@boc-the-git
Copy link
Collaborator

@hay-kot what value do you see being populated for "unreleased" items? The OIDC example.. in theory it could be added as v1.4.0, but that's not guaranteed.
Do you suggest just choosing the next minor version (e.g. 1.4.0) at the time someone raises their PR?

I accept anything is better than the current state, just trying to understand the intention :)

@hay-kot
Copy link
Collaborator Author

hay-kot commented Mar 14, 2024

@boc-the-git

With what I've proposed there are two benefits I think. 1) We don't have to update or change how docs are deployed. I don't think Netlify has an easy way to only deploy on release so we'd likely have to move it back to GH pages or something to have it deploy only the released docs. 2) Publishing nightly docs is helpful when we ask folks to test stuff like OIDC. Just point them to the one docs URL.

Do you suggest just choosing the next minor version (e.g. 1.4.0) at the time someone raises their PR?

Yes, but I think that's pretty easy to determine. If you're adding a new section to the docs for a new feature, you know that your change is going to incur a minor version bump. I don't think there would be any instances where we would bump just the patch version and include a large section of documentation where the version would matter like it does here. These flags would only be for features in my mind.

--

The alternative would be to just publish new docs on a release, which isn't impossible so if there's some appetite to do it that way, I'm happy to look into it.

@boc-the-git
Copy link
Collaborator

The solution that popped into my head before reading your response, is that we could do something like how the image version tags in our sample compose files are handled.. we have people add their docs with a tag like NEXTVERSION or something, then when a release is done we use sed (or something) to set the actual version number.

But that is quite probably over-engineering it and I agree in 90%+ of scenarios there's going to be a minor version update for any change so substantial it involved new docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task General Task that needs to be completed v1 Version 1 Issue/PR
Projects
None yet
Development

No branches or pull requests

2 participants