Skip to content

Commit e48809f

Browse files
authored
Improve Actors documentation (#689)
- Fix the outdated frequenz-channels cross-reference link - Show inherited members in the API reference - Use a quote admonition instead of the normal quote - Use more readable variable names for examples - Add a note about why we use an async context manager - Fix numbered list indentation - Add Lifecycle, Communication and Implementing an Actor sections - Improve the Example section to host more than one example - Add an example showing how to receive from multiple channels - Add section on spawning extra tasks - Clarify that using channels is not enforced - Remove detailed documentation from the class (and add links to the `actor` module documentation) - Add a section explaining how to initialize an actor
2 parents add3b34 + f2c48cd commit e48809f

File tree

6 files changed

+505
-158
lines changed

6 files changed

+505
-158
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ jobs:
301301

302302
publish-docs:
303303
name: Publish documentation website to GitHub pages
304-
needs: ["nox", "nox-cross-arch-all", "test-installation"]
304+
needs: ["nox-all", "nox-cross-arch-all", "test-installation"]
305305
if: github.event_name == 'push'
306306
runs-on: ubuntu-20.04
307307
permissions:

RELEASE_NOTES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@
1010

1111
## New Features
1212

13-
- A tutorial section and a getting started tutorial
13+
- New and improved documentation.
14+
15+
* A new *Introduction* section was added, with:
16+
17+
+ A glossary.
18+
+ An introduction to actors.
19+
20+
* A new *Tutorials* section was added, with:
21+
22+
+ A getting started tutorial.
23+
1424
- In `OrderedRingBuffer`:
1525
- Rename `datetime_to_index` to `to_internal_index` to avoid confusion between the internal index and the external index.
1626
- Remove `__setitem__` method to enforce usage of dedicated `update` method only.

mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ plugins:
9898
options:
9999
paths: ["src"]
100100
docstring_section_style: spacy
101+
inherited_members: true
101102
merge_init_into_class: false
102103
show_category_heading: true
103104
show_root_heading: true
@@ -107,7 +108,7 @@ plugins:
107108
# See https://mkdocstrings.github.io/python/usage/#import for details
108109
- https://docs.python.org/3/objects.inv
109110
- https://frequenz-floss.github.io/frequenz-api-common/v0.3/objects.inv
110-
- https://frequenz-floss.github.io/frequenz-channels-python/v0.14/objects.inv
111+
- https://frequenz-floss.github.io/frequenz-channels-python/v0.16/objects.inv
111112
- https://frequenz-floss.github.io/frequenz-api-microgrid/v0.15/objects.inv
112113
- https://grpc.github.io/grpc/python/objects.inv
113114
- https://networkx.org/documentation/stable/objects.inv

0 commit comments

Comments
 (0)