[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28018] branches/soc-2008-mxcurioni/source /blender/python/doc/sphinx_doc_gen.py: Added an entry for the documentation of the Freestyle Python API.

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Mon Apr 5 23:06:33 CEST 2010


Revision: 28018
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28018
Author:   kjym3
Date:     2010-04-05 23:06:32 +0200 (Mon, 05 Apr 2010)

Log Message:
-----------
Added an entry for the documentation of the Freestyle Python API.
Also fixed a minor bug in sphinx_doc_gen.py that raised a TypeError
when a C extension function does not have a docstring.

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/source/blender/python/doc/sphinx_doc_gen.py

Modified: branches/soc-2008-mxcurioni/source/blender/python/doc/sphinx_doc_gen.py
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/python/doc/sphinx_doc_gen.py	2010-04-05 18:34:18 UTC (rev 28017)
+++ branches/soc-2008-mxcurioni/source/blender/python/doc/sphinx_doc_gen.py	2010-04-05 21:06:32 UTC (rev 28018)
@@ -129,7 +129,7 @@
         fw("\n")
     else:
         fw(ident + ".. function:: %s()\n\n" % identifier)
-        fw(ident + "   Undocumented function.\n\n" % identifier)
+        fw(ident + "   Undocumented function.\n\n")
 
 
 def pyprop2sphinx(ident, fw, identifier, py_prop):
@@ -307,6 +307,7 @@
     fw("   bpy.props.rst\n\n")
     
     fw("   Mathutils.rst\n\n")
+    fw("   Freestyle.rst\n\n")
     fw("   blf.rst\n\n")
     file.close()
 
@@ -349,6 +350,10 @@
     pymodule2sphinx(BASEPATH, "Mathutils", module, "Math Types & Utilities (Mathutils)")
     del module
 
+    import Freestyle as module
+    pymodule2sphinx(BASEPATH, "Freestyle", module, "Freestyle Operators & Rules (Freestyle)")
+    del module
+
     import blf as module
     pymodule2sphinx(BASEPATH, "blf", module, "Blender Font Drawing (blf)")
     del module





More information about the Bf-blender-cvs mailing list