Jonathan Amsterdam | b3cfb24 | 2023-11-15 08:23:23 -0500 | [diff] [blame] | 1 | # Release Notes |
| 2 | |
| 3 | The `initial` and `next` subdirectories of this directory are for release notes. |
| 4 | |
Jonathan Amsterdam | 6037c8a | 2024-01-22 13:20:07 -0500 | [diff] [blame] | 5 | ## For developers |
| 6 | |
Jonathan Amsterdam | b3cfb24 | 2023-11-15 08:23:23 -0500 | [diff] [blame] | 7 | Release notes should be added to `next` by editing existing files or creating new files. |
| 8 | |
Jonathan Amsterdam | 6037c8a | 2024-01-22 13:20:07 -0500 | [diff] [blame] | 9 | At the end of the development cycle, the files will be merged by being |
| 10 | concatenated in sorted order by pathname. Files in the directory matching the |
| 11 | glob "*stdlib/*minor" are treated specially. They should be in subdirectories |
| 12 | corresponding to standard library package paths, and headings for those package |
| 13 | paths will be generated automatically. |
Jonathan Amsterdam | b3cfb24 | 2023-11-15 08:23:23 -0500 | [diff] [blame] | 14 | |
Jonathan Amsterdam | 6037c8a | 2024-01-22 13:20:07 -0500 | [diff] [blame] | 15 | Files in this repo's `api/next` directory must have corresponding files in |
Alan Donovan | b079967 | 2024-01-26 11:19:22 -0500 | [diff] [blame^] | 16 | `doc/next/*stdlib/*minor`. |
| 17 | The files should be in the subdirectory for the package with the new |
| 18 | API, and should be named after the issue number of the API proposal. |
| 19 | For example, if the directory `6-stdlib/99-minor` is present, |
| 20 | then an `api/next` file with the line |
Jonathan Amsterdam | b3cfb24 | 2023-11-15 08:23:23 -0500 | [diff] [blame] | 21 | |
| 22 | pkg net/http, function F #12345 |
| 23 | |
Alan Donovan | b079967 | 2024-01-26 11:19:22 -0500 | [diff] [blame^] | 24 | should have a corresponding file named `doc/next/6-stdlib/99-minor/net/http/12345.md`. |
Jonathan Amsterdam | b3cfb24 | 2023-11-15 08:23:23 -0500 | [diff] [blame] | 25 | At a minimum, that file should contain either a full sentence or a TODO, |
| 26 | ideally referring to a person with the responsibility to complete the note. |
Jonathan Amsterdam | 6037c8a | 2024-01-22 13:20:07 -0500 | [diff] [blame] | 27 | |
Alan Donovan | b079967 | 2024-01-26 11:19:22 -0500 | [diff] [blame^] | 28 | Use the following forms in your markdown: |
| 29 | |
| 30 | [`http.Request`](/pkg/net/http#Request) # symbol documentation |
| 31 | [#12345](/issue/12345) # GitHub issues |
| 32 | [CL 6789](/cl/6789) # Gerrit changelists |
| 33 | |
Jonathan Amsterdam | 6037c8a | 2024-01-22 13:20:07 -0500 | [diff] [blame] | 34 | ## For the release team |
| 35 | |
| 36 | At the start of a release development cycle, the contents of `next` should be deleted |
| 37 | and replaced with those of `initial`. From the repo root: |
| 38 | |
| 39 | > cd doc |
| 40 | > rm -r next/* |
| 41 | > cp -r initial/* next |
| 42 | |
| 43 | Then edit `next/1-intro.md` to refer to the next version. |
| 44 | |
| 45 | To prepare the release notes for a release, run `golang.org/x/build/cmd/relnote generate`. |
| 46 | That will merge the `.md` files in `next` into a single file. |