Exemplo n.º 1
0
def main():
    conf_file = utils.get_conf_file(sys.argv[2])
    generate_dependency_rules(utils.ingest_yaml(conf_file))

    m.write(sys.argv[1])

    print('[meta-build]: built "' + sys.argv[1] + '" to specify dependencies on included files.')
Exemplo n.º 2
0
Arquivo: errors.py Projeto: trmmy/docs
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.')
Exemplo n.º 3
0
def main():
    conf_file = utils.get_conf_file(__file__)
    build_all_migrations(utils.ingest_yaml(conf_file))

    m.write(sys.argv[1])

    print('[meta-build]: built "' + sys.argv[1] + '" to specify production migrations.')
Exemplo n.º 4
0
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.')
Exemplo n.º 5
0
Arquivo: errors.py Projeto: AXNY/docs
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.')
Exemplo n.º 6
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.')
Exemplo n.º 7
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.')
Exemplo n.º 8
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.')
Exemplo n.º 9
0
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.')
Exemplo n.º 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])
Exemplo n.º 11
0
Arquivo: texinfo.py Projeto: AXNY/docs
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])
Exemplo n.º 12
0
def main():
    ui = user_input()

    lines = []

    for doc in utils.ingest_yaml(ui.data):
        if doc['type'] == 'redirect':
            lines.append(generate_redirects(process_redirect(doc), match=ui.match))
        if doc['type'] == 'redirect-draft':
            print(generate_redirects(process_redirect(doc), match=ui.match))

    if lines:
        with open(ui.filename, 'w') as f:
            for line in lines:
                f.write(line)

        print('[redirect]: regenerated ' + ui.filename + ' file.' )
Exemplo n.º 13
0
def main():
    ui = user_input()

    lines = []

    for doc in utils.ingest_yaml(ui.data):
        if doc['type'] == 'redirect':
            lines.append(
                generate_redirects(process_redirect(doc), match=ui.match))
        if doc['type'] == 'redirect-draft':
            print(generate_redirects(process_redirect(doc), match=ui.match))

    if lines:
        with open(ui.filename, 'w') as f:
            for line in lines:
                f.write(line)

        print('[redirect]: regenerated ' + ui.filename + ' file.')
Exemplo n.º 14
0
def get_config():
    return utils.ingest_yaml(utils.get_conf_file(__file__))
Exemplo n.º 15
0
Arquivo: sphinx.py Projeto: trmmy/docs
def get_config():
    return utils.ingest_yaml(utils.get_conf_file(__file__))