sphinx-doc / sphinx-argparse

A Sphinx extension to automatically document argparse commands and options
https://sphinx-argparse.readthedocs.org/
MIT License
32 stars 25 forks source link

Substantial revision #32

Open mikemckiernan opened 1 year ago

mikemckiernan commented 1 year ago

Great extension. It's used by my team and I have suggestions for some significant revision.

I have an implementation of all the following items, but I'm cataloging them to find out the most approachable way to open PRs and request feedback.

I made a fake PR in my fork so you can skim the diffs. If you are open to reviewing all the changes at once, that's fine by me, I just fear that could be unnecessarily challenging. I can make one PR for the first issue. I think the next four have to be one PR, though maybe I can make the domain and tests for xrefs into one PR and maybe break the two different indicies into separate PRs.

I'm not 100% sure, but I think that implementing the domain addresses https://github.com/ashb/sphinx-argparse/issues/11. Refer to an example in a test file or some of the tests.

I hope the proposal is compelling. Please let me know whether you are receptive to one "big bang" PR or which smaller ones you'd prefer. If I can clarify anything, please let me know.

mikemckiernan commented 1 year ago

@ashb , can you take a peek and let me know if my requests are compelling? If you prefer step-by-step, please let me know what changes you'd like in the first PR. Thanks very much.

ashb commented 1 year ago

Just seen this point, will take a look

ashb commented 1 year ago

@mikemckiernan That all looks amazing -- PR in what ever structure you think appropriate. Do we need to bump the minimum sphinx version at all?

mikemckiernan commented 1 year ago

@mikemckiernan That all looks amazing -- PR in what ever structure you think appropriate. Do we need to bump the minimum sphinx version at all?

The 4.3.2 version seems OK, and my org uses 4.5 at the moment. I don't see a reason to bump the minimum Sphinx version at the moment.