conf.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 #
00003 # WebTest documentation build configuration file, created by
00004 # sphinx-quickstart on Tue Nov 13 01:01:38 2012.
00005 #
00006 # This file is execfile()d with the current directory set to its containing dir.
00007 #
00008 # Note that not all possible configuration values are present in this
00009 # autogenerated file.
00010 #
00011 # All configuration values have a default; values that are commented out
00012 # serve to show the default.
00013 
00014 import sys, os
00015 
00016 # If extensions (or modules to document with autodoc) are in another directory,
00017 # add these directories to sys.path here. If the directory is relative to the
00018 # documentation root, use os.path.abspath to make it absolute, like shown here.
00019 #sys.path.insert(0, os.path.abspath('.'))
00020 
00021 # -- General configuration -----------------------------------------------------
00022 
00023 # If your documentation needs a minimal Sphinx version, state it here.
00024 #needs_sphinx = '1.0'
00025 
00026 # Add any Sphinx extension module names here, as strings. They can be extensions
00027 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
00028 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.intersphinx']
00029 
00030 intersphinx_mapping = {
00031     'python': ('http://docs.python.org/2.7', None),
00032     'webob': ('https://webob.readthedocs.org/en/latest', None),
00033     'waitrress': ('https://waitress.readthedocs.org/en/latest', None),
00034 }
00035 
00036 # Add any paths that contain templates here, relative to this directory.
00037 templates_path = ['_templates']
00038 
00039 # The suffix of source filenames.
00040 source_suffix = '.rst'
00041 
00042 # The encoding of source files.
00043 #source_encoding = 'utf-8-sig'
00044 
00045 # The master toctree document.
00046 master_doc = 'index'
00047 
00048 # General information about the project.
00049 project = 'WebTest'
00050 copyright = '2012, Ian Bicking'
00051 
00052 # The version info for the project you're documenting, acts as replacement for
00053 # |version| and |release|, also used in various other places throughout the
00054 # built documents.
00055 import pkg_resources
00056 version = pkg_resources.get_distribution(project).version
00057 release = version
00058 
00059 # The language for content autogenerated by Sphinx. Refer to documentation
00060 # for a list of supported languages.
00061 #language = None
00062 
00063 # There are two options for replacing |today|: either, you set today to some
00064 # non-false value, then it is used:
00065 #today = ''
00066 # Else, today_fmt is used as the format for a strftime call.
00067 #today_fmt = '%B %d, %Y'
00068 
00069 # List of patterns, relative to source directory, that match files and
00070 # directories to ignore when looking for source files.
00071 exclude_patterns = ['_build']
00072 
00073 # The reST default role (used for this markup: `text`) to use for all documents.
00074 #default_role = None
00075 
00076 # If true, '()' will be appended to :func: etc. cross-reference text.
00077 #add_function_parentheses = True
00078 
00079 # If true, the current module name will be prepended to all description
00080 # unit titles (such as .. function::).
00081 #add_module_names = True
00082 
00083 # If true, sectionauthor and moduleauthor directives will be shown in the
00084 # output. They are ignored by default.
00085 #show_authors = False
00086 
00087 # The name of the Pygments (syntax highlighting) style to use.
00088 pygments_style = 'sphinx'
00089 
00090 # A list of ignored prefixes for module index sorting.
00091 #modindex_common_prefix = []
00092 
00093 
00094 # -- Options for HTML output ---------------------------------------------------
00095 
00096 # The theme to use for HTML and HTML Help pages.  See the documentation for
00097 # a list of builtin themes.
00098 html_theme = 'nature'
00099 
00100 # Theme options are theme-specific and customize the look and feel of a theme
00101 # further.  For a list of options available for each theme, see the
00102 # documentation.
00103 #html_theme_options = {}
00104 
00105 # Add any paths that contain custom themes here, relative to this directory.
00106 #html_theme_path = []
00107 
00108 # The name for this set of Sphinx documents.  If None, it defaults to
00109 # "<project> v<release> documentation".
00110 #html_title = None
00111 
00112 # A shorter title for the navigation bar.  Default is the same as html_title.
00113 #html_short_title = None
00114 
00115 # The name of an image file (relative to this directory) to place at the top
00116 # of the sidebar.
00117 #html_logo = None
00118 
00119 # The name of an image file (within the static path) to use as favicon of the
00120 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
00121 # pixels large.
00122 #html_favicon = None
00123 
00124 # Add any paths that contain custom static files (such as style sheets) here,
00125 # relative to this directory. They are copied after the builtin static files,
00126 # so a file named "default.css" will overwrite the builtin "default.css".
00127 html_static_path = ['_static']
00128 
00129 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
00130 # using the given strftime format.
00131 #html_last_updated_fmt = '%b %d, %Y'
00132 
00133 # If true, SmartyPants will be used to convert quotes and dashes to
00134 # typographically correct entities.
00135 #html_use_smartypants = True
00136 
00137 # Custom sidebar templates, maps document names to template names.
00138 #html_sidebars = {}
00139 
00140 # Additional templates that should be rendered to pages, maps page names to
00141 # template names.
00142 #html_additional_pages = {}
00143 
00144 # If false, no module index is generated.
00145 #html_domain_indices = True
00146 
00147 # If false, no index is generated.
00148 #html_use_index = True
00149 
00150 # If true, the index is split into individual pages for each letter.
00151 #html_split_index = False
00152 
00153 # If true, links to the reST sources are added to the pages.
00154 #html_show_sourcelink = True
00155 
00156 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
00157 #html_show_sphinx = True
00158 
00159 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
00160 #html_show_copyright = True
00161 
00162 # If true, an OpenSearch description file will be output, and all pages will
00163 # contain a <link> tag referring to it.  The value of this option must be the
00164 # base URL from which the finished HTML is served.
00165 #html_use_opensearch = ''
00166 
00167 # This is the file name suffix for HTML files (e.g. ".xhtml").
00168 #html_file_suffix = None
00169 
00170 # Output file base name for HTML help builder.
00171 htmlhelp_basename = 'WebTestdoc'
00172 
00173 
00174 # -- Options for LaTeX output --------------------------------------------------
00175 
00176 latex_elements = {
00177 # The paper size ('letterpaper' or 'a4paper').
00178 #'papersize': 'letterpaper',
00179 
00180 # The font size ('10pt', '11pt' or '12pt').
00181 #'pointsize': '10pt',
00182 
00183 # Additional stuff for the LaTeX preamble.
00184 #'preamble': '',
00185 }
00186 
00187 # Grouping the document tree into LaTeX files. List of tuples
00188 # (source start file, target name, title, author, documentclass [howto/manual]).
00189 latex_documents = [
00190   ('index', 'WebTest.tex', 'WebTest Documentation',
00191    'Ian Bicking', 'manual'),
00192 ]
00193 
00194 # The name of an image file (relative to this directory) to place at the top of
00195 # the title page.
00196 #latex_logo = None
00197 
00198 # For "manual" documents, if this is true, then toplevel headings are parts,
00199 # not chapters.
00200 #latex_use_parts = False
00201 
00202 # If true, show page references after internal links.
00203 #latex_show_pagerefs = False
00204 
00205 # If true, show URL addresses after external links.
00206 #latex_show_urls = False
00207 
00208 # Documents to append as an appendix to all manuals.
00209 #latex_appendices = []
00210 
00211 # If false, no module index is generated.
00212 #latex_domain_indices = True
00213 
00214 
00215 # -- Options for manual page output --------------------------------------------
00216 
00217 # One entry per manual page. List of tuples
00218 # (source start file, name, description, authors, manual section).
00219 man_pages = [
00220     ('index', 'webtest', 'WebTest Documentation',
00221      ['Ian Bicking'], 1)
00222 ]
00223 
00224 # If true, show URL addresses after external links.
00225 #man_show_urls = False
00226 
00227 
00228 # -- Options for Texinfo output ------------------------------------------------
00229 
00230 # Grouping the document tree into Texinfo files. List of tuples
00231 # (source start file, target name, title, author,
00232 #  dir menu entry, description, category)
00233 texinfo_documents = [
00234   ('index', 'WebTest', 'WebTest Documentation',
00235    'Ian Bicking', 'WebTest', 'One line description of project.',
00236    'Miscellaneous'),
00237 ]
00238 
00239 # Documents to append as an appendix to all manuals.
00240 #texinfo_appendices = []
00241 
00242 # If false, no module index is generated.
00243 #texinfo_domain_indices = True
00244 
00245 # How to display URL addresses: 'footnote', 'no', or 'inline'.
00246 #texinfo_show_urls = 'footnote'
00247 
00248 
00249 on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
00250 if on_rtd:
00251     from subprocess import call, Popen, PIPE
00252 
00253     p = Popen('which git', shell=True, stdout=PIPE)
00254     git = p.stdout.read().strip()
00255     cwd = os.getcwd()
00256     _themes = os.path.join(cwd, '_themes')
00257 
00258     if not os.path.isdir(_themes):
00259         call([git, 'clone', 'git://github.com/Pylons/pylons_sphinx_theme.git',
00260                 '_themes'])
00261     else:
00262         os.chdir(_themes)
00263         call([git, 'checkout', 'master'])
00264         call([git, 'pull'])
00265         os.chdir(cwd)
00266 
00267     sys.path.append(os.path.abspath('_themes'))
00268     html_theme_path = ['_themes']
00269     html_theme = 'pylons'
00270     html_theme_options = dict(github_url='https://github.com/Pylons/webtest')
00271 
00272 intersphinx_mapping = {'webob': ('http://docs.webob.org/en/latest/', None)}


webtest
Author(s): AlexV
autogenerated on Sat Jun 8 2019 20:32:07