예제 #1
0
# use apidoc to generate developer doc
import os
from os import path
from sphinx.apidoc import create_modules_toc_file, recurse_tree


class Opt(object):
    pass


rootpath = path.abspath(path.join(project_root, "src"))
opts = Opt()
opts.modulefirst = None
opts.separatemodules = None
opts.noheadings = None
opts.destdir = path.abspath(path.join(project_root, "doc", "_dvlpt"))
opts.suffix = source_suffix[1:]
opts.dryrun = None
opts.force = None
opts.header = 'src'
opts.maxdepth = 4
opts.includeprivate = False

if not path.isdir(opts.destdir):
    os.makedirs(opts.destdir)

modules = recurse_tree(rootpath, [], opts)
create_modules_toc_file(modules, opts)

# #}
예제 #2
0
파일: conf.py 프로젝트: VirtualPlants/dag
# use apidoc to generate developer doc
import os
from os import path
from sphinx.apidoc import create_modules_toc_file, recurse_tree


class Opt(object):
    pass


rootpath = path.abspath(path.join(project_root, "src"))
opts = Opt()
opts.modulefirst = None
opts.separatemodules = None
opts.noheadings = None
opts.destdir = path.abspath(path.join(project_root, "doc", "_dvlpt"))
opts.suffix = source_suffix
opts.dryrun = None
opts.force = None
opts.header = 'src'
opts.maxdepth = 4

if not path.isdir(opts.destdir):
    os.makedirs(opts.destdir)

modules = recurse_tree(rootpath, [], opts)
create_modules_toc_file(modules, opts)

# #}