[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29218] trunk/blender/source/blender/ python/doc/sphinx_doc_gen.py: == python api docs ==

Luca Bonavita mindrones at gmail.com
Fri Jun 4 15:47:57 CEST 2010


Revision: 29218
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29218
Author:   mindrones
Date:     2010-06-04 15:47:56 +0200 (Fri, 04 Jun 2010)

Log Message:
-----------
== 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

Modified Paths:
--------------
    trunk/blender/source/blender/python/doc/sphinx_doc_gen.py

Modified: trunk/blender/source/blender/python/doc/sphinx_doc_gen.py
===================================================================
--- trunk/blender/source/blender/python/doc/sphinx_doc_gen.py	2010-06-04 12:25:41 UTC (rev 29217)
+++ trunk/blender/source/blender/python/doc/sphinx_doc_gen.py	2010-06-04 13:47:56 UTC (rev 29218)
@@ -657,10 +657,10 @@
                 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 @@
 
             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()
 





More information about the Bf-blender-cvs mailing list