-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fix #5104: apidoc: Interface of sphinx.apidoc:main()
has changed
#5106
Conversation
Doesn't this suffer from the same problem that was fixed in #3668? Shouldn't it be |
|
@tk0miya Shouldn't both |
Yes, #3668 is incompatible change to past release. So this revert the change. The most important feature of |
Why revert #3668? It fixed an important bug where the first argument passed to |
The change of #3668 is merged into
I don't think this is not a bug. The main function is not public API. So there are no specification. |
Ah, I see. I guess I assumed that #3668 had been merged and released before 1.7.
Fair enough. Is |
It's not. The public APIs are listed in document: But it does not mean other functions are fragile. We'll work to keep all of functions stable. So please let me know if something goes wrong. |
If |
AFAIK, Anyway, your request is not related with this bug. So I'd like to merge this if this works fine. Could you move to new issue please? |
@adamjstewart try sphinx-contrib/apidoc. We're using this extensively in OpenStack until I can talk @tk0miya around into accepting #4101 😉
@tk0miya I'm afraid it's more complicated than that. There are big differences between |
FWIW, #3668 was necessary due to a change in how argparse and optparse work. That defaults to using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Thanks for sharing @stephenfin. Glad to hear there are proper tools out there. Have been resorting to hacks like calling If it helps, @tk0miya, lots of people try to do something similar. ( readthedocs/readthedocs.org#1139 ) Am sure they would also appreciate proper support in Sphinx for this use case. :) |
In any event, would still be great to have this PR land. |
Codecov Report
@@ Coverage Diff @@
## 1.7 #5106 +/- ##
==========================================
+ Coverage 82.04% 82.05% +<.01%
==========================================
Files 283 288 +5
Lines 37825 38144 +319
Branches 5860 5914 +54
==========================================
+ Hits 31035 31298 +263
- Misses 5481 5528 +47
- Partials 1309 1318 +9
Continue to review full report at Codecov.
|
@stephenfin Thank you for your help. it was very helpful to me (because I'm very poor at English...) |
Merged. Thank you for your comment. Let's talk about the API or modules in another issue. I'll take a look #4101 later. Please wait a moment. |
Feature or Bugfix
Purpose