def do_format(args):
    global patcher
    global doc_repo

    if not doc_repo:
        doc_repo = DocRepo()
    doc_repo.setup(args)
    if not patcher:
        patcher = Patcher(doc_repo.git_repo_path)

    modpath = os.path.dirname(__file__)
    output = os.path.join(modpath, '..', 'static', 'html')
    doc_repo.output = output
    doc_repo.format()
Example #2
0
def do_format(args):
    global patcher
    global doc_repo

    if not doc_repo:
        doc_repo = DocRepo()
    doc_repo.setup(args)
    if not patcher:
        patcher = Patcher(doc_repo.git_repo_path)

    modpath = os.path.dirname(__file__)
    output = os.path.join(modpath, '..', 'static', 'html')
    doc_repo.output = output
    doc_repo.format()