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

Update readme and example #804

Merged
merged 17 commits into from
Feb 10, 2024
Merged

Update readme and example #804

merged 17 commits into from
Feb 10, 2024

Conversation

PierreF
Copy link
Contributor

@PierreF PierreF commented Jan 21, 2024

This update the README and examples:

  • To fix breaking change in example present inside the READ
  • To fix breaking change in examples directory
  • It drop duplicate documentation in README that is also present as docstring. Have duplicated documentation is too much work with no gain.
    I want to kept README being a guide / example of usage. And docstring is the reference of all functions with all arguments.

I've added Sphinx documentation (only expose docstring for now). There is a markdown export to serve them from the Github repository, but that more a workaround because finding a right place to host the documentation (readthedocs ?)

This remove base62 and WebsocketWrapper
The class instance represent ONE reason code, it was odd
to have a variable of type `ReasonCodes` (e.g. `rc: ReasonCodes`),
when that variable was a single value.
Also remove all function documentation from README, they are
moved exclusively to pydoc to avoid duplicating the documentations.
The README should contains guide & examples, and pydoc contains reference
documentations.
dnspython3 is deprecated and replaced by dnspython
This allow to have better print for a list of ReasonCodes, for
example in on_subscribe callback.
Add markdown build to host the documentation using the
Github repository.
@PierreF
Copy link
Contributor Author

PierreF commented Jan 28, 2024

The PR is based of #808 for conflict but also because I spotted those private objects while checking the documentation output.

@PierreF PierreF mentioned this pull request Feb 4, 2024
7 tasks
@PierreF
Copy link
Contributor Author

PierreF commented Feb 6, 2024

The documentation is now available online at https://eclipse.dev/paho/files/paho.mqtt.python/html/index.html

README.rst Outdated Show resolved Hide resolved
Co-authored-by: Danny Staple <danny@orionrobots.co.uk>
@PierreF PierreF merged commit 4c0d9aa into master Feb 10, 2024
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants