diff --git a/build/bin/sage-site b/build/bin/sage-site index b496a3653e6..413abff4dd1 100755 --- a/build/bin/sage-site +++ b/build/bin/sage-site @@ -215,37 +215,6 @@ if [ "$1" = '-info' -o "$1" = '--info' ]; then exit 0 fi -##################################################################### -# Building the documentation. -##################################################################### - -if [ "$1" = "-docbuild" -o "$1" = "--docbuild" ]; then - # Redirect stdin from /dev/null. This helps with running TeX which - # tends to ask interactive questions if something goes wrong. These - # cause the build to hang. If stdin is /dev/null, TeX just aborts. - shift - - # Trac #30002: ensure an English locale so that it is possible to - # scrape out warnings by pattern matching. - export LANG=C - export LANGUAGE=C - - # See #30351: bugs in macOS implementations of openblas/libgopm can cause - # docbuild to hang if multiple OpenMP threads are allowed. - if [ `uname` = 'Darwin' ]; then - export OMP_NUM_THREADS=1 - fi - - # Trac #33650: Make sure that user configuration of Jupyter does not - # shadow our sagemath kernel when jupyter-sphinx is invoked - export JUPYTER_CONFIG_DIR=/doesnotexist - export JUPYTER_CONFIG_PATH=/doesnotexist - export JUPYTER_DATA_DIR=/doesnotexist - export JUPYTER_PATH=/doesnotexist - - exec sage-python -m sage_docbuild "$@"