To get some experience with Sphinx, I re-formatted yumrepoinfo docstrings into it.
Details
Generated the docs, they look fine.
Diff Detail
- Lint
Lint Skipped - Unit
Unit Tests Skipped
A couple of nits but overall, looks pretty good. I'm not sure that I like how autodoc renders with the theme we're using but that's a whole different issue :)
libtaskotron/yumrepoinfo.py | ||
---|---|---|
24 | I think that the rendered docs would be more read-able if the explanation of the singleton pattern was in the body of the function doc instead of attached to the return | |
42–43 | I think that 'create X object' in the constructor is a bit excessive, no? | |
112–117 | this is missing a param description for reponame |
libtaskotron/yumrepoinfo.py | ||
---|---|---|
42–43 | I always thought that there has to be a "title" and then an optional "description" separated by an empty line from the title. But the rendered docs look fine even if I don't follow this format. I guess I mixed up Java and Python worlds. |
I think that the rendered docs would be more read-able if the explanation of the singleton pattern was in the body of the function doc instead of attached to the return