-
Notifications
You must be signed in to change notification settings - Fork 20
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
Show docs for latest stable release (not branch) #175
Comments
I expect this is something we'll look at when implementing silverstripe/silverstripe-framework#10215 |
We're moving the docs to a new module - I think we can handle this simply through branching strategies. We can keep the Proposal:
This is a departure from the branching strategy for our normal repositories, but I think it is a clean way to resolve this problem and doesn't require any changes to the logic used to fetch docs. |
I don't like the idea of having a different set of rules for branching on only this repo. It's such an automatic thing merging up the latest minor into Seem like we could fairly easily just keep this in lockstep with framework (seems like that's already assumed) and then use the latest minor branch that has at least 1 corresponding tag on silverstripe/framework e.g. there's a 4.11.0 framework tag right now, so use the docs 4.11 branch. It's pretty easy to get silverstripe/framework tag information from the github api using curl within github actions Does that sound achievable? Will netlify let use dynamically define what branch to pull content from when we calls its API? |
Fair concerns, I could see the different branching strategy being forgotten quite easily.
That's not really possible with gatsby-source-git (which is how we grab branches atm) from what I can see - we'd need to either look for or create an alternative Gatsby plugin or fork that 9ne and modify it to do that, or maybe add it as a custom build step if that's a thing that can even be done. |
What you linked to contains a We could get gihtub actions to do a straight commit, though for better auditing we could get it to do a pull-request here. We'd need to update the confluence release plan to say merge the pull-request |
Yeah, that would work. For some reason my brain didn't consider that we can just update that config whenever we do a release lol Not sure where GitHub actions comes into this though? Wouldn't we only change the config when we do a minor (or major) release? |
🤖 A U T O M A T I O N 🤖 If we don't have pull-requests it's fully-automated and won't be forgotten during release time (humans do forget things sometimes) With a pull-request it's still prone to humans forgetting a step in the release plan, so you could easily argue the automation isn't worth the investment. The open-pr would still show up in rhino or a similar tool though |
I still don't understand what will trigger the action or when.... but that's fine, that goes beyond what I need for right now. 👍 |
Just clarifying what is being proposed for my dumb brain:
If my high level understanding is accurate, I'm fine with this. |
Yes.
The exact mechanism used here isn't really important - it could just as easily be something added to cow. I think the salient point there is that there will be some automation so that when we do a new major/minor release of Silverstripe CMS, a new branch is created in the docs repo and the reference in this repo is updated to look at that new branch. |
Added acceptance criteria to match what has been discussed. |
This is done. |
From @dhensby:
We should inspect the repos to find out the latest tag for each release line (3.x and 4.x), and build docs from that.
Acceptance criteria
The text was updated successfully, but these errors were encountered: