|
2 | 2 |
|
3 | 3 | ## Summary |
4 | 4 |
|
5 | | -This release focuses on improving the documentation generation and the CI. In particular it brings a new versioning scheme for the documentation that supports multiple development branches and exposes pre-releases. |
| 5 | +<!-- Here goes a general summary of what this release is about --> |
6 | 6 |
|
7 | 7 | ## Upgrading |
8 | 8 |
|
9 | | -### Cookiecutter template |
10 | | - |
11 | | -- The recommended `cookiecutter` version was bumped to 2.4.0 to avoid some buggy old versions. |
12 | | - |
13 | | -- `mkdocs` |
14 | | - |
15 | | - - The script `docs/mkdocstrings_autoapi.py` was moved to `docs/_scripts/mkdocstrings.py`. |
16 | | - - Note that now code annotations will be numbered. This is useful to hint about the order one should read the annotations. |
17 | | - - The following files were renamed to keep the documentation directory clean for documentation files: |
18 | | - |
19 | | - - `docs/css` -> `docs/_css` |
20 | | - - `docs/overrides` -> `docs/_overrides` |
21 | | - - `logo.png` -> `docs/_img/logo.png` |
22 | | - |
23 | | - - You might need to remove old `mike` version aliases. Probably removing `next` should be enough: |
24 | | - |
25 | | - ```bash |
26 | | - mike delete -p next |
27 | | - ``` |
28 | | - |
29 | | - You can use `mike list` to list all versions and aliases. |
30 | | - |
31 | | -- CI |
32 | | - |
33 | | - - You can now make your branch protection rule only require the "Test with nox" CI job to pass. All the matrix expansions will merge into it, so there is no need to change branch protection rules if matrix elements are added or removed. |
34 | | - - Dependabot now will check for updates monthly and on a random day and time. |
| 9 | +<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with --> |
35 | 10 |
|
36 | | -- The `src/conftest.py` file was moved to `src/<project_path>/conftest.py`. |
| 11 | +### Cookiecutter template |
37 | 12 |
|
38 | | - This is to leave the `src` directory free of any files, so it is easier to navigate using auto-completion and GitHub file browser. |
| 13 | +<!-- Here upgrade steps for cookiecutter specifically --> |
39 | 14 |
|
40 | 15 | ## New Features |
41 | 16 |
|
42 | | -- `frequenz_repo_config.version`: New module to get the version information for a repository. |
43 | | -- `frequnz_repo_config.github`: New module to interact with GitHub. |
44 | | -- `frequenz.repo_config.mkdocs.mike`: New module to manage `mike` versions and aliases. |
45 | | -- `frequenz.repo_config.cli`: New package to implement CLI commands. |
46 | | - |
47 | | - - `frequenz.repo.config.cli.version.mike.info`: New command to print GitHub Action variables with for the current `mike` version. |
48 | | - - `frequenz.repo.config.cli.version.mike.sort`: New command to sort `mike` versions file (`versions.json`). |
| 17 | +<!-- Here goes the main new features and examples or instructions on how to use them --> |
49 | 18 |
|
50 | 19 | ### Cookiecutter template |
51 | 20 |
|
52 | | -- `mkdocs` |
53 | | - |
54 | | - - New markdown extensions: [`def_list` / `task_list`](https://squidfunk.github.io/mkdocs-material/reference/lists/) and [`footnotes`](https://squidfunk.github.io/mkdocs-material/reference/footnotes/). |
55 | | - - New [`mkdocs-macros`](https://mkdocs-macros-plugin.readthedocs.io/en/latest/) extension. |
56 | | - - Show inherited attributes in the documentation. |
57 | | - - Make code annotations numbered. This is useful to hint about the order one should read the annotations. |
58 | | - - Add a navigation footer to show previous and next pages. This is specially useful when reading the documentation in a mobile device since the navigation bar is hidden. |
59 | | - - Updated dependencies. |
60 | | - - The hooking of `mkdocstrings` to `macros` plugins is moved to a separate function to avoid the noise in the `define_env()` function. |
61 | | - - Improve formatting of signatures to show the types. |
62 | | - - We use a new `mike` versioning scheme: |
63 | | -
|
64 | | - - Versions now have a title with the full tag name for tags and includes the (short) commit SHA for branches so users can know exactly which version they are reading. |
65 | | - - Pre-releases are now published too as `vX.Y-pre`. They have aliases to point to the latest pre-release in a major (`vX-pre`) and the absolute latest pre-release (`latest-pre`). |
66 | | - - All branches are now published with their own version as `vX.Y-dev`. They have aliases to point to the latest version in a major (`vX-dev`) and the absolute latest version (`latest-dev`). This means the old `next` becomes `latest-dev`. |
67 | | -
|
68 | | -- CI |
69 | | -
|
70 | | - - Add CI job to test package installation on multiple platforms (amd64 and arm64). |
71 | | - - Add CI job to run the tests in arm64. |
72 | | - - Add a CI job to *join* all `nox` runs, so only one branch protection rule needs to be used. |
73 | | - - Dependabot now will check for updates monthly and on a random day and time. This is to avoid all repositories updating at the same time. |
74 | | -
|
75 | | -- Add a section about cross-arch testing to `CONTRIBUTING.md`. |
| 21 | +- Show a link to the documentation in PyPI. |
76 | 22 |
|
77 | 23 | ## Bug Fixes |
78 | 24 |
|
79 | | -### Cookiecutter template |
| 25 | +<!-- Here goes notable bug fixes that are worth a special mention or explanation --> |
80 | 26 |
|
81 | | -- `mkdocs` |
82 | | -
|
83 | | - - Fixed mermaid diagrams not rendering in the documentation. |
84 | | - - `mypy` ignores for `cookiecutter` have been removed. They should have never be there as generated projects don't use `cookiecutter`. |
85 | | - - `mypy` overrides now are applied to API projects too. |
86 | | - - Now the `latest` `mike` version will point to the highest stable version available, not the latest version published. |
| 27 | +### Cookiecutter template |
87 | 28 |
|
88 | | -- Dependabot branches are now not tested for `push` events, as they are already tested by `pull` events. |
| 29 | +<!-- Here bug fixes for cookiecutter specifically --> |
0 commit comments