diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-04-07 10:56:49 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-04-07 10:56:49 +0400 |
commit | 4c42f5c8a93809e131cdadce715e55f9b72eca73 (patch) | |
tree | 62c890335a35020309d96c0cbd63fa871bd19d2c /doc/python_api | |
parent | eeb95280be1eb2845266e4e4dc8ef1d4905154b8 (diff) |
Missing updates in the doc/ and intern/ folders during the merger in revision 55847.
Diffstat (limited to 'doc/python_api')
-rw-r--r-- | doc/python_api/sphinx_doc_gen.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index 09e844adae3..72e92e5855f 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -262,6 +262,7 @@ else: "mathutils", "mathutils.geometry", "mathutils.noise", + "Freestyle", ] # ------ @@ -449,6 +450,7 @@ if ARGS.sphinx_build_pdf: ClassMethodDescriptorType = type(dict.__dict__['fromkeys']) MethodDescriptorType = type(dict.get) GetSetDescriptorType = type(int.real) +StaticMethodType = type(staticmethod(lambda: None)) from types import MemberDescriptorType _BPY_STRUCT_FAKE = "bpy_struct" @@ -915,6 +917,12 @@ def pymodule2sphinx(basepath, module_name, module, title): 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() @@ -1547,7 +1555,7 @@ def write_rst_contents(basepath): # mathutils "mathutils", "mathutils.geometry", "mathutils.noise", # misc - "bgl", "blf", "gpu", "aud", "bpy_extras", + "Freestyle", "bgl", "blf", "gpu", "aud", "bpy_extras", # bmesh, submodules are in own page "bmesh", ) @@ -1695,6 +1703,7 @@ def write_rst_importable_modules(basepath): "mathutils" : "Math Types & Utilities", "mathutils.geometry": "Geometry Utilities", "mathutils.noise" : "Noise Utilities", + "Freestyle" : "Freestyle Data Types & Operators", } for mod_name, mod_descr in importable_modules.items(): if mod_name not in EXCLUDE_MODULES: |