Changeset View
Changeset View
Standalone View
Standalone View
doc/python_api/sphinx_doc_gen.sh
| Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
| SPHINX_WORKDIR="$(mktemp --directory --suffix=.sphinx)" | SPHINX_WORKDIR="$(mktemp --directory --suffix=.sphinx)" | ||||
| # ---------------------------------------------------------------------------- | # ---------------------------------------------------------------------------- | ||||
| # Generate reStructuredText (blender/python only) | # Generate reStructuredText (blender/python only) | ||||
| if $DO_EXE_BLENDER ; then | if $DO_EXE_BLENDER ; then | ||||
| # dont delete existing docs, now partial updates are used for quick builds. | # don't delete existing docs, now partial updates are used for quick builds. | ||||
| $BLENDER_BIN \ | $BLENDER_BIN \ | ||||
| --background \ | --background \ | ||||
| -noaudio \ | -noaudio \ | ||||
| --factory-startup \ | --factory-startup \ | ||||
| --python-exit-code 1 \ | --python-exit-code 1 \ | ||||
| --python $SPHINXBASE/sphinx_doc_gen.py \ | --python $SPHINXBASE/sphinx_doc_gen.py \ | ||||
| -- \ | -- \ | ||||
| --output=$SPHINX_WORKDIR | --output=$SPHINX_WORKDIR | ||||
| Show All 14 Lines | if $DO_OUT_HTML ; then | ||||
| # annoying bug in sphinx makes it very slow unless we do this. should report. | # annoying bug in sphinx makes it very slow unless we do this. should report. | ||||
| cd $SPHINX_WORKDIR | cd $SPHINX_WORKDIR | ||||
| sphinx-build -b html sphinx-in sphinx-out | sphinx-build -b html sphinx-in sphinx-out | ||||
| # XXX, saves space on upload and zip, should move HTML outside | # XXX, saves space on upload and zip, should move HTML outside | ||||
| # and zip up there, for now this is OK | # and zip up there, for now this is OK | ||||
| rm -rf sphinx-out/.doctrees | rm -rf sphinx-out/.doctrees | ||||
| # incase we have a zip already | # in case we have a zip already | ||||
| rm -f blender_python_reference_$BLENDER_VERSION.zip | rm -f blender_python_reference_$BLENDER_VERSION.zip | ||||
| # ------------------------------------------------------------------------ | # ------------------------------------------------------------------------ | ||||
| # ZIP the HTML dir for upload | # ZIP the HTML dir for upload | ||||
| if $DO_OUT_HTML_ZIP ; then | if $DO_OUT_HTML_ZIP ; then | ||||
| # lame, temp rename dir | # lame, temp rename dir | ||||
| mv sphinx-out blender_python_reference_$BLENDER_VERSION | mv sphinx-out blender_python_reference_$BLENDER_VERSION | ||||
| ▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines | |||||