forked from bartvdbraak/blender
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:
commit
78d96324ae
@ -144,6 +144,8 @@ def pyfunc2sphinx(ident, fw, identifier, py_func, is_class=True):
|
|||||||
|
|
||||||
|
|
||||||
def py_descr2sphinx(ident, fw, descr, module_name, type_name, identifier):
|
def py_descr2sphinx(ident, fw, descr, module_name, type_name, identifier):
|
||||||
|
if identifier.startswith("_"):
|
||||||
|
return
|
||||||
|
|
||||||
doc = descr.__doc__
|
doc = descr.__doc__
|
||||||
if not doc:
|
if not doc:
|
||||||
@ -381,6 +383,7 @@ def rna2sphinx(BASEPATH):
|
|||||||
|
|
||||||
fw(" mathutils.rst\n\n")
|
fw(" mathutils.rst\n\n")
|
||||||
fw(" blf.rst\n\n")
|
fw(" blf.rst\n\n")
|
||||||
|
fw(" aud.rst\n\n")
|
||||||
|
|
||||||
# game engine
|
# game engine
|
||||||
fw("===================\n")
|
fw("===================\n")
|
||||||
@ -464,6 +467,10 @@ def rna2sphinx(BASEPATH):
|
|||||||
pymodule2sphinx(BASEPATH, "blf", module, "Font Drawing (blf)")
|
pymodule2sphinx(BASEPATH, "blf", module, "Font Drawing (blf)")
|
||||||
del module
|
del module
|
||||||
|
|
||||||
|
import aud as module
|
||||||
|
pymodule2sphinx(BASEPATH, "aud", module, "Audio System (aud)")
|
||||||
|
del module
|
||||||
|
|
||||||
# game engine
|
# game engine
|
||||||
import shutil
|
import shutil
|
||||||
# copy2 keeps time/date stamps
|
# copy2 keeps time/date stamps
|
||||||
@ -764,7 +771,8 @@ def rna2sphinx(BASEPATH):
|
|||||||
|
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def main():
|
||||||
|
import bpy
|
||||||
if 'bpy' not in dir():
|
if 'bpy' not in dir():
|
||||||
print("\nError, this script must run from inside blender2.5")
|
print("\nError, this script must run from inside blender2.5")
|
||||||
print(script_help_msg)
|
print(script_help_msg)
|
||||||
@ -834,3 +842,6 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user