[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30420] branches/soc-2010-nexyon/source/ blender/python/doc: BGE Py API:

Joerg Mueller nexyon at gmail.com
Fri Jul 16 23:42:20 CEST 2010


Revision: 30420
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30420
Author:   nexyon
Date:     2010-07-16 23:42:20 +0200 (Fri, 16 Jul 2010)

Log Message:
-----------
BGE Py API:
* Sphinx autorun file.
* bge modules are now autogenerated
* added aud module

Modified Paths:
--------------
    branches/soc-2010-nexyon/source/blender/python/doc/sphinx_doc_gen.py

Added Paths:
-----------
    branches/soc-2010-nexyon/source/blender/python/doc/sphinx.blend

Added: branches/soc-2010-nexyon/source/blender/python/doc/sphinx.blend
===================================================================
(Binary files differ)


Property changes on: branches/soc-2010-nexyon/source/blender/python/doc/sphinx.blend
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: branches/soc-2010-nexyon/source/blender/python/doc/sphinx_doc_gen.py
===================================================================
--- branches/soc-2010-nexyon/source/blender/python/doc/sphinx_doc_gen.py	2010-07-16 21:35:48 UTC (rev 30419)
+++ branches/soc-2010-nexyon/source/blender/python/doc/sphinx_doc_gen.py	2010-07-16 21:42:20 UTC (rev 30420)
@@ -375,6 +375,7 @@
 
     fw("   mathutils.rst\n\n")
     fw("   blf.rst\n\n")
+    fw("   aud.rst\n\n")
     
     # game engine
     fw("===================\n")
@@ -454,14 +455,30 @@
     import blf as module
     pymodule2sphinx(BASEPATH, "blf", module, "Font Drawing (blf)")
     del module
+    
+    import aud as module
+    pymodule2sphinx(BASEPATH, "aud", module, "Audio System (aud)")
+    del module
 
     # game engine
-    import shutil
+    from bge import types as module
+    pymodule2sphinx(BASEPATH, "bge.types", module, "Game Engine bge.types Module")
+
+    from bge import logic as module
+    pymodule2sphinx(BASEPATH, "bge.logic", module, "Game Engine bge.logic Module")
+
+    from bge import render as module
+    pymodule2sphinx(BASEPATH, "bge.render", module, "Game Engine bge.render Module")
+
+    from bge import events as module
+    pymodule2sphinx(BASEPATH, "bge.events", module, "Game Engine bge.events Module")
+
+    #import shutil
     # copy2 keeps time/date stamps
-    shutil.copy2(os.path.join(BASEPATH, "../../../../gameengine/PyDoc/bge.types.rst"), BASEPATH)
-    shutil.copy2(os.path.join(BASEPATH, "../../../../gameengine/PyDoc/bge.logic.rst"), BASEPATH)
-    shutil.copy2(os.path.join(BASEPATH, "../../../../gameengine/PyDoc/bge.render.rst"), BASEPATH)
-    shutil.copy2(os.path.join(BASEPATH, "../../../../gameengine/PyDoc/bge.events.rst"), BASEPATH)
+    #shutil.copy2(os.path.join(BASEPATH, "../../../../gameengine/PyDoc/bge.types.rst"), BASEPATH)
+    #shutil.copy2(os.path.join(BASEPATH, "../../../../gameengine/PyDoc/bge.logic.rst"), BASEPATH)
+    #shutil.copy2(os.path.join(BASEPATH, "../../../../gameengine/PyDoc/bge.render.rst"), BASEPATH)
+    #shutil.copy2(os.path.join(BASEPATH, "../../../../gameengine/PyDoc/bge.events.rst"), BASEPATH)
 
 
     if 0:





More information about the Bf-blender-cvs mailing list