示例#1
0
文件: links.py 项目: Bernadskaya/docs
def main():
    conf_file = utils.get_conf_file(__file__)
    make_all_links(utils.ingest_yaml(conf_file))

    m.write(sys.argv[1])

    print('[meta-build]: built "' + sys.argv[1] + '" to specify symlink builders.')
示例#2
0
def main():
    conf_file = utils.get_conf_file(__file__)
    generate_delegated_interface(utils.ingest_yaml(conf_file))

    m.write(sys.argv[1])

    print('[meta-build]: built "' + sys.argv[1] + '" for a delegated UI build system.')
示例#3
0
def main():
    conf_file = utils.get_conf_file(__file__)
    build_all_sphinx_migrations(utils.ingest_yaml(conf_file))

    m.write(sys.argv[1])

    print('[meta-build]: built "' + sys.argv[1] + '" to specify sphinx migrations.')
示例#4
0
def main():
    conf_file = utils.get_conf_file(__file__)
    build_all_error_pages(utils.ingest_yaml(conf_file))

    m.write(sys.argv[1])

    print('[meta-build]: built "' + sys.argv[1] + '" to specify error pages.')
示例#5
0
文件: sphinx.py 项目: asya999/docs
def main():
    config = utils.ingest_yaml(utils.get_conf_file(__file__))

    make_all_sphinx(config)

    m.write(sys.argv[1])

    print('[meta-build]: built "' + sys.argv[1] + '" to specify sphinx builders.')
示例#6
0
def main():
    conf_file = utils.get_conf_file(__file__)
    build_all_pdfs(utils.ingest_yaml_list(conf_file))

    m.target("pdfs", utils.expand_tree(os.path.join(paths["branch-output"], "latex"), "tex"))

    m.write(sys.argv[1])
    print('[meta-build]: built "' + sys.argv[1] + '" to specify pdf builders.')
示例#7
0
def main():
    push_conf = ingest_yaml(get_conf_file(__file__))

    generate_new_deploy_system(push_conf)

    m.write(sys.argv[1])

    print('[meta-build]: built "' + sys.argv[1] + '" to specify dependencies  files.')
示例#8
0
def user_input():
    parser = argparse.ArgumentParser('.htaccess generator.')
    parser.add_argument('filename', nargs='?', default='.htaccess',
                        help='the name of the file to generate. Defaults to ".htaccess"')
    parser.add_argument('--match', '-m', action='store_true', default=False,
                        help='generate RedirectMatch if specified, rather than the default Redirect rules.')
    parser.add_argument('--data', '-d', action='store', default=utils.get_conf_file(__file__),
                        help='the .yaml file containing the redirect information.')
    return parser.parse_args()
示例#9
0
def main():
    m.section_break('texinfo manual builders for mongodb content',
                    block='header')

    for info in utils.ingest_yaml(utils.get_conf_file(__file__)):
        build_texinfo_manual(info)

    m.comment('targets for integration')
    m.target(target='.PHONY', dependency='manual-info', block='footer')
    m.target(target='manual-info', dependency='$(INFO_OUTPUT)', block='footer')

    m.write(sys.argv[1])
示例#10
0
def main():
    m.section_break('texinfo manual builders for mongodb content', block='header')

    for info in utils.ingest_yaml(utils.get_conf_file(__file__)):
        build_texinfo_manual(info)

    m.comment('targets for integration')
    m.target(target='.PHONY',
             dependency='manual-info',
             block='footer')
    m.target(target='manual-info',
             dependency='$(INFO_OUTPUT)',
             block='footer')

    m.write(sys.argv[1])
示例#11
0
文件: htaccess.py 项目: sudhak/docs
def user_input():
    parser = argparse.ArgumentParser('.htaccess generator.')
    parser.add_argument(
        'filename',
        nargs='?',
        default='.htaccess',
        help='the name of the file to generate. Defaults to ".htaccess"')
    parser.add_argument(
        '--match',
        '-m',
        action='store_true',
        default=False,
        help=
        'generate RedirectMatch if specified, rather than the default Redirect rules.'
    )
    parser.add_argument(
        '--data',
        '-d',
        action='store',
        default=utils.get_conf_file(__file__),
        help='the .yaml file containing the redirect information.')
    return parser.parse_args()
示例#12
0
def main():
    conf_file = utils.get_conf_file(__file__)
    build_all_pdfs(utils.ingest_yaml(conf_file))

    m.write(sys.argv[1])
    print('[meta-build]: built "' + sys.argv[1] + '" to specify pdf builders.')
示例#13
0
def main():
    conf_file = get_conf_file(__file__)
    generate_integration_targets(ingest_yaml(conf_file))

    m.write(sys.argv[1])
    print('[meta-build]: build "' + sys.argv[1] + '" to specify integration targets.')