-
Notifications
You must be signed in to change notification settings - Fork 25
Idea: rtd
cli script instead of standalone rtd-build
#3
Comments
Yea, had this idea in the past: https://pypi.python.org/pypi/rtd -- Just On Thu, Jun 18, 2015 at 10:54 AM, Gregor Müllegger <[email protected]
Eric Holscher |
I can recommend the click library for this. It's made for having independent subcommands and really makes writing CLIs fun. So much better than any argparse can be :) and the docs are awesome. |
+1 to the idea and to using click. |
The name
rtd-build
is very explicit about what it does, that's cool. But it doesn't allow more flexible use cases later on. For example: it should be really easy to get started with a samplereadthedocs.yml
file. That could be done by a command likertd init
.rtd build
is then a subcommand that does whatrtd-build
is currently doing. That naming scheme allows for further extension, like:rtd test
: test for syntax and configuration issues in the yml file. It could also check yourconf.py
for problems etc.rtd lint
: test your documentation against heuristics about common mistakes in writing docs (similiar to whatannotatedocs
had as goal) etc.rtd upload
: build your docs with crazy dependencies and then upload itrtd register
: take the repo url from git's origin remote and try to register this project on readthedocs.orgI know that this is nothing that will happen in the very near future because making the build work first is the most precious thing, but I wanted to record and discuss those thoughts here.
The text was updated successfully, but these errors were encountered: