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.')
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.')
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.')
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.')
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.')
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.')
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 ] }
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])
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.' )
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.')
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.')
# 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', ]
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):
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', ]
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']
# # 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' ]
# -*- 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']
# -*- 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']
# # 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"
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):