yumrepoinfo: convert docstrings to sphinx format
ClosedPublic

Authored by kparal on May 7 2014, 2:56 PM.

Details

Summary

To get some experience with Sphinx, I re-formatted yumrepoinfo docstrings into it.

Test Plan

Generated the docs, they look fine.

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
tflink requested changes to this revision.May 7 2014, 3:22 PM

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

kparal added inline comments.May 9 2014, 8:07 AM
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.

kparal updated this revision.May 9 2014, 8:08 AM
  • address issues raised in review
tflink accepted this revision.May 9 2014, 1:25 PM

Looks good

kparal closed this revision.May 9 2014, 2:26 PM

Closed by commit rLTRN08db578a9f53 (authored by @kparal).