示例#1
0
文件: update_hash.py 项目: baslr/docs
def main():

    content = '.. |commit| replace:: ``' + get_commit() + '``' + '\n'

    f = open('source/includes/hash.rst', 'w')
    f.write(content)
    f.close()
示例#2
0
def main():

    content = '.. |commit| replace:: ``' + get_commit() + '``' + '\n'

    f = open('source/includes/hash.rst', 'w')
    f.write(content)
    f.close()
示例#3
0
def main():

    content = ".. |commit| replace:: ``" + get_commit() + "``" + "\n"

    f = open("source/includes/hash.rst", "w")
    f.write(content)
    f.close()
示例#4
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')
示例#5
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')
示例#6
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')
示例#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
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',
示例#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, 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']
示例#9
0
文件: conf.py 项目: patrickod/docs
# 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",
    "mongodb_domain",
示例#10
0
def main():
    content = '.. |commit| replace:: ``' + get_commit() + '``' + '\n'

    with open('source/includes/hash.rst', 'w') as f:
        f.write(content)