From 2ed8b5f6798f64557288ea44ac91b34851073523 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 12 Apr 2011 16:56:15 +0000 Subject: reference the release PDF correctly --- doc/python_api/sphinx_doc_gen.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'doc') 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 `_,\n") fw("| For a more general explanation of blender/python see the `API Overview `_\n") fw("\n") - fw("`A PDF version of this document is also available `_\n" % version_string_fp) + fw("`A PDF version of this document is also available `_\n" % version_string_pdf) fw("\n") fw(".. warning:: The Blender Python API has areas which are still in development.\n") fw(" \n") -- cgit v1.2.3