def main(): content = '.. |commit| replace:: ``' + get_commit() + '``' + '\n' f = open('source/includes/hash.rst', 'w') f.write(content) f.close()
def main(): content = '.. |commit| replace:: ``' + get_commit() + '``' + '\n' f = open('source/includes/hash.rst', 'w') f.write(content) f.close()
def main(): content = ".. |commit| replace:: ``" + get_commit() + "``" + "\n" f = open("source/includes/hash.rst", "w") f.write(content) f.close()
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')
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')
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')
# 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',
# 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']
# 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",
def main(): content = '.. |commit| replace:: ``' + get_commit() + '``' + '\n' with open('source/includes/hash.rst', 'w') as f: f.write(content)