@@ -101,27 +101,54 @@ When making major or minor releases, update the supported versions in the
101
101
Security Policy in :file: `SECURITY.md `. Commonly, this may be one or two
102
102
previous minor releases, but is dependent on release managers.
103
103
104
- Update "What's new" and "API changes"
105
- -------------------------------------
104
+ Update release notes
105
+ --------------------
106
106
107
- Before tagging major and minor releases, the "what 's new" and "API changes"
108
- listings should be updated. This is not needed for micro releases.
107
+ What 's new
108
+ ~~~~~~~~~~
109
109
110
- For the "what's new",
110
+ *Only needed for major and minor releases. Bugfix releases should not have new
111
+ features. *
111
112
112
- 1. copy the current content to a file in :file: `doc/users/prev_whats_new `
113
- 2. merge all of the files in :file: `doc/users/next_whats_new/ ` into
114
- :file: `doc/users/whats_new.rst ` and delete the individual files
115
- 3. comment out the next what's new glob at the top
113
+ Merge the contents of all the files in :file: `doc/users/next_whats_new/ `
114
+ into a single file :file: `doc/users/prev_whats_new/whats_new_X.Y.0.rst `
115
+ and delete the individual files.
116
116
117
- Similarly for the "API changes",
117
+ API changes
118
+ ~~~~~~~~~~~
118
119
119
- 1. copy the current api changes to a file is :file: `doc/api/prev_api_changes `
120
- 2. merge all of the files in the most recent :file: `doc/api/next_api_changes `
121
- into :file: `doc/api/api_changes.rst `
122
- 3. comment out the most recent API changes at the top.
120
+ *Primarily needed for major and minor releases. We may sometimes have API
121
+ changes in bugfix releases. *
123
122
124
- In both cases step 3 will have to be un-done right after the release.
123
+ Merge the contents of all the files in :file: `doc/api/next_api_changes/ `
124
+ into a single file :file: `doc/api/prev_api_changes/api_changes_X.Y.Z.rst `
125
+ and delete the individual files.
126
+
127
+ Release notes TOC
128
+ ~~~~~~~~~~~~~~~~~
129
+
130
+ Update :file: `doc/users/release_notes.rst `:
131
+
132
+ - For major and minor releases add a new section
133
+
134
+ .. code :: rst
135
+
136
+ X.Y
137
+ ===
138
+ .. toctree::
139
+ :maxdepth: 1
140
+
141
+ prev_whats_new/whats_new_X.Y.0.rst
142
+ ../api/prev_api_changes/api_changes_X.Y.0.rst
143
+ prev_whats_new/github_stats_X.Y.0.rst
144
+
145
+ - For bugfix releases add the GitHub stats and (if present) the API changes to
146
+ the existing X.Y section
147
+
148
+ .. code :: rst
149
+
150
+ ../api/prev_api_changes/api_changes_X.Y.Z.rst
151
+ prev_whats_new/github_stats_X.Y.Z.rst
125
152
126
153
Verify that docs build
127
154
----------------------
0 commit comments