Beispiel #1
0
Datei: meta.py Projekt: ukd1/docs
def generate_meta():
    m.section_break('branch/release meta', block='rel')
    m.var('manual-branch', mongo_meta.MANUAL_BRANCH, block='rel')
    m.var('current-branch', str(mongo_meta.get_branch()), block='rel')
    m.var('last-commit', str(mongo_meta.get_commit()), block='rel')
    m.var('current-if-not-manual', str(mongo_meta.get_manual_path()), block='rel')

    m.section_break('file system paths', block='paths')
    m.var('public-output', '$(output)/public', block='paths')
    m.var('branch-output', '$(output)/$(current-branch)', block='paths')
    m.var('branch-source', '$(branch-output)/branch-source')
    m.var('public-branch-output', '$(public-output)/$(current-branch)', block='paths')
Beispiel #2
0
def generate_meta():
    m.section_break('branch/release meta', block='rel')
    m.var('manual-branch', docs_meta.MANUAL_BRANCH, block='rel')
    m.var('current-branch', str(docs_meta.get_branch()), block='rel')
    m.var('last-commit', str(docs_meta.get_commit()), block='rel')
    m.var('current-if-not-manual', str(docs_meta.get_manual_path()), block='rel')

    paths = docs_meta.render_paths(True)

    m.section_break('file system paths', block='paths')
    m.var('output', paths['output'], block='paths')
    m.var('public-output', paths['public'], block='paths')
    m.var('branch-output', paths['branch-output'], block='paths')
    m.var('rst-include', paths['includes'], block='paths')
    m.var('branch-source', paths['branch-source'], block='paths')
    m.var('public-branch-output', paths['branch-staging'], block='paths')
Beispiel #3
0
def generate_meta():
    m.section_break('branch/release meta', block='rel')
    m.var('manual-branch', docs_meta.MANUAL_BRANCH, block='rel')
    m.var('current-branch', str(docs_meta.get_branch()), block='rel')
    m.var('last-commit', str(docs_meta.get_commit()), block='rel')
    m.var('current-if-not-manual',
          str(docs_meta.get_manual_path()),
          block='rel')

    paths = docs_meta.render_paths(True)

    m.section_break('file system paths', block='paths')
    m.var('output', paths['output'], block='paths')
    m.var('public-output', paths['public'], block='paths')
    m.var('branch-output', paths['branch-output'], block='paths')
    m.var('rst-include', paths['includes'], block='paths')
    m.var('branch-source', paths['branch-source'], block='paths')
    m.var('public-branch-output', paths['branch-staging'], block='paths')
Beispiel #4
0
def generate_delegated_interface(builders):
    branches = mongo_meta.PUBLISHED_BRANCHES
    current_branch = mongo_meta.get_branch()

    if current_branch not in branches:
        branches.append(current_branch)

    builders.append('publish')
    builders.append('push')
    builders.append('stage')

    targets = []

    for branch in branches:
        m.section_break(branch, block=branch)
        m.newline(block=branch)
        for target in builders:

            for sync in [('foreground', '--wait'), ('background', '')]:

                build_target = 'delegated-%s-%s-%s' % (branch, target, sync[0])
                targets.append(build_target)

                m.target(target=build_target, block=branch)

                m.job(job=(
                    '$(PYTHONBIN) bin/delegated-build --branch %s --target %s %s'
                    % (branch, target, sync[1])),
                      block=branch)

                if sync[0] == 'background':
                    m.job(job=utils.build_platform_notification(
                        'build complete', ' '.join([branch, target])),
                          ignore=True,
                          block=branch)

            m.newline(block=branch)

    m.section_break('meta section', block='meta')
    m.newline()
    m.target('.PHONY', ' '.join(targets), block='meta')
Beispiel #5
0
def generate_delegated_interface():
    branches = mongo_meta.PUBLISHED_BRANCHES
    current_branch = mongo_meta.get_branch()

    if current_branch not in branches:
        branches.append(current_branch)

    builders = sphinx
    builders.append('publish')
    builders.append('push')
    builders.append('stage')

    targets = []

    for branch in branches:
        m.section_break(branch, block=branch)
        m.newline(block=branch)
        for target in builders:

            for sync in [ ('foreground', '--wait'), ('background', '') ]:

                build_target = 'delegated-%s-%s-%s' % ( branch, target, sync[0])
                targets.append(build_target)

                m.target(target=build_target,  block=branch)

                m.job(job=('bin/delegated-build --branch %s --target %s %s'
                           % ( branch, target, sync[1])),
                      block=branch)

                if sync[0] == 'background':
                    m.job(job=build_platform_notification('build complete', ' '.join([branch, target])), 
                          ignore=True, block=branch)

            m.newline(block=branch)

    m.section_break('meta section', block='meta')
    m.newline()
    m.target('.PHONY', ' '.join(targets), block='meta')
Beispiel #6
0
#
# 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
import datetime

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

import mongodb_docs_meta

meta = {
    'branch': mongodb_docs_meta.get_branch(),
    'commit': mongodb_docs_meta.get_commit(),
    'manual_path': mongodb_docs_meta.get_manual_path(),
    'date': str(datetime.date.today().year),
}

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

needs_sphinx = '1.0'

extensions = [
    'sphinx.ext.intersphinx',
    'sphinx.ext.extlinks',
    'sphinx.ext.todo',
    'mongodb_domain',
    'additional_directives',
Beispiel #7
0
#
# 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, os
import datetime

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

import mongodb_docs_meta

meta = {
    'branch': mongodb_docs_meta.get_branch(),
    'commit': mongodb_docs_meta.get_commit(),
    'manual_path': mongodb_docs_meta.get_manual_path(),
    'date': str(datetime.date.today().year),
}

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

needs_sphinx = '1.0'
extensions = [
    "sphinx.ext.intersphinx", "sphinx.ext.extlinks", "mongodb_domain",
    "additional_directives", "aggregation_domain"
]
composite_pages = []

templates_path = ['.templates']
Beispiel #8
0
#
# 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
import datetime

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

import mongodb_docs_meta

meta = {
    "branch": mongodb_docs_meta.get_branch(),
    "commit": mongodb_docs_meta.get_commit(),
    "manual_path": mongodb_docs_meta.get_manual_path(),
    "date": str(datetime.date.today().year),
    "version_selector": mongodb_docs_meta.get_versions(),
    "stable": mongodb_docs_meta.STABLE_RELEASE,
}

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

needs_sphinx = "1.0"

extensions = [
    "sphinx.ext.intersphinx",
    "sphinx.ext.extlinks",
    "sphinx.ext.todo",