2008-10-20 23:21:01 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
Import ('env')
|
|
|
|
|
|
|
|
|
|
|
|
from optparse import OptionParser
|
|
|
|
try:
|
|
|
|
import epydoc
|
|
|
|
except ImportError:
|
|
|
|
print "No epydoc install detected, Python API Docs will not be generated "
|
|
|
|
if epydoc:
|
|
|
|
from epydoc.docbuilder import build_doc_index
|
|
|
|
from epydoc import cli
|
|
|
|
names = env.Glob("source/gameengine/PyDoc/*.py")
|
|
|
|
docindex = build_doc_index(names)
|
|
|
|
optvalues = cli.OPTION_DEFAULTS
|
|
|
|
optvalues["verbose"] = 1
|
|
|
|
optvalues["target"] = env["BF_DOCDIR"]+"/BGE_API/"
|
|
|
|
optvalues["url"] = "http://www.blender.org"
|
|
|
|
optvalues["top"] = "Game Engine API"
|
|
|
|
optvalues["name"] = "Blender"
|
|
|
|
optvalues["noprivate"] = 1
|
|
|
|
optvalues["noframes"] = 1
|
|
|
|
optvalues["names"] = names
|
|
|
|
optparser = OptionParser()
|
|
|
|
optparser.set_defaults(**optvalues)
|
2008-10-30 18:56:20 +00:00
|
|
|
(options, args) = optparser.parse_args([])
|
2008-10-20 23:21:01 +00:00
|
|
|
cli.write_html(docindex, options)
|
|
|
|
|