-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
make.bat: Don't override SPHINXOPTS/O from the environment #23634
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
Conversation
Co-authored-by: hannah <story645@gmail.com>
your version and this equivalent seem to work and I think this is more direct: if not defined SPHINXOPTS (
set SPHINXOPTS=-W --keep-going
) but in both versions |
I didn't use Does |
not is specified as optionally usable with a parameter and I haven't found anything that says it wouldn't work, but also I won't block on that🤷♀️
I think undefines it: >set SPHINXOPTS=
>echo %SPHINXOPTS%
%SPHINXOPTS%
tried both |
edited it so at least the docs are now accurate, hopefully once matplotlib#23634 goes in, either as part of that PR or new one the docs can be amended yet again to add > On Windows, either put the arguments at the end of the statement or set the options as environment variables, e.g.: ```bat set O=-W --keep-going -j4 & make html ```
Ok so putting at end doesn't work, put in a quick PR so docs reflect current state of build #23640. Currently testing again and will amend this PR w/ what does work: >echo %SPHINXOPTS%
%SPHINXOPTS%
>make clean
Removing everything under 'build'...
>echo %SPHINXOPTS%
-W --keep-going
>set SPHINXOPTS= & set O=-j4 -Dplot_gallery=0 & make clean
Removing everything under 'build'...
>echo %sphinxopts%
ECHO is on.
>echo %O%
-j4 -Dplot_gallery=0 ETA - sorry committing directly to your branch and feel free to drop, github wouldn't let me create a new branch against your branch |
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.
the .bat file seems to work now
figured this made more sense than opening a new PR for the docs
I don't mind committing here, just not the default commit message. |
PR Summary
I have not actually tested this... cc @story645
if defined
does require command extensions to be enabled, but a) they're enabled by default, and b) we need them for%~dp0
above already.Fixes #23622
PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).