-
Notifications
You must be signed in to change notification settings - Fork 45
Improve apidoc with pydoctor tool #28
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
Conversation
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Screen.Recording.2022-11-04.at.23.02.29.-.Compressed.with.FlexClip.mp4 |
The major motivation is that the style of pdoc is out of materialized and I suspect it provides worse reading experience. An alternative is to replace
But still, we should update several syntax errors. BTW, |
Signed-off-by: tison <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 👍
Signed-off-by: tison <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a instruction for how to generate the preview into README?
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
@BewareMyPower Thanks for your comments. Updated. |
Using the numpy doc style. This format is also compatible with
pdoc
by specifying--docformat=numpy
.To preview locally:
pip3 install pydoctor pydoctor --make-html --html-viewsource-base=https://github.com/apache/pulsar-client-python/tree/main --docformat=numpy --theme=readthedocs --html-output=apidoc pulsar cd apidoc python3 -m http.server
Browse on localhost:8000.
cc @BewareMyPower @merlimat @shibd