As a startup, this PR contains basic documentation structure and API documentation can be generated from existing docstrings.
Another change is the manpages generation which is rewritten totally. Now, man pages are generated by sphinx from each command's RST document that is constructed from registered CLI commands in cli.py. As rpkg has example a CLI implementation that is not distributed, a sample name sample-rpkg is used in final rendered HTML and man pages. Downstream client tool built on top of rpkg can reuse the script generate_man_pages.py technically.
In the future, documentation needs to be maintained and add more content step by step. We have to write docstrings and help text in register_* methods much carefully in order to provide good documentation.
An example generated documentation site is here https://cqi.fedorapeople.org/rpkg-doc-demo/html/
As a startup, this PR contains basic documentation structure and API documentation can be generated from existing docstrings.
Another change is the manpages generation which is rewritten totally. Now, man pages are generated by sphinx from each command's RST document that is constructed from registered CLI commands in
cli.py. As rpkg has example a CLI implementation that is not distributed, a sample namesample-rpkgis used in final rendered HTML and man pages. Downstream client tool built on top of rpkg can reuse the scriptgenerate_man_pages.pytechnically.In the future, documentation needs to be maintained and add more content step by step. We have to write docstrings and
helptext inregister_*methods much carefully in order to provide good documentation.An example generated documentation site is here https://cqi.fedorapeople.org/rpkg-doc-demo/html/
Fixes #50