forked from bartvdbraak/blender
reference the release PDF correctly
This commit is contained in:
parent
2a0d8a4dfb
commit
2ed8b5f679
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user