latest docs should point to the latest non-experimental release, not master
mcollina opened this issue · comments
Currently in the https://www.fastify.io/ top banner, we point to docs of master.
With the upcoming v3 release, this would soon be experimental/alpha. So, we should point the docs to the latest stable version.
cc @lmammino
Let me review the current logic. As far as I remember it is based on branches and tags, so it might just work as it is. I'll reply back here as soon as I have more clarity or some questions.
(Apologies for the delay, very busy days lately)
Ok, I think I have now clear the current approach:
- We download all the releases after a given release (using the GitHub releases endpoint). Currently, we download all from most recent until
1.13.x
. - We also download the current
master
and we mark it amaster
. - The
latest
release is determined as the "highest" release aftermaster
as dictated by a dedicated sorting function.
If we do a GitHub release called 3.x.y
that will become the latest
. Is this something we don't want? Can you describe a bit more how do you plan to organise the release of v3 over time? Once we have that defined I should be able to simulate releases, test and adjust the code if needed.
It's not working like that: latest is master right now.
We will release v3.0.0-alpha.0 and so on.
Will master
be v3.0.0-alpha.0
as soon as v3.0.0-alpha.0
is released?
Or do you plan to keep 3.x
in its own branch?
ok, thanks!
Just to clarify: latest will be latest stable (2.x) or any latest (highest) version (3.x)?
In other words, do we need to start tracking what's stable and what's beta and treat them differently?
Any latest version that does not have a -something.somethingelse
at the end.
Sounds good. I'll try to find some time to make the necessary changes. When do you expect to ship 3.0.x?
I think we'll ship ready to ship an alpha in the next few weeks.
Started working on this. Also found a bug whereby we might have missed releases as we look only at the first page of the releases API call
Doing some testing and refactoring, it might take me a bit but I hope I will have the PR open by the end of the week