forked from bartvdbraak/blender
Disable PDF doc since its giving errors with latex indentation.
upload the zipped version of HTML docs instead.
This commit is contained in:
parent
6a598148a7
commit
387ce06732
@ -1135,7 +1135,9 @@ def rna2sphinx(BASEPATH):
|
|||||||
fw("\n")
|
fw("\n")
|
||||||
fw("Welcome, this document is an API reference for Blender %s. built %s.\n" % (version_string, bpy.app.build_date))
|
fw("Welcome, this document is an API reference for Blender %s. built %s.\n" % (version_string, bpy.app.build_date))
|
||||||
fw("\n")
|
fw("\n")
|
||||||
fw("`A PDF version of this document is also available <blender_python_reference_%s.pdf>`_\n" % version_string_pdf)
|
|
||||||
|
# fw("`A PDF version of this document is also available <blender_python_reference_%s.pdf>`_\n" % version_string_pdf)
|
||||||
|
fw("`A compressed ZIP file of this site is available <blender_python_reference_%s.zip>`_\n" % version_string_pdf)
|
||||||
|
|
||||||
fw("\n")
|
fw("\n")
|
||||||
|
|
||||||
|
@ -11,7 +11,8 @@
|
|||||||
DO_UPLOAD=true
|
DO_UPLOAD=true
|
||||||
DO_EXE_BLENDER=true
|
DO_EXE_BLENDER=true
|
||||||
DO_OUT_HTML=true
|
DO_OUT_HTML=true
|
||||||
DO_OUT_PDF=true
|
DO_OUT_HTML_ZIP=true
|
||||||
|
DO_OUT_PDF=false
|
||||||
|
|
||||||
|
|
||||||
BLENDER="./blender.bin"
|
BLENDER="./blender.bin"
|
||||||
@ -61,6 +62,17 @@ 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 $SPHINXBASE
|
cd $SPHINXBASE
|
||||||
sphinx-build -n -b html sphinx-in sphinx-out
|
sphinx-build -n -b html sphinx-in sphinx-out
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------------
|
||||||
|
# ZIP the HTML dir for upload
|
||||||
|
|
||||||
|
if $DO_OUT_HTML_ZIP ; then
|
||||||
|
# lame, temp rename dir
|
||||||
|
mv sphinx-out blender_python_reference_$BLENDER_VERSION
|
||||||
|
zip -r -9 blender_python_reference_$BLENDER_VERSION.zip blender_python_reference_$BLENDER_VERSION
|
||||||
|
mv blender_python_reference_$BLENDER_VERSION sphinx-out
|
||||||
|
fi
|
||||||
|
|
||||||
cd -
|
cd -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -74,6 +86,7 @@ if $DO_OUT_PDF ; then
|
|||||||
mv $SPHINXBASE/sphinx-out/contents.pdf $SPHINXBASE/sphinx-out/blender_python_reference_$BLENDER_VERSION.pdf
|
mv $SPHINXBASE/sphinx-out/contents.pdf $SPHINXBASE/sphinx-out/blender_python_reference_$BLENDER_VERSION.pdf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
# Upload to blender servers, comment this section for testing
|
# Upload to blender servers, comment this section for testing
|
||||||
|
|
||||||
@ -89,8 +102,14 @@ if $DO_UPLOAD ; then
|
|||||||
# better redirect
|
# better redirect
|
||||||
ssh $SSH_USER@emo.blender.org 'echo "<html><head><title>Redirecting...</title><meta http-equiv=\"REFRESH\" content=\"0;url=../blender_python_api_'$BLENDER_VERSION'/\"></head><body>Redirecting...</body></html>" > '$SSH_UPLOAD'/250PythonDoc/index.html'
|
ssh $SSH_USER@emo.blender.org 'echo "<html><head><title>Redirecting...</title><meta http-equiv=\"REFRESH\" content=\"0;url=../blender_python_api_'$BLENDER_VERSION'/\"></head><body>Redirecting...</body></html>" > '$SSH_UPLOAD'/250PythonDoc/index.html'
|
||||||
|
|
||||||
# rename so local PDF has matching name.
|
if $DO_OUT_PDF ; then
|
||||||
rsync --progress -avze "ssh -p 22" $SPHINXBASE/sphinx-out/blender_python_reference_$BLENDER_VERSION.pdf $SSH_HOST:$SSH_UPLOAD_FULL/blender_python_reference_$BLENDER_VERSION.pdf
|
# rename so local PDF has matching name.
|
||||||
|
rsync --progress -avze "ssh -p 22" $SPHINXBASE/sphinx-out/blender_python_reference_$BLENDER_VERSION.pdf $SSH_HOST:$SSH_UPLOAD_FULL/blender_python_reference_$BLENDER_VERSION.pdf
|
||||||
|
fi
|
||||||
|
|
||||||
|
if $DO_OUT_HTML_ZIP ; then
|
||||||
|
rsync --progress -avze "ssh -p 22" $SPHINXBASE/blender_python_reference_$BLENDER_VERSION.zip $SSH_HOST:$SSH_UPLOAD_FULL/blender_python_reference_$BLENDER_VERSION.zip
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user