diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-12 20:56:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-12 20:56:15 +0400 |
commit | 2ed8b5f6798f64557288ea44ac91b34851073523 (patch) | |
tree | 10f4c5f060d942b892fda31a765d7c0af687d5af /doc/python_api | |
parent | 2a0d8a4dfbb0a438eb546142d69a5d2742fe1af5 (diff) |
reference the release PDF correctly
Diffstat (limited to 'doc/python_api')
-rw-r--r-- | doc/python_api/sphinx_doc_gen.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index 57ba30ee0bb..b7c9b617910 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -873,9 +873,13 @@ def rna2sphinx(BASEPATH): if bpy.app.build_revision != "Unknown": version_string = version_string + " r" + bpy.app.build_revision - # for use with files version_string_fp = "_".join(str(v) for v in bpy.app.version) + if bpy.app.version_cycle == "release": + version_string_pdf = "%s%s_release" % ("_".join(str(v) for v in bpy.app.version[:2]), bpy.app.version_char) + else: + version_string_pdf = version_string_fp + fw("project = 'Blender'\n") # fw("master_doc = 'index'\n") fw("copyright = u'Blender Foundation'\n") @@ -906,7 +910,7 @@ def rna2sphinx(BASEPATH): fw("| An introduction to Blender and Python can be found at `Quickstart Intro <http://wiki.blender.org/index.php/Dev:2.5/Py/API/Intro>`_,\n") fw("| For a more general explanation of blender/python see the `API Overview <http://wiki.blender.org/index.php/Dev:2.5/Py/API/Overview>`_\n") fw("\n") - fw("`A PDF version of this document is also available <blender_python_reference_%s.pdf>`_\n" % version_string_fp) + fw("`A PDF version of this document is also available <blender_python_reference_%s.pdf>`_\n" % version_string_pdf) fw("\n") fw(".. warning:: The Blender Python API has areas which are still in development.\n") fw(" \n") |