File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ git update-index --refresh
2626git diff-index --quiet HEAD --
2727test -z " $( git ls-files --exclude-standard --others) "
2828echo Rebuilding docs
29- ${PYTHON} " ${DOCS_DIR} /rebuild_docs.py" --warnings_as_errors
29+
30+ # Have to be in the virtualenv for sphinx-build to be picked up.
31+ source " ${VENV_DIR} " /bin/activate
32+ python " ${DOCS_DIR} /rebuild_docs.py" --warnings_as_errors
3033echo Checking if files generated by rebuild_docs need to be checked in
3134git diff
3235git update-index --refresh
Original file line number Diff line number Diff line change 5959 if args .warnings_as_errors :
6060 cmdargs .append ('SPHINXOPTS="-W"' )
6161
62- sphinx_build = shutil .which ("sphinx-build" )
63- cmdargs .append (f"SPHINXBUILD={ sphinx_build } " )
6462 subprocess .check_call (cmdargs )
6563
6664 # Copy
You can’t perform that action at this time.
0 commit comments