You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
✨ Automatically update dagger versions in docs after a new release #2351
We currently have a script that updates our dagger version in our docs instructions but it's not part of our release process. We should ideally try to make our docs depend on hardcoded versions as least as possible and, if not possible, make the release process update docs automatically.
Why is this important to you?
Currently we're having weekly releases and some docs get outdated and cause issues for new users since some instructions are still referencing older versions of dagger.
How are you currently working around this?
running a script manually each time a release is made.
We should ideally try to make our docs depend on hardcoded versions as least as possible and, if not possible, make the release process update docs automatically.
I would go one step further and stop hardcoding versions altogether, I don't think they're doing any good.
The only useful one is maybegit checkout v0.2.8 to get the right examples -- perhaps we could replace that with git checkout $(dagger version --short) or something
changed the title [-]✨ Automatically dagger versions in docs after a new release[/-][+]:sparkles: Automatically update dagger versions in docs after a new release[/+]on Apr 29, 2022
I would go one step further and stop hardcoding versions altogether, I don't think they're doing any good.
I agree with this. But i'm not sure if we can avoid that for the API reference. Maybe we could handle this through docusaurus by having variable in the docusaurus.config.js so we have the change it only in a single place.
I agree with this. But i'm not sure if we can avoid that for the API reference. Maybe we could handle this through docusaurus by having variable in the docusaurus.config.js so we have the change it only in a single place.
Speaking about this with @gerhard and @slumbering we just found a better way to do it. We'll have an update by today.
Activity
aluzzardi commentedon Apr 29, 2022
I would go one step further and stop hardcoding versions altogether, I don't think they're doing any good.
The only useful one is maybe
git checkout v0.2.8to get the right examples -- perhaps we could replace that withgit checkout $(dagger version --short)or somethinghelderco commentedon Apr 29, 2022
Love that!
[-]✨ Automatically dagger versions in docs after a new release[/-][+]:sparkles: Automatically update dagger versions in docs after a new release[/+]marcosnils commentedon Apr 29, 2022
I agree with this. But i'm not sure if we can avoid that for the API reference. Maybe we could handle this through
docusaurusby having variable in thedocusaurus.config.jsso we have the change it only in a single place.marcosnils commentedon Apr 29, 2022
Speaking about this with @gerhard and @slumbering we just found a better way to do it. We'll have an update by today.