diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-11-10 20:08:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-11-10 20:14:11 +0300 |
commit | 3c1b00ef7e65583e6d4263b6fb0fd6e57387dad2 (patch) | |
tree | e9955efd6f7b6831a0ee522eb6c7588cad6cf755 /doc | |
parent | 8323e9f790548a175e7e0c7d15da94b608ef0ddf (diff) |
Docs: create link pointing to latest API docs
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/python_api/sphinx_doc_gen.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/python_api/sphinx_doc_gen.sh b/doc/python_api/sphinx_doc_gen.sh index 4b9715242aa..8f1791d2195 100755 --- a/doc/python_api/sphinx_doc_gen.sh +++ b/doc/python_api/sphinx_doc_gen.sh @@ -110,6 +110,9 @@ if $DO_UPLOAD ; then ## symlink the dir to a static URL #ssh $SSH_USER@blender.org 'rm '$SSH_UPLOAD'/250PythonDoc && ln -s '$SSH_UPLOAD_FULL' '$SSH_UPLOAD'/250PythonDoc' + if [ "$blender_version_cycle" = "release" ] ; then + ssh $SSH_USER@blender.org 'rm '$SSH_UPLOAD'/blender_python_api_current && ln -s '$SSH_UPLOAD_FULL' '$SSH_UPLOAD'/blender_python_api_current' + fi # better redirect ssh $SSH_USER@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' |