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

Automate major version change on home page #374

Open
dstansby opened this issue Jun 14, 2023 · 6 comments
Open

Automate major version change on home page #374

dstansby opened this issue Jun 14, 2023 · 6 comments

Comments

@dstansby
Copy link
Member

On https://sunpy.org/, the "What's new in x.y?" text doesn't automatically update, like the latest stable release. It would be good to automatically update this so I don't have to do it in a PR every major release.
Screenshot 2023-06-14 at 11 53 34

@dstansby dstansby changed the title Automate version change on home page Automate major version change on home page Jun 14, 2023
@naxatra2
Copy link

naxatra2 commented Dec 6, 2024

I didn't understand, from where can we get the latest edition number to automate it ?

@nabobalis
Copy link
Contributor

From pypi.

@ayshih
Copy link
Member

ayshih commented Dec 6, 2024

I think it'd make more sense to simply grab the title of the whatsnew page that is linked. That way it'll always match the page that is linked, even if PyPI is different for some reason.

@ayshih
Copy link
Member

ayshih commented Dec 6, 2024

(And if we change the title format for the whatsnew page, our homepage will automatically match.)

@nabobalis
Copy link
Contributor

I think the original goal is to change the text to be whats new in but also update the link to the latest version of the whats new.

Right now we have to update that manually.

@ayshih
Copy link
Member

ayshih commented Dec 6, 2024

Ah, okay, the issue referred only to updating the text, not the URL as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants