Skip to content

Commit 8448703

Browse files
authored
Merge pull request matplotlib#15158 from dstansby/apichanges
Change the way API changes are documented
2 parents 1dc52df + 445e2c5 commit 8448703

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed

doc/api/api_changes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ added to Matplotlib, see :ref:`whats-new`.
2525

2626
When a release is made
2727

28-
- All the files in 'next_api_changes/' should be moved to a single file in
28+
- The files in 'next_api_changes/' should be moved to a new file in
2929
'prev_api_changes/'.
3030
- The include directive below should be changed to point to the new file
3131
created in the previous step.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Behaviour changes
2+
-----------------
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Deprecations
2+
------------
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Development changes
2+
-------------------

doc/api/next_api_changes/removals.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Removals
2+
--------

doc/devel/coding_guide.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Documentation
8989
:file:`doc/users/whats_new.rst`.
9090

9191
* If you change the API in a backward-incompatible way, please
92-
document it in :file:`doc/api/api_changes.rst`.
92+
document it in the relevant file in :file:`doc/api/next_api_changes`.
9393

9494
.. _pr-labels:
9595

@@ -138,8 +138,8 @@ Merging
138138
approve the review and if you think no more review is needed, merge
139139
the PR.
140140

141-
Ensure that all API changes are documented in
142-
:file:`doc/api/api_changes` and significant new features have and
141+
Ensure that all API changes are documented in the relevant file in
142+
:file:`doc/api/next_api_changes` and significant new features have and
143143
entry in :file:`doc/user/whats_new`.
144144

145145
- If a PR already has a positive review, a core developer (e.g. the first

doc/devel/contributing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ rules before submitting a pull request:
267267
:file:`doc/users/next_whats_new/README.rst` for more information).
268268

269269
* If you change the API in a backward-incompatible way, please document it in
270-
`doc/api/api_changes`, by adding a new file describing your changes (see
271-
:file:`doc/api/api_changes/README.rst` for more information)
270+
:file:`doc/api/api_changes`, by adding to the relevant file
271+
(see :file:`doc/api/api_changes.rst` for more information)
272272

273273
* See below for additional points about :ref:`keyword-argument-processing`, if
274274
applicable for your pull request.

0 commit comments

Comments
 (0)