Py API Docs (GSoC): Third merging commit

* Added the alternative docs system with templating functionality
* Added aud to sdg.py
This commit is contained in:
Joerg Mueller 2010-08-16 12:22:19 +00:00
commit 78d96324ae

@ -144,7 +144,9 @@ def pyfunc2sphinx(ident, fw, identifier, py_func, is_class=True):
def py_descr2sphinx(ident, fw, descr, module_name, type_name, identifier):
if identifier.startswith("_"):
return
doc = descr.__doc__
if not doc:
doc = undocumented_message(module_name, type_name, identifier)
@ -381,6 +383,7 @@ def rna2sphinx(BASEPATH):
fw(" mathutils.rst\n\n")
fw(" blf.rst\n\n")
fw(" aud.rst\n\n")
# game engine
fw("===================\n")
@ -463,6 +466,10 @@ def rna2sphinx(BASEPATH):
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
@ -764,7 +771,8 @@ def rna2sphinx(BASEPATH):
file.close()
if __name__ == '__main__':
def main():
import bpy
if 'bpy' not in dir():
print("\nError, this script must run from inside blender2.5")
print(script_help_msg)
@ -834,3 +842,6 @@ if __name__ == '__main__':
import sys
sys.exit()
if __name__ == '__main__':
main()