sunpy.org icon indicating copy to clipboard operation
sunpy.org copied to clipboard

Automate major version change on home page

Open dstansby opened this issue 2 years ago • 6 comments

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 avatar Jun 14 '23 10:06 dstansby

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

naxatra2 avatar Dec 06 '24 18:12 naxatra2

From pypi.

nabobalis avatar Dec 06 '24 18:12 nabobalis

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 avatar Dec 06 '24 23:12 ayshih

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

ayshih avatar Dec 06 '24 23:12 ayshih

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.

nabobalis avatar Dec 06 '24 23:12 nabobalis

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

ayshih avatar Dec 06 '24 23:12 ayshih