2008-10-20 23:21:01 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
Import ('env')
|
2009-09-21 03:16:26 +00:00
|
|
|
import os
|
2008-10-20 23:21:01 +00:00
|
|
|
|
2009-09-21 03:16:26 +00:00
|
|
|
if env['WITH_BF_FHS']:
|
|
|
|
BLENDERPATH = os.path.join(env['BF_INSTALLDIR'], 'share', 'blender', env['BF_VERSION'])
|
|
|
|
else:
|
|
|
|
BLENDERPATH = env['BF_INSTALLDIR']
|
2008-10-20 23:21:01 +00:00
|
|
|
|
|
|
|
from optparse import OptionParser
|
2009-04-19 21:26:29 +00:00
|
|
|
import 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
|
2009-04-19 22:02:48 +00:00
|
|
|
optvalues["quiet"] = 0
|
|
|
|
optvalues["include_source_code"] = 0
|
|
|
|
optvalues["inheritance"] = "included"
|
|
|
|
optvalues["show_private"] = 0
|
2009-09-21 03:16:26 +00:00
|
|
|
optvalues["target"] = os.path.join(BLENDERPATH, 'doc')
|
2009-04-19 21:26:29 +00:00
|
|
|
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)
|
|
|
|
(options, args) = optparser.parse_args([])
|
2009-04-19 22:02:48 +00:00
|
|
|
print "Writing Game Engine epydocs to \"%s\"" % optvalues["target"]
|
2009-04-19 21:26:29 +00:00
|
|
|
cli.write_html(docindex, options)
|
2008-10-20 23:21:01 +00:00
|
|
|
|