[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32665] branches/soc-2008-mxcurioni/doc/ python_api/sphinx_doc_gen.py: Restored Freestyle documentation that was lost during the last merge.
Tamito Kajiyama
rd6t-kjym at asahi-net.or.jp
Sat Oct 23 13:11:56 CEST 2010
Revision: 32665
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32665
Author: kjym3
Date: 2010-10-23 13:11:56 +0200 (Sat, 23 Oct 2010)
Log Message:
-----------
Restored Freestyle documentation that was lost during the last merge.
Modified Paths:
--------------
branches/soc-2008-mxcurioni/doc/python_api/sphinx_doc_gen.py
Modified: branches/soc-2008-mxcurioni/doc/python_api/sphinx_doc_gen.py
===================================================================
--- branches/soc-2008-mxcurioni/doc/python_api/sphinx_doc_gen.py 2010-10-23 10:41:28 UTC (rev 32664)
+++ branches/soc-2008-mxcurioni/doc/python_api/sphinx_doc_gen.py 2010-10-23 11:11:56 UTC (rev 32665)
@@ -57,6 +57,7 @@
ClassMethodDescriptorType = type(dict.__dict__['fromkeys'])
MethodDescriptorType = type(dict.get)
GetSetDescriptorType = type(int.real)
+StaticMethodType = type(staticmethod(lambda: None))
EXAMPLE_SET = set()
EXAMPLE_SET_USED = set()
@@ -291,6 +292,12 @@
if type(descr) == GetSetDescriptorType:
py_descr2sphinx(" ", fw, descr, module_name, type_name, key)
+ for key, descr in descr_items:
+ if type(descr) == StaticMethodType:
+ descr = getattr(value, key)
+ write_indented_lines(" ", fw, descr.__doc__ or "Undocumented", False)
+ fw("\n")
+
fw("\n\n")
file.close()
@@ -395,6 +402,7 @@
fw(" mathutils.rst\n\n")
+ fw(" Freestyle.rst\n\n")
fw(" blf.rst\n\n")
fw(" aud.rst\n\n")
@@ -476,6 +484,10 @@
pymodule2sphinx(BASEPATH, "mathutils", module, "Math Types & Utilities (mathutils)")
del module
+ import Freestyle as module
+ pymodule2sphinx(BASEPATH, "Freestyle", module, "Freestyle Data Types & Operators (Freestyle)")
+ del module
+
import blf as module
pymodule2sphinx(BASEPATH, "blf", module, "Font Drawing (blf)")
del module
More information about the Bf-blender-cvs
mailing list