コード例 #1
0
ファイル: dependencies.py プロジェクト: nvhoan/docs
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.')
コード例 #2
0
ファイル: errors.py プロジェクト: 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.')
コード例 #3
0
ファイル: migrations.py プロジェクト: AXNY/docs
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.')
コード例 #4
0
ファイル: links.py プロジェクト: danilobellini/docs-mongodb
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.')
コード例 #5
0
ファイル: errors.py プロジェクト: 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.')
コード例 #6
0
ファイル: sphinx-migration.py プロジェクト: trmmy/docs
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.')
コード例 #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.')
コード例 #8
0
ファイル: delegated.py プロジェクト: trmmy/docs
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.')
コード例 #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.')
コード例 #10
0
ファイル: htaccess.py プロジェクト: AXNY/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()
コード例 #11
0
ファイル: texinfo.py プロジェクト: trmmy/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])
コード例 #12
0
ファイル: texinfo.py プロジェクト: 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])
コード例 #13
0
ファイル: htaccess.py プロジェクト: trmmy/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()
コード例 #14
0
ファイル: sphinx.py プロジェクト: SwathiMystery/docs
def get_config():
    return utils.ingest_yaml(utils.get_conf_file(__file__))
コード例 #15
0
ファイル: sphinx.py プロジェクト: trmmy/docs
def get_config():
    return utils.ingest_yaml(utils.get_conf_file(__file__))