-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
sphinx-apidoc doesn't accept 'exclude_patterns' #4771
Comments
I guess this comes from the order of command line arguments.
As usage says, argparse expects positional arguments are placed after all of options.
(I don't tested this on my local, sorry) |
Yes, this was this issue. After talking with other folks, it seems this is a known issue with |
Actually, this looks like the bug. |
Hmm... I can't imagine the impact of this issue. Personally, I always uses BSD-styled options (options first, arguments last). So I think this is very minor and no-confusable change. |
Fixed by #4854. |
To avoid a sphinx bug that ignores exclude_patterns in some lower versions. Sphinx bug: sphinx-doc/sphinx#4771 FFE: http://lists.openstack.org/pipermail/openstack-dev/2018-August/133065.html Change-Id: I34aca28366e5c183ceb01b37d63688ac25332740 Closes-Bug: 1778171
Subject:
sphinx-apidoc
in Sphinx 1.7+ doesn't accept theexclude_patterns
parameterProblem
If I want to exclude some modules from
sphinx-apidoc
doc generation, I can just list them as additional arguments. For example:This works with Sphinx 1.6.x but fails with Sphinx 1.7.x. I think I broke this in the move to
argparse
but, try as I may, I can't figure out how to fix it 😞Procedure to reproduce the problem
Now, build docs with the current version of Sphinx used (1.6.5):
Then attempt to do the same with the latest Sphinx (1.7.2):
Error logs / results
Expected results
Reproducible project / your project
Environment info
The text was updated successfully, but these errors were encountered: