Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Bonavita <mindrones@gmail.com>2010-06-04 17:47:56 +0400
committerLuca Bonavita <mindrones@gmail.com>2010-06-04 17:47:56 +0400
commit677a0434a4e2a6a48b756199b02eb638595a007c (patch)
tree7190c2e8bf9a724f92885b5741fae773e12fd7f1 /source/blender/python
parent8a42eebad576ce251cacdf537fd237a267f54482 (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.py6
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()