예제 #1
0
파일: errors.py 프로젝트: pythonegrove/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.')
예제 #2
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.')
예제 #3
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.')
예제 #4
0
파일: delegated.py 프로젝트: sudhak/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.')
예제 #5
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.')
예제 #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.')
예제 #7
0
파일: push.py 프로젝트: arjunktr/docs-tools
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 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.')
예제 #9
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.')
예제 #10
0
파일: sphinx.py 프로젝트: sudhak/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.')
예제 #11
0
def release_jobs():
    conf = get_conf()
    data_file = os.path.join(conf.build.paths.builddata, 'releases') + '.yaml'

    # shim to allow backwards compatibility on older branches for a while.
    try:
        release_version = conf.version.release
    except AttributeError:
        from conf import release as release_version
    except IOError:
        print('[ERROR]: cannot determine current release.')
        exit(1)

    if not os.path.exists(data_file):
        return

    rel_data = ingest_yaml(os.path.join(conf.build.paths.builddata, 'releases') + '.yaml')

    for rel in rel_data['source-files']:
        target = os.path.join(conf.build.paths.projectroot,
                              conf.build.paths.includes,
                              'install-curl-release-{0}.rst'.format(rel))
        yield {
                'target': target,
                'dependency': [
                                os.path.join(conf.build.paths.projectroot, 'conf.py'),
                                os.path.join(conf.build.paths.projectroot,
                                             conf.build.paths.buildsystem,
                                             'rstcloth', 'releases.py')
                              ],
                'job': _generate_release_core,
                'args': [
                          rel,
                          target,
                          release_version,
                        ]
              }

    for rel in rel_data['subscription-build']:
        target = 'source/includes/install-curl-release-ent-{0}.rst'.format(rel['system'])

        yield {
                'target': target,
                'dependency': [
                                os.path.join(conf.build.paths.projectroot, 'conf.py'),
                                os.path.join(conf.build.paths.projectroot,
                                             conf.build.paths.buildsystem,
                                             'rstcloth', 'releases.py')
                              ],
                'job': _generate_release_ent,
                'args': [
                          rel,
                          target,
                          release_version
                        ]
              }
예제 #12
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])
예제 #13
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])
예제 #14
0
파일: htaccess.py 프로젝트: LeEnno/docs
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.' )
예제 #15
0
파일: htaccess.py 프로젝트: sudhak/docs
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.')
예제 #16
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.')
예제 #17
0
파일: conf.py 프로젝트: xyalan/docs
# This file is execfile()d with the current directory set to its containing dir.

import sys
import os.path

project_root = os.path.join(os.path.abspath(os.path.dirname(__file__)))

sys.path.append(project_root)

from bootstrap import buildsystem

sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), buildsystem, 'sphinxext')))
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), buildsystem, 'bin')))

from utils import ingest_yaml, ingest_yaml_list
meta = ingest_yaml(os.path.join(project_root, 'meta.yaml'))
pdfs = ingest_yaml_list(os.path.join(project_root, 'pdfs.yaml'))
intersphinx_libs = ingest_yaml_list(os.path.join(project_root, 'intersphinx.yaml'))

# -- General configuration ----------------------------------------------------

needs_sphinx = '1.0'

extensions = [
    'sphinx.ext.intersphinx',
    'sphinx.ext.extlinks',
    'sphinx.ext.todo',
    'mongodb',
    'directives',
]
예제 #18
0
파일: delegated.py 프로젝트: LeEnno/docs
    if wait is True:
        puts('[{0}]: building now, waiting for the build to finish.'.format(b))

    cmd = ['make', target]
    with open(logfile, 'a') as f:
        f.write('[{0}]: --- logging {1} -- {1} ---\n'.format(b, branch, ' '.join(cmd)))

    log_command_output(cmd, env.repo.path, logfile, wait)

    if wait is False:
        puts('[{0}]: build in progress.'.format(b))


env.logfile = 'build/docs-staging-delegated.log'
env.builders = ['publish', 'push', 'stage', 'json-output']
env.builders.extend(ingest_yaml(os.path.join(os.path.dirname(__file__), '../bin/makecloth/data/sphinx.yaml'))['builders'])
env.branch = get_branch()
env.wait = False
env.repo = GitRepoManager()
env.repo.b = b

@task
def wait():
    env.wait = True

@task
def log(logfile):
    env.logfile = logfile

@task
def branch(branch):
예제 #19
0
import os.path

sys.path.append(os.path.abspath(os.path.dirname(__file__)))

from bootstrap import buildsystem

sys.path.append(
    os.path.abspath(
        os.path.join(os.path.dirname(__file__), buildsystem, 'sphinxext')))
sys.path.append(
    os.path.abspath(os.path.join(os.path.dirname(__file__), buildsystem,
                                 'bin')))

from utils import ingest_yaml, ingest_yaml_list

meta = ingest_yaml('meta.yaml')
pdfs = ingest_yaml_list('pdfs.yaml')
intersphinx_libs = ingest_yaml_list('intersphinx.yaml')

# -- General configuration ----------------------------------------------------

needs_sphinx = '1.0'

extensions = [
    'sphinx.ext.intersphinx',
    'sphinx.ext.extlinks',
    'sphinx.ext.todo',
    'mongodb',
    'directives',
]
예제 #20
0
def get_sphinx_builders(conf=None):
    if conf is None:
        conf = get_conf()

    path = os.path.join(conf.build.paths.projectroot, conf.build.paths.builddata, 'sphinx.yaml')
    return ingest_yaml(path)['builders']
예제 #21
0
#
# This file is execfile()d with the current directory set to its containing dir.

import sys
import os.path

sys.path.append(os.path.abspath(os.path.dirname(__file__)))

from bootstrap import buildsystem

sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), buildsystem, 'sphinxext')))
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), buildsystem, 'bin')))

from utils import ingest_yaml, ingest_yaml_list

meta = ingest_yaml('meta.yaml')
pdfs = ingest_yaml_list('pdfs.yaml')
intersphinx_libs = ingest_yaml_list('intersphinx.yaml')

# -- General configuration ----------------------------------------------------

needs_sphinx = '1.0'

extensions = [
    'sphinx.ext.extlinks',
    'sphinx.ext.todo',
    'mongodb',
    'directives',
    'intermanual'
]
예제 #22
0
# -*- coding: utf-8 -*-
#
# MongoDB documentation build configuration file, created by
# sphinx-quickstart on Mon Oct  3 09:58:40 2011.
#
# This file is execfile()d with the current directory set to its containing dir.

import sys
import os.path
import yaml

sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__),
                                             'bin')))
import utils

meta = utils.ingest_yaml('meta.yaml')
pdfs = utils.ingest_yaml_list('pdfs.yaml')

# -- General configuration ----------------------------------------------------

needs_sphinx = '1.0'

extensions = [
    'sphinx.ext.intersphinx',
    'sphinx.ext.extlinks',
    'sphinx.ext.todo',
    'mongodb_domain',
    'additional_directives',
]

templates_path = ['.templates']
예제 #23
0
파일: conf.py 프로젝트: Bernadskaya/docs
# -*- coding: utf-8 -*-
#
# MongoDB documentation build configuration file, created by
# sphinx-quickstart on Mon Oct  3 09:58:40 2011.
#
# This file is execfile()d with the current directory set to its containing dir.

import sys
import os.path
import yaml

sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'bin')))
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'bin/sphinxext')))
import utils

meta = utils.ingest_yaml('meta.yaml')
pdfs = utils.ingest_yaml_list('pdfs.yaml')

# -- General configuration ----------------------------------------------------

needs_sphinx = '1.0'

extensions = [
    'sphinx.ext.intersphinx',
    'sphinx.ext.extlinks',
    'sphinx.ext.todo',
    'mongodb',
    'directives',
]

templates_path = ['.templates']
예제 #24
0
파일: conf.py 프로젝트: reqshark/docs
#
# This file is execfile()d with the current directory set to its containing dir.

import sys
import os.path

sys.path.append(os.path.abspath(os.path.dirname(__file__)))

from bootstrap import buildsystem

sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), buildsystem, "sphinxext")))
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), buildsystem, "bin")))

from utils import ingest_yaml, ingest_yaml_list

meta = ingest_yaml("meta.yaml")
pdfs = ingest_yaml_list("pdfs.yaml")

# -- General configuration ----------------------------------------------------

needs_sphinx = "1.0"

extensions = ["sphinx.ext.intersphinx", "sphinx.ext.extlinks", "sphinx.ext.todo", "mongodb", "directives"]

templates_path = [".templates"]
exclude_patterns = []

source_suffix = ".txt"

master_doc = "contents"
language = "en"
예제 #25
0
    if wait is True:
        puts('[{0}]: building now, waiting for the build to finish.'.format(b))

    cmd = ['make', target]
    with open(logfile, 'a') as f:
        f.write('[{0}]: --- logging {1} -- {1} ---\n'.format(b, branch, ' '.join(cmd)))

    log_command_output(cmd, env.repo.path, logfile, wait)

    if wait is False:
        puts('[{0}]: build in progress.'.format(b))


env.logfile = 'build/docs-staging-delegated.log'
env.builders = ['publish', 'push', 'stage', 'json-output']
env.builders.extend(ingest_yaml(os.path.join(os.path.dirname(__file__), '../bin/makecloth/sphinx.yaml'))['builders'])
env.branch = get_branch()
env.wait = False
env.repo = GitRepoManager()
env.repo.b = b

@task
def wait():
    env.wait = True

@task
def log(logfile):
    env.logfile = logfile

@task
def branch(branch):