diff options
author | Luca Bonavita <mindrones@gmail.com> | 2010-06-04 17:47:56 +0400 |
---|---|---|
committer | Luca Bonavita <mindrones@gmail.com> | 2010-06-04 17:47:56 +0400 |
commit | 677a0434a4e2a6a48b756199b02eb638595a007c (patch) | |
tree | 7190c2e8bf9a724f92885b5741fae773e12fd7f1 /source/blender/python | |
parent | 8a42eebad576ce251cacdf537fd237a267f54482 (diff) |
== 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
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/doc/sphinx_doc_gen.py | 6 |
1 files 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() |