Skip to content

Commit 5e3b038

Browse files
authored
Add link to documentation on PyPI (#164)
2 parents 4b79d5a + 5fc425a commit 5e3b038

File tree

8 files changed

+16
-68
lines changed

8 files changed

+16
-68
lines changed

RELEASE_NOTES.md

Lines changed: 9 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -2,87 +2,28 @@
22

33
## Summary
44

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 -->
66

77
## Upgrading
88

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 -->
3510

36-
- The `src/conftest.py` file was moved to `src/<project_path>/conftest.py`.
11+
### Cookiecutter template
3712

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 -->
3914

4015
## New Features
4116

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 -->
4918

5019
### Cookiecutter template
5120

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.
7622

7723
## Bug Fixes
7824

79-
### Cookiecutter template
25+
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
8026

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
8728

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 -->

cookiecutter/{{cookiecutter.github_repo_name}}/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ dev = [
111111
]
112112

113113
[project.urls]
114+
Documentation = "https://{{cookiecutter.github_org}}.github.io/{{cookiecutter.github_repo_name}}/"
114115
Changelog = "https://github.com/{{cookiecutter.github_org}}/{{cookiecutter.github_repo_name}}/releases"
115116
Issues = "https://github.com/{{cookiecutter.github_org}}/{{cookiecutter.github_repo_name}}/issues"
116117
Repository = "https://github.com/{{cookiecutter.github_org}}/{{cookiecutter.github_repo_name}}"

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ dev = [
112112
]
113113

114114
[project.urls]
115+
Documentation = "https://frequenz-floss.github.io/frequenz-repo-config-python/"
115116
Changelog = "https://github.com/frequenz-floss/frequenz-repo-config-python/releases"
116117
Issues = "https://github.com/frequenz-floss/frequenz-repo-config-python/issues"
117118
Repository = "https://github.com/frequenz-floss/frequenz-repo-config-python"

tests_golden/integration/test_cookiecutter_generation/actor/frequenz-actor-test/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ dev = [
8888
]
8989

9090
[project.urls]
91+
Documentation = "https://frequenz-floss.github.io/frequenz-actor-test/"
9192
Changelog = "https://github.com/frequenz-floss/frequenz-actor-test/releases"
9293
Issues = "https://github.com/frequenz-floss/frequenz-actor-test/issues"
9394
Repository = "https://github.com/frequenz-floss/frequenz-actor-test"

tests_golden/integration/test_cookiecutter_generation/api/frequenz-api-test/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ dev = [
8484
]
8585

8686
[project.urls]
87+
Documentation = "https://frequenz-floss.github.io/frequenz-api-test/"
8788
Changelog = "https://github.com/frequenz-floss/frequenz-api-test/releases"
8889
Issues = "https://github.com/frequenz-floss/frequenz-api-test/issues"
8990
Repository = "https://github.com/frequenz-floss/frequenz-api-test"

tests_golden/integration/test_cookiecutter_generation/app/frequenz-app-test/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ dev = [
8787
]
8888

8989
[project.urls]
90+
Documentation = "https://frequenz-floss.github.io/frequenz-app-test/"
9091
Changelog = "https://github.com/frequenz-floss/frequenz-app-test/releases"
9192
Issues = "https://github.com/frequenz-floss/frequenz-app-test/issues"
9293
Repository = "https://github.com/frequenz-floss/frequenz-app-test"

tests_golden/integration/test_cookiecutter_generation/lib/frequenz-test-python/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ dev = [
8484
]
8585

8686
[project.urls]
87+
Documentation = "https://frequenz-floss.github.io/frequenz-test-python/"
8788
Changelog = "https://github.com/frequenz-floss/frequenz-test-python/releases"
8889
Issues = "https://github.com/frequenz-floss/frequenz-test-python/issues"
8990
Repository = "https://github.com/frequenz-floss/frequenz-test-python"

tests_golden/integration/test_cookiecutter_generation/model/frequenz-model-test/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ dev = [
8888
]
8989

9090
[project.urls]
91+
Documentation = "https://frequenz-floss.github.io/frequenz-model-test/"
9192
Changelog = "https://github.com/frequenz-floss/frequenz-model-test/releases"
9293
Issues = "https://github.com/frequenz-floss/frequenz-model-test/issues"
9394
Repository = "https://github.com/frequenz-floss/frequenz-model-test"

0 commit comments

Comments
 (0)