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

Create release notes page #20132

Merged
merged 1 commit into from
Jun 9, 2021
Merged

Create release notes page #20132

merged 1 commit into from
Jun 9, 2021

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented May 1, 2021

... containing "what's new", "API changes" and "GitHub stats" by version
number.

@jklymak
Copy link
Member

jklymak commented May 3, 2021

I think this is good if we don't already have this (I'm confused - we don't?) Would you consider flattening this? A changelog is often helpful when you want to see when a change was made, and that is often easier if you just open a single (very large) page and search the changes in chronological order.

@tacaswell tacaswell added this to the v3.5.0 milestone May 3, 2021
@tacaswell
Copy link
Member

I am 👍 on this being a page, but am +0 on the name. While it is an accurate description of what is on the page, it does not conform to my expectation of what a change log is.

@timhoffm
Copy link
Member Author

timhoffm commented May 3, 2021

The primary goal of this PR is to clean up our convoluted content stucture: Change-related docs were spread out over various places.

grafik

I'm not clinging to the name. Call it "Release notes" or "What's new" or whatever you like. I also think that a flat page would be easier to search. But that would take some more effort / need disscussions:

  • Can we do with includes or do we have to have one giant single page?

  • How do we organize the order what's new/API changes/github stats? Should github stats appear in the flattened list or should they be separate as they are quite verbose and duplicate to the other two. If separate, we should probably add a link from the single page. Should the github stats themselves be a single page or one per release?

  • For flattening we might have to adapt the release process.

  • Is it still reasonable to have the repo structures?

    • doc/api/next_api_changes/...
    • doc/api/prev_api_changes/...
    • doc/api/api_changes.rst
    • doc/users/next_whats_new/...
    • doc/users/prev_whats_new/...
    • doc/users/whats_new.rst

    To me API changes and whats_new are both variants of changes tied to releases. Having them in separate subfolders always confuses me.

I don't plan to go into this deeper for now.

@jklymak jklymak marked this pull request as draft May 10, 2021 20:52
@timhoffm timhoffm marked this pull request as ready for review May 25, 2021 20:12
@timhoffm
Copy link
Member Author

timhoffm commented May 25, 2021

@jklymak I disagree with the PR being in draft status. I consider collecting all change-related information under one page already a significant improvement. I'm happy to do minor changes like renaming if somebody suggests a better name. I won't get into the tedious business of flattening or restructuring the single documents.

The current state is is as good as I'm intending to make this. Thus I've marked this ready for review.

@jklymak
Copy link
Member

jklymak commented May 25, 2021

I guess I misinterpreted "I don't plan to go deeper into this for now" as you were not planning to work on the PR further.

Comment on lines -41 to -42
.. include:: prev_api_changes/api_changes_3.4.2.rst
.. include:: prev_api_changes/api_changes_3.4.0.rst
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand where 'current' API changes go on release time, if not here?

Copy link
Member Author

@timhoffm timhoffm May 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a release everything moves from next to the respective version section:
grafik

Instead of this

.. include:: prev_api_changes/api_changes_3.4.2.rst

you'll have in release_notes.rst

../api/prev_api_changes/api_changes_3.4.2.rst

API changes has changed it's position in the hierachry. It used to be top-levelish and contained the next changes as well as links to the previous changes. Now, it's only a sub topic Release notes -> Next -> API changes. I will rename it to Next API Changes to make that more clear.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then the if dev bit shouldn't be in this file, but in the new release notes file? There should be no 'next changes' for tagged releases.

This would also needs updates to the release guide.

Copy link
Member Author

@timhoffm timhoffm May 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I've noticed the if dev part. I've made it structurally the same as "Next what's new" now.

I've added if dev around the "Release notes > Next" section. What I'm not 100% clear about is how conditional pages are handled. Due to the if dev we may get notes that the pages are next_api_changes is not in the toc tree when building the release.

Please check if the structure is now ok. I can have a look at the release guide later, but that doesn't make sense before the structure is settled.

@QuLogic
Copy link
Member

QuLogic commented May 26, 2021

I'd say Release Notes, over Changelog.

Copy link
Member

@jklymak jklymak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is an improvement...

@timhoffm timhoffm force-pushed the changelog branch 3 times, most recently from 2972bad to ab67ade Compare May 26, 2021 07:19
@timhoffm
Copy link
Member Author

checking consistency... /home/circleci/project/doc/api/next_api_changes.rst: WARNING: document isn't included in any toctree
/home/circleci/project/doc/users/github_stats.rst: WARNING: document isn't included in any toctree
/home/circleci/project/doc/users/next_whats_new.rst: WARNING: document isn't included in any toctree

I don't know why these messages appear. They are included in a toctree in release_notes.rst. Maybe this is because the respective toctree is contained in an .. ifconfig:: releaselevel == 'dev'.

Any help on how to handle conditional pages is welcome (we want the next* docs only in dev doc builds but not in release builds).

@timhoffm
Copy link
Member Author

timhoffm commented May 27, 2021

We may not be able to use .. ifconfig to manipulate the toc. From https://www.sphinx-doc.org/en/master/usage/extensions/ifconfig.html:

Warning

This directive is designed to control only content of document. It could not control sections, labels and so on.

Edit: Indeed this is not supported: sphinx-doc/sphinx#1717 (comment)

... containing "what's new", "API changes" and "GitHub stats" by version
number.
@jklymak
Copy link
Member

jklymak commented Jun 3, 2021

@timhoffm is this still ready to go?

@timhoffm
Copy link
Member Author

timhoffm commented Jun 3, 2021

Yes, this is ready to go. I‘ll have to update the release guide. But I will do that only after this is finished so that I don‘t have to change the release guide multiple times.

@jklymak
Copy link
Member

jklymak commented Jun 3, 2021

... added to the call.

@jklymak
Copy link
Member

jklymak commented Jun 8, 2021

@QuLogic are you OK with this now given that @timhoffm says he will definitely update the contrib docs?

@jklymak jklymak merged commit 342bfb1 into matplotlib:master Jun 9, 2021
@timhoffm timhoffm deleted the changelog branch June 9, 2021 23:52
@timhoffm timhoffm changed the title Create changelog page Create release notes page Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants