diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-04-06 01:06:32 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-04-06 01:06:32 +0400 |
commit | f85bcac8ae73f763bce29916a616b9b713d984b8 (patch) | |
tree | 85dc469c952da9d58c18abe5ab58f8b34e6feae4 /source/blender | |
parent | f9e2f6acd761492c52500bf72e32a4ad5a33757b (diff) |
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.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/doc/sphinx_doc_gen.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/python/doc/sphinx_doc_gen.py b/source/blender/python/doc/sphinx_doc_gen.py index 944dbb082a6..4b860f4a75b 100644 --- a/source/blender/python/doc/sphinx_doc_gen.py +++ b/source/blender/python/doc/sphinx_doc_gen.py @@ -129,7 +129,7 @@ def py_c_func2sphinx(ident, fw, identifier, py_func, is_class=True): 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 @@ def rna2sphinx(BASEPATH): 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 @@ def rna2sphinx(BASEPATH): 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 |