Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve documentation #279

Merged
merged 20 commits into from
Mar 6, 2024
Merged

Improve documentation #279

merged 20 commits into from
Mar 6, 2024

Conversation

llucax
Copy link
Contributor

@llucax llucax commented Mar 5, 2024

This PR includes a lot of small documentation improvements and fixes, trying to make the documentation more consistent and easier to read.

The commits are not particularly very well split, as many stuff was done in parallel and the splitting was done afterwards. Cleaning it up is very time demaning as it produces a lot of conflicts when rebasing.

@llucax llucax requested a review from a team as a code owner March 5, 2024 09:57
@llucax llucax self-assigned this Mar 5, 2024
@github-actions github-actions bot added part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) part:channels Affects channels implementation part:synchronization Affects the synchronization of multiple sources (`select`, `merge`) part:core Affects the core types (`Sender`, `Receiver`, exceptions, etc.) labels Mar 5, 2024
@llucax llucax added this to the v1.0.0 milestone Mar 5, 2024
@llucax llucax added type:enhancement New feature or enhancement visitble to users cmd:skip-release-notes It is not necessary to update release notes for this PR labels Mar 5, 2024
@github-actions github-actions bot added the part:utilities Affects the utility receivers (`Timer`, `Event`, `FileWatcher`) label Mar 5, 2024
llucax added 17 commits March 5, 2024 11:26
It is good to let users know where they can find the full documentation.

Signed-off-by: Leandro Lucarella <[email protected]>
When functions don't take arguments and just trivially return something,
there is no need to add a `Returns:` section just duplicating the
function description. This is also true for properties, which should be
documented as attributes.

Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
We start all other documentation with capitals, so this way it is more
homogeneous.

Signed-off-by: Leandro Lucarella <[email protected]>
This style is more in line with the Google style guide.

Signed-off-by: Leandro Lucarella <[email protected]>
We use "initialize" instead of "create" as this function doesn't really
create anything, but just initializes an already created object.

Signed-off-by: Leandro Lucarella <[email protected]>
Don't expose the implementation details, as this is intended to be
consumed by users, not developers of the library.

Where appropriate, move the details as code comments.

Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Receivers are not necessarily attached to a channel, as we already have
some utility receivers that generates messages from other sources (like
time, files or arbitrary events).

For senders we don't have that yet, but there is also no reason to limit
them to channels.

Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
We are not really initializing anything here, just returning.

Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
@github-actions github-actions bot added the part:docs Affects the documentation label Mar 5, 2024
src/frequenz/channels/_broadcast.py Outdated Show resolved Hide resolved
src/frequenz/channels/_exceptions.py Outdated Show resolved Hide resolved
src/frequenz/channels/_exceptions.py Outdated Show resolved Hide resolved
src/frequenz/channels/_receiver.py Outdated Show resolved Hide resolved
src/frequenz/channels/_select.py Outdated Show resolved Hide resolved
src/frequenz/channels/_sender.py Outdated Show resolved Hide resolved
src/frequenz/channels/_merge.py Outdated Show resolved Hide resolved
src/frequenz/channels/_receiver.py Outdated Show resolved Hide resolved
src/frequenz/channels/_receiver.py Outdated Show resolved Hide resolved
Co-authored-by: daniel-zullo-frequenz <[email protected]>
Co-authored-by: Sahas Subramanian <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
@llucax
Copy link
Contributor Author

llucax commented Mar 6, 2024

Accepted all suggestions, thanks!

@llucax
Copy link
Contributor Author

llucax commented Mar 6, 2024

Enabling auto-merge.

@llucax llucax added this pull request to the merge queue Mar 6, 2024
Merged via the queue into frequenz-floss:v1.x.x with commit 7a7c823 Mar 6, 2024
14 checks passed
@llucax llucax deleted the improve-docs branch March 6, 2024 09:37
@llucax llucax modified the milestones: v1.0.0, v1.0.0-rc.1 Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd:skip-release-notes It is not necessary to update release notes for this PR part:channels Affects channels implementation part:core Affects the core types (`Sender`, `Receiver`, exceptions, etc.) part:docs Affects the documentation part:synchronization Affects the synchronization of multiple sources (`select`, `merge`) part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) part:utilities Affects the utility receivers (`Timer`, `Event`, `FileWatcher`) type:enhancement New feature or enhancement visitble to users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants