コード例 #1
0
ファイル: meta.py プロジェクト: 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')
コード例 #2
0
ファイル: meta.py プロジェクト: danilobellini/docs-mongodb
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')
コード例 #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')
コード例 #4
0
ファイル: conf.py プロジェクト: ablohowiak-fanhattan/docs
# 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',
    'aggregation_domain',
]
コード例 #5
0
ファイル: conf.py プロジェクト: gavinwilliams/docs-ecosystem
# 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']

source_suffix = '.txt'