-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add online help system #75
base: master
Are you sure you want to change the base?
Conversation
Open questions right now:
|
@ln2max Thank you for the thought you put into this PR. I'm a big fan of quality docs in the tradition of OpenBSD/FreeBSD and you've addressed particularly sore points. I've taken care of (1) by adding compatibility for Alpine. Since this covers all our target OS I'd suggest leaving it at that. (2) You're right that the documentation contains unnecessary information and this extends to the underlying code. Since the bitcoind PR is nearing completion, we are about to see what can be removed from Similarly, we can remove non-critical parts that were added for requirements that are no longer important to the project and thereby bring better focus to the documentation. I am wondering if private functions will still be autogenerated, this might be another option to pursue. Concerning the manpage and default help screen, I would suggest keeping those in sync thru (3) @meeDamian brought up a valid point in #73 and the lack of individual help for each command has been annoying me from the beginning. The work you've done here to print out the The only issue I've run into is this:
|
Thanks for the reply @AnotherDroog ... one thing I still haven't figured out: right now if you do In order to get rid of them from the help display, we have 2 options:
|
Sphinx is messing up the docstring formatting for the
|
…ion headaches it was causing
- change lnd.check_wallet() to lnd.create() due to the major documentation headaches it was causing - update index.rst to bring it into compliance with the user-facing interface - run black against install.py & lnd.py - make catch-all warning more professional - add sphinxcontrib-napoleon plugin to sphinx (it still needs configuring)
Thank you for your continued efforts here,
I've tested adding other sections to the main docstring in Apart from that the Now that you've added the napoleon extension, would you suggest changing docstrings to NumPy or Google style everywhere? I can open the napoleon documentation, I'm just not sure what the output is supposed to look like. |
On Wed, Oct 30, 2019 at 02:25:39AM -0700, Another Droog wrote:
I've tested adding other sections to the main docstring in `noma.py`,
these get rendered properly in the manpage and `noma -h`. However, the
main docstring is missing from `noma help` as it defaults to
`help(node)` Would you agree that `noma -h` and `noma help` should be
synonymous?
Yes, that makes sense, or at least `noma help` should be a superset of
`noma -h`.
Apart from that the `noma help` page looks a bit awkward with `:param:`
and `:return:` strings littered about. While those fields are missing
entirely from `man noma`.
That's odd, `:param` etc should be properly parsed by the Python
docstring parser.
Now that you've added the napoleon extension, would you suggest
changing docstrings to NumPy or Google style everywhere? I can open the
napoleon documentation, I'm just not sure what the output is supposed
to look like.
I'm not sure we should be changing anything, except perhaps for removing
the `napoleon` plugin! I had been hoping that `napoleon` would just be
able to render the docstrings as written (in `docopts` format).
The problem here is that we *can't* reformat the docstring which really
matters -- the main one describing the command line options -- because
`docopts` expects it to be in that format in order to generate the
command line parser!
So what we really need is a way to get `sphinx` to just render the text
as-is, because it's perfectly fine the way it is, instead of parsing the
docstring as reStructuredText.
|
Add an online help system as per #73.
Todo:
Very much a WIP right now. Command-specific help may not be worth doing (and may add unnecessary overhead in terms of keeping documentation updated) if the manpage works well.