Skip to content

Commit 8c62234

Browse files
committed
Update release instructions
1 parent 777161c commit 8c62234

File tree

4 files changed

+18
-31
lines changed

4 files changed

+18
-31
lines changed

doc/changelog/README.rst renamed to changelog/README.rst

+2-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@ Changelog
66
This directory contains "news fragments" which are short files that contain a
77
small **ReST**-formatted text that will be added to the next what's new page.
88

9-
Make sure to use full sentences with correct case and punctuation,
10-
for example::
11-
12-
Add support for Helioprojective coordinates in `sunpy.coordinates.frames`.
13-
14-
Please try to use Sphinx intersphinx using backticks.
9+
Make sure to use full sentences with correct case and punctuation, and please
10+
try to use Sphinx intersphinx using backticks.
1511

1612
Each file should be named like ``<PULL REQUEST>.<TYPE>.rst``, where
1713
``<PULL REQUEST>`` is a pull request number, and ``<TYPE>`` is one of:

doc/devel/coding_guide.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ a case-by-case basis.
2020
Documentation
2121
-------------
2222

23-
* Every new feature should be documented. If it's a new module, don't
24-
forget to add a new rst file to the API docs.
23+
* Every new feature should be documented. If it's a new module, don't
24+
forget to add a new .rst file to the API docs.
2525

2626
* Each high-level plotting function should have a small example in
2727
the `Example` section of the docstring. This should be as simple as
@@ -32,11 +32,11 @@ Documentation
3232

3333
* See :ref:`documenting-matplotlib` for our documentation style guide.
3434

35-
* If your change is a major new feature, add an entry to
36-
:file:`doc/users/whats_new.rst`.
35+
* If your change is a major new feature, add a changelog entry file to
36+
:folder:`changelog/`.
3737

38-
* If you change the API in a backward-incompatible way, please
39-
document it in :file:`doc/api/api_changes.rst`.
38+
* If you change the API in a backward-incompatible way, add a changelog
39+
entry file to :folder:`changelog/`.
4040

4141
PR Review guidelines
4242
====================

doc/devel/release_guide.rst

+9-18
Original file line numberDiff line numberDiff line change
@@ -71,29 +71,20 @@ Review and commit changes. Some issue/PR titles may not be valid rst (the most
7171
7272
.. _release_chkdocs:
7373

74-
Update and Validate the Docs
74+
Update and validate the docs
7575
----------------------------
7676

77-
Merge the most recent 'doc' branch (``v3.0.2-doc``) into the branch you
77+
Merge the most recent 'doc' branch into the branch you
7878
are going to tag on and delete the doc branch on GitHub.
7979

80-
Before tagging, update the "what's new" and "API changes" listings.
80+
Before tagging, update the changelog:
8181

82-
for the "what's new"
83-
84-
1. copy the current content to a file in :file:`doc/users/prev_whats_new`
85-
2. merge all of the files in :file:`doc/users/next_whats_new/` into
86-
:file:`doc/users/whats_new.rst` and delete the individual files
87-
3. comment out the next whats new glob at the top
88-
89-
Similarly for the "API changes"
90-
91-
1. copy the current api changes to a file is :file:`doc/api/prev_api_changes`
92-
2. merge all of the files in :file:`doc/api/next_api_changes/` into
93-
:file:`doc//whats_new.rst`
94-
3. comment out the next API changes at the top.
95-
96-
In both cases step 3 will have to be un-done right after the release.
82+
1. Make sure you have `towncrier` installed
83+
2. Run `towncrier --draft`, and make sure the output is sensible
84+
3. Run `towncrier
85+
4. Move the generated :file:`CHANGELOG.rst` file to
86+
:file:`doc/users/prev_whats_new/whats_new_VERSION.rst`,
87+
replacing `VERSION` with the current version number
9788

9889
Finally, make sure that the docs build cleanly ::
9990

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[tool.towncrier]
33
package = "matplotlib"
44
filename = "doc/CHANGELOG.rst"
5-
directory = "doc/changelog/"
5+
directory = "changelog/"
66
issue_format = "`#{issue} <https://github.com/matplotlib/matplotlib/pull/{issue}>`__"
77

88
[[tool.towncrier.type]]

0 commit comments

Comments
 (0)