00001 # -*- coding: utf-8 -*- 00002 # 00003 # PyMongo documentation build configuration file 00004 # 00005 # This file is execfile()d with the current directory set to its containing dir. 00006 00007 import sys, os 00008 sys.path[0:0] = [os.path.abspath('..')] 00009 00010 import pymongo 00011 00012 # -- General configuration ----------------------------------------------------- 00013 00014 # Add any Sphinx extension module names here, as strings. They can be extensions 00015 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. 00016 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.coverage', 00017 'sphinx.ext.todo', 'doc.mongo_extensions'] 00018 00019 # Add any paths that contain templates here, relative to this directory. 00020 templates_path = ['_templates'] 00021 00022 # The suffix of source filenames. 00023 source_suffix = '.rst' 00024 00025 # The master toctree document. 00026 master_doc = 'index' 00027 00028 # General information about the project. 00029 project = u'PyMongo' 00030 copyright = u'2008 - 2011, 10gen, Inc.' 00031 00032 # The version info for the project you're documenting, acts as replacement for 00033 # |version| and |release|, also used in various other places throughout the 00034 # built documents. 00035 # 00036 # The short X.Y version. 00037 version = pymongo.version 00038 # The full version, including alpha/beta/rc tags. 00039 release = pymongo.version 00040 00041 # List of documents that shouldn't be included in the build. 00042 unused_docs = [] 00043 00044 # List of directories, relative to source directory, that shouldn't be searched 00045 # for source files. 00046 exclude_trees = ['_build'] 00047 00048 # The reST default role (used for this markup: `text`) to use for all documents. 00049 #default_role = None 00050 00051 # If true, sectionauthor and moduleauthor directives will be shown in the 00052 # output. They are ignored by default. 00053 #show_authors = False 00054 00055 # If true, the current module name will be prepended to all description 00056 # unit titles (such as .. function::). 00057 add_module_names = True 00058 00059 # The name of the Pygments (syntax highlighting) style to use. 00060 pygments_style = 'sphinx' 00061 00062 # A list of ignored prefixes for module index sorting. 00063 #modindex_common_prefix = [] 00064 00065 # -- Options for extensions ---------------------------------------------------- 00066 autoclass_content = 'init' 00067 00068 doctest_path = os.path.abspath('..') 00069 00070 doctest_test_doctest_blocks = False 00071 00072 doctest_global_setup = """ 00073 from pymongo.connection import Connection 00074 connection = Connection() 00075 connection.drop_database("doctest_test") 00076 db = connection.doctest_test 00077 """ 00078 00079 # -- Options for HTML output --------------------------------------------------- 00080 00081 # The theme to use for HTML and HTML Help pages. Major themes that come with 00082 # Sphinx are currently 'default' and 'sphinxdoc'. 00083 html_theme = 'default' 00084 00085 # The name for this set of Sphinx documents. If None, it defaults to 00086 # "<project> v<release> documentation". 00087 #html_title = None 00088 00089 # A shorter title for the navigation bar. Default is the same as html_title. 00090 #html_short_title = None 00091 00092 # The name of an image file (relative to this directory) to place at the top 00093 # of the sidebar. 00094 #html_logo = None 00095 00096 # The name of an image file (within the static path) to use as favicon of the 00097 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 00098 # pixels large. 00099 #html_favicon = None 00100 00101 # Add any paths that contain custom static files (such as style sheets) here, 00102 # relative to this directory. They are copied after the builtin static files, 00103 # so a file named "default.css" will overwrite the builtin "default.css". 00104 html_static_path = ['_static'] 00105 00106 # Custom sidebar templates, maps document names to template names. 00107 #html_sidebars = {} 00108 00109 # Additional templates that should be rendered to pages, maps page names to 00110 # template names. 00111 #html_additional_pages = {} 00112 00113 # If true, links to the reST sources are added to the pages. 00114 #html_show_sourcelink = True 00115 00116 # If true, an OpenSearch description file will be output, and all pages will 00117 # contain a <link> tag referring to it. The value of this option must be the 00118 # base URL from which the finished HTML is served. 00119 #html_use_opensearch = '' 00120 00121 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml"). 00122 #html_file_suffix = '' 00123 00124 # Output file base name for HTML help builder. 00125 htmlhelp_basename = 'PyMongo' + release.replace('.', '_') 00126 00127 00128 # -- Options for LaTeX output -------------------------------------------------- 00129 00130 # The paper size ('letter' or 'a4'). 00131 #latex_paper_size = 'letter' 00132 00133 # The font size ('10pt', '11pt' or '12pt'). 00134 #latex_font_size = '10pt' 00135 00136 # Grouping the document tree into LaTeX files. List of tuples 00137 # (source start file, target name, title, author, documentclass [howto/manual]). 00138 latex_documents = [ 00139 ('index', 'PyMongo.tex', u'PyMongo Documentation', 00140 u'Michael Dirolf', 'manual'), 00141 ] 00142 00143 # The name of an image file (relative to this directory) to place at the top of 00144 # the title page. 00145 #latex_logo = None 00146 00147 # For "manual" documents, if this is true, then toplevel headings are parts, 00148 # not chapters. 00149 #latex_use_parts = False 00150 00151 # Additional stuff for the LaTeX preamble. 00152 #latex_preamble = '' 00153 00154 # Documents to append as an appendix to all manuals. 00155 #latex_appendices = [] 00156 00157 # If false, no module index is generated. 00158 #latex_use_modindex = True