Skip to content

✨ Automatically update dagger versions in docs after a new release #2351

Closed

Description

@marcosnils

What are you trying to do?

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.

cc @aluzzardi

Related

#2327
#2317

Activity

  1. aluzzardi commented on Apr 29, 2022

    @aluzzardi
    Contributor

    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 maybe git checkout v0.2.8 to get the right examples -- perhaps we could replace that with git checkout $(dagger version --short) or something

  2. helderco commented on Apr 29, 2022

    @helderco
    Contributor

    perhaps we could replace that with git checkout $(dagger version --short) or something

    Love that!

  3. 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
  4. marcosnils commented on Apr 29, 2022

    @marcosnils
    ContributorAuthor

    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.

  5. marcosnils commented on Apr 29, 2022

    @marcosnils
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions