conf.py (8621B)
1 # 2 # MozBase documentation build configuration file, created by 3 # sphinx-quickstart on Mon Oct 22 14:02:17 2012. 4 # 5 # This file is execfile()d with the current directory set to its containing dir. 6 # 7 # Note that not all possible configuration values are present in this 8 # autogenerated file. 9 # 10 # All configuration values have a default; values that are commented out 11 # serve to show the default. 12 13 import os 14 import sys 15 16 # If extensions (or modules to document with autodoc) are in another directory, 17 # add these directories to sys.path here. If the directory is relative to the 18 # documentation root, use os.path.abspath to make it absolute, like shown here. 19 here = os.path.dirname(os.path.abspath(__file__)) 20 parent = os.path.dirname(here) 21 for item in os.listdir(parent): 22 path = os.path.join(parent, item) 23 if (not os.path.isdir(path)) or ( 24 not os.path.exists(os.path.join(path, "setup.py")) 25 ): 26 continue 27 sys.path.insert(0, path) 28 29 # -- General configuration ----------------------------------------------------- 30 31 # If your documentation needs a minimal Sphinx version, state it here. 32 # needs_sphinx = '1.0' 33 34 # Add any Sphinx extension module names here, as strings. They can be extensions 35 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. 36 extensions = [ 37 "sphinx.ext.autodoc", 38 "sphinx.ext.doctest", 39 "sphinx.ext.todo", 40 "sphinx.ext.viewcode", 41 ] 42 43 # Add any paths that contain templates here, relative to this directory. 44 templates_path = ["_templates"] 45 46 # The suffix of source filenames. 47 source_suffix = ".rst" 48 49 # The encoding of source files. 50 # source_encoding = 'utf-8-sig' 51 52 # The master toctree document. 53 master_doc = "index" 54 55 # General information about the project. 56 project = "MozBase" 57 copyright = "2012, Mozilla Automation and Tools team" 58 59 # The version info for the project you're documenting, acts as replacement for 60 # |version| and |release|, also used in various other places throughout the 61 # built documents. 62 # 63 # The short X.Y version. 64 version = "1" 65 # The full version, including alpha/beta/rc tags. 66 release = "1" 67 68 # The language for content autogenerated by Sphinx. Refer to documentation 69 # for a list of supported languages. 70 # language = None 71 72 # There are two options for replacing |today|: either, you set today to some 73 # non-false value, then it is used: 74 # today = '' 75 # Else, today_fmt is used as the format for a strftime call. 76 # today_fmt = '%B %d, %Y' 77 78 # List of patterns, relative to source directory, that match files and 79 # directories to ignore when looking for source files. 80 exclude_patterns = ["_build"] 81 82 # The reST default role (used for this markup: `text`) to use for all documents. 83 # default_role = None 84 85 # If true, '()' will be appended to :func: etc. cross-reference text. 86 # add_function_parentheses = True 87 88 # If true, the current module name will be prepended to all description 89 # unit titles (such as .. function::). 90 # add_module_names = True 91 92 # If true, sectionauthor and moduleauthor directives will be shown in the 93 # output. They are ignored by default. 94 # show_authors = False 95 96 # The name of the Pygments (syntax highlighting) style to use. 97 pygments_style = "sphinx" 98 99 # A list of ignored prefixes for module index sorting. 100 # modindex_common_prefix = [] 101 102 103 # -- Options for HTML output --------------------------------------------------- 104 105 # The theme to use for HTML and HTML Help pages. See the documentation for 106 # a list of builtin themes. 107 html_theme = "default" 108 on_rtd = os.environ.get("READTHEDOCS", None) == "True" 109 110 if not on_rtd: 111 try: 112 import sphinx_rtd_theme 113 114 html_theme = "sphinx_rtd_theme" 115 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] 116 except ImportError: 117 pass 118 119 # Theme options are theme-specific and customize the look and feel of a theme 120 # further. For a list of options available for each theme, see the 121 # documentation. 122 # html_theme_options = {} 123 124 # Add any paths that contain custom themes here, relative to this directory. 125 # html_theme_path = [] 126 127 # The name for this set of Sphinx documents. If None, it defaults to 128 # "<project> v<release> documentation". 129 html_title = "mozbase documentation" 130 131 # A shorter title for the navigation bar. Default is the same as html_title. 132 # html_short_title = None 133 134 # The name of an image file (relative to this directory) to place at the top 135 # of the sidebar. 136 # html_logo = None 137 138 # The name of an image file (within the static path) to use as favicon of the 139 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 140 # pixels large. 141 # html_favicon = None 142 143 # Add any paths that contain custom static files (such as style sheets) here, 144 # relative to this directory. They are copied after the builtin static files, 145 # so a file named "default.css" will overwrite the builtin "default.css". 146 html_static_path = ["_static"] 147 148 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, 149 # using the given strftime format. 150 # html_last_updated_fmt = '%b %d, %Y' 151 152 # If true, SmartyPants will be used to convert quotes and dashes to 153 # typographically correct entities. 154 # html_use_smartypants = True 155 156 # Custom sidebar templates, maps document names to template names. 157 # html_sidebars = {} 158 159 # Additional templates that should be rendered to pages, maps page names to 160 # template names. 161 # html_additional_pages = {} 162 163 # If false, no module index is generated. 164 # html_domain_indices = True 165 166 # If false, no index is generated. 167 # html_use_index = True 168 169 # If true, the index is split into individual pages for each letter. 170 # html_split_index = False 171 172 # If true, links to the reST sources are added to the pages. 173 # html_show_sourcelink = True 174 175 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. 176 # html_show_sphinx = True 177 178 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. 179 html_show_copyright = False 180 181 # If true, an OpenSearch description file will be output, and all pages will 182 # contain a <link> tag referring to it. The value of this option must be the 183 # base URL from which the finished HTML is served. 184 # html_use_opensearch = '' 185 186 # This is the file name suffix for HTML files (e.g. ".xhtml"). 187 # html_file_suffix = None 188 189 # Output file base name for HTML help builder. 190 htmlhelp_basename = "MozBasedoc" 191 192 193 # -- Options for LaTeX output -------------------------------------------------- 194 195 latex_elements = { 196 # The paper size ('letterpaper' or 'a4paper'). 197 # 'papersize': 'letterpaper', 198 # The font size ('10pt', '11pt' or '12pt'). 199 # 'pointsize': '10pt', 200 # Additional stuff for the LaTeX preamble. 201 # 'preamble': '', 202 } 203 204 # Grouping the document tree into LaTeX files. List of tuples 205 # (source start file, target name, title, author, documentclass [howto/manual]). 206 latex_documents = [ 207 ( 208 "index", 209 "MozBase.tex", 210 "MozBase Documentation", 211 "Mozilla Automation and Tools team", 212 "manual", 213 ), 214 ] 215 216 # The name of an image file (relative to this directory) to place at the top of 217 # the title page. 218 # latex_logo = None 219 220 # For "manual" documents, if this is true, then toplevel headings are parts, 221 # not chapters. 222 # latex_use_parts = False 223 224 # If true, show page references after internal links. 225 # latex_show_pagerefs = False 226 227 # If true, show URL addresses after external links. 228 # latex_show_urls = False 229 230 # Documents to append as an appendix to all manuals. 231 # latex_appendices = [] 232 233 # If false, no module index is generated. 234 # latex_domain_indices = True 235 236 237 # -- Options for manual page output -------------------------------------------- 238 239 # One entry per manual page. List of tuples 240 # (source start file, name, description, authors, manual section). 241 man_pages = [ 242 ( 243 "index", 244 "mozbase", 245 "MozBase Documentation", 246 ["Mozilla Automation and Tools team"], 247 1, 248 ) 249 ] 250 251 # If true, show URL addresses after external links. 252 # man_show_urls = False 253 254 255 # -- Options for Texinfo output ------------------------------------------------ 256 257 # Grouping the document tree into Texinfo files. List of tuples 258 # (source start file, target name, title, author, 259 # dir menu entry, description, category) 260 texinfo_documents = [ 261 ( 262 "index", 263 "MozBase", 264 "MozBase Documentation", 265 "Mozilla Automation and Tools team", 266 "MozBase", 267 "One line description of project.", 268 "Miscellaneous", 269 ), 270 ] 271 272 # Documents to append as an appendix to all manuals. 273 # texinfo_appendices = [] 274 275 # If false, no module index is generated. 276 # texinfo_domain_indices = True 277 278 # How to display URL addresses: 'footnote', 'no', or 'inline'. 279 # texinfo_show_urls = 'footnote'