Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Split API changes into individual pages #11637

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

Merged
merged 4 commits into from
Jul 19, 2018
Merged

Conversation

dstansby
Copy link
Member

@dstansby dstansby commented Jul 11, 2018

This gets rid of the huge API changes page, and splits it into individual files for each release.

@dstansby dstansby added this to the v3.0 milestone Jul 11, 2018

.. toctree::
:glob:
:maxdepth: 1
Copy link
Member

Choose a reason for hiding this comment

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

The most recent changes should be at the top. Add :reversed:

Changes for 0.40
================

::
Copy link
Member

Choose a reason for hiding this comment

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

Since we have automatic highlighting, this will be highlighted as python. Use .. code-block:: text if converting to ReST is too much effort.

.. toctree::
:maxdepth: 1

api_changes_old
Copy link
Member

Choose a reason for hiding this comment

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

This is a bit confusing: We state that we list the API changes for the most recent version and the first entry is "Old changes" without a further comment.

Also we have two toctrees that have a different purpose. They amost visually merge (only some additional space in between, which I originally assumed was just a layout bug.

https://904-74355158-gh.circle-artifacts.com/0/home/circleci/project/doc/build/html/api/api_changes.html

@@ -19,8 +26,8 @@ For new features that were added to Matplotlib, please see

next_api_changes/*
Copy link
Member

Choose a reason for hiding this comment

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

The scope and logic behind this is unclear to me:

  • Why are some things in extra files, while others are listed in the text below.
  • This mixes different levels. Deprecations is clearly on a higher level than matplotlib.Axes.get_tightbbox now includes all artists. They should not occur side-by side.

Copy link
Member Author

Choose a reason for hiding this comment

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

The problem is that before doing a release everything is in the next_api_changes, but when doing a release everything gets merged into one file to make sure it's consistent with titles etc., and this bit is commented out (see above comment in the code). At the moment we're between these two so have a mix of them turning up. This will be fixed before release.

Copy link
Member

Choose a reason for hiding this comment

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

Couldn't we just write all the API changes in a single file? I think this was proposed in another thread. Might be a problem though with getting many merge conflicts.

Alternatively, collect the unmerged stuff on a separate page. Or at least Give the list of unmerged stuff a section title and comment or a .. note:: block. The current state is a bit confusing for other developers not familiar with the process (e.g. me) and for people accidentially ending in devdocs.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, the problem is too many conflicts if there is one file. @tacaswell has a script that merges them all up....

Copy link
Member Author

Choose a reason for hiding this comment

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

I've added a note to hopefully explain things a bit better.

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 force-pushed a small fix, but otherwise this seems fine to me.

Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

Good enough for now.

The full text list below should be moved into its own file in 'prev_api_changes'
All the files in 'next_api_changes' should be moved to the bottom of this page
This note, and the toctree below should be commented out

This seems cumbersome to me. I understand that the we originally need multiple files to prevent merge conflicts. As far as I have understood this list and following stuff is generated from these files a bit prior to a release. Why not create all of this in a separate file directly?

But that can be part of another PR.

@dstansby
Copy link
Member Author

👍 with two approvals I'm going to merge

@dstansby dstansby merged commit 9382a05 into matplotlib:master Jul 19, 2018
@dstansby dstansby deleted the api-split branch July 19, 2018 16:05
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.

3 participants