diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-01 15:16:42 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-01 15:16:42 +0400 |
commit | 01550f880ed97f074a03603c0000e11af219f324 (patch) | |
tree | d9061015f3b21c9f05dbc3eb47bdf12cd1a56a23 /doc/python_api/sphinx_doc_gen.py | |
parent | 5916309ac97e9e5511f3d3adb0fd798bfad4b432 (diff) |
add 'bgl' OpenGL doc to sphinx
Diffstat (limited to 'doc/python_api/sphinx_doc_gen.py')
-rw-r--r-- | doc/python_api/sphinx_doc_gen.py | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index 0112007ca7f..94578c6a545 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -67,7 +67,7 @@ if 1: else: # for testing so doc-builds dont take so long. EXCLUDE_MODULES = ( - # "bpy.context", + "bpy.context", "bpy.app", "bpy.path", "bpy.data", @@ -76,10 +76,10 @@ else: "bpy.context", "bpy.types", # supports filtering "bpy.ops", # supports filtering - #"bpy_extras", + "bpy_extras", "bge", "aud", - "bgl", + #"bgl", "blf", "mathutils", "mathutils.geometry", @@ -1028,8 +1028,8 @@ def rna2sphinx(BASEPATH): fw(" mathutils.rst\n\n") if "mathutils.geometry" not in EXCLUDE_MODULES: fw(" mathutils.geometry.rst\n\n") - # XXX TODO - #fw(" bgl.rst\n\n") + if "bgl" not in EXCLUDE_MODULES: + fw(" bgl.rst\n\n") if "blf" not in EXCLUDE_MODULES: fw(" blf.rst\n\n") if "aud" not in EXCLUDE_MODULES: @@ -1159,14 +1159,16 @@ def rna2sphinx(BASEPATH): import mathutils.geometry as module pymodule2sphinx(BASEPATH, "mathutils.geometry", module, "Geometry Utilities") - if "mathutils.geometry" not in EXCLUDE_MODULES: + if "blf" not in EXCLUDE_MODULES: import blf as module pymodule2sphinx(BASEPATH, "blf", module, "Font Drawing") - # XXX TODO - #import bgl as module - #pymodule2sphinx(BASEPATH, "bgl", module, "Blender OpenGl wrapper") - #del module + if "bgl" not in EXCLUDE_MODULES: + #import bgl as module + #pymodule2sphinx(BASEPATH, "bgl", module, "Blender OpenGl wrapper") + #del module + import shutil + shutil.copy2(os.path.join(BASEPATH, "..", "rst", "bgl.rst"), BASEPATH) if "aud" not in EXCLUDE_MODULES: import aud as module |