Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SConscript « doc « api2_2x « python « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eca5d9a615cc2eef011398a9e66a40d3ca5d3341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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/blender/python/api2_2x/doc/[A-Z]*.py")
    docindex = build_doc_index(names)
    optvalues = cli.OPTION_DEFAULTS
    optvalues["verbose"] = 1
    optvalues["target"] = env["BF_DOCDIR"]+"/BPY_API/"
    optvalues["url"] = "http://www.blender.org"
    optvalues["top"] = "API_intro"
    optvalues["name"] = "Blender"
    optvalues["noprivate"] = 1
    optvalues["noframes"] = 1
    optvalues["names"] = names
    optparser = OptionParser()
    optparser.set_defaults(**optvalues)
    (options, args) = optparser.parse_args([])
    cli.write_html(docindex, options)