From 677a0434a4e2a6a48b756199b02eb638595a007c Mon Sep 17 00:00:00 2001 From: Luca Bonavita Date: Fri, 4 Jun 2010 13:47:56 +0000 Subject: [PATCH] == python api docs == - small change to indicate the source file we use the proper :file: directive and we link to proper file in svn check for example http://www.blender.org/documentation/250PythonDoc/bpy.ops.cloth.html#bpy.ops.cloth.preset_add after you rebuild the docs --- source/blender/python/doc/sphinx_doc_gen.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/blender/python/doc/sphinx_doc_gen.py b/source/blender/python/doc/sphinx_doc_gen.py index e165e597f31..fd6cf74691e 100644 --- a/source/blender/python/doc/sphinx_doc_gen.py +++ b/source/blender/python/doc/sphinx_doc_gen.py @@ -657,10 +657,10 @@ def rna2sphinx(BASEPATH): py_descr2sphinx(" ", fw, descr, "bpy.types", _BPY_STRUCT_FAKE, key) - # oeprators + # operators def write_ops(): + API_BASEURL='https://svn.blender.org/svnroot/bf-blender/trunk/blender/release/scripts' fw = None - last_mod = '' for op_key in sorted(ops.keys()): @@ -688,7 +688,7 @@ def rna2sphinx(BASEPATH): location = op.get_location() if location != (None, None): - fw(" *python operator source --- `%s:%d`* \n\n" % location) + fw(" :file: `%s <%s/%s>`_:%d\n\n" % (location[0],API_BASEURL,location[0],location[1])) write_ops()