conf.py
This file
Path
docs/conf.py
247 lines · 7.9 KiB · Python
Last changed by
Added WTForms documentation.Armin Ronacherbefore adoptionce18d45
History of this fileTake it
Started working on documentation.Armin Ronacherbefore adoption4ec7d2a
lines 1–18why, one step back1# -*- coding: utf-8 -*-2#3# Flask documentation build configuration file, created by4# sphinx-quickstart on Tue Apr 6 15:24:58 2010.5#6# This file is execfile()d with the current directory set to its containing dir.7#8# Note that not all possible configuration values are present in this9# autogenerated file.10#11# All configuration values have a default; values that are commented out12# serve to show the default.1314import sys, os1516# 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 the18# documentation root, use os.path.abspath to make it absolute, like shown here.Added docs, fixed some bugs I introduced last commitArmin Ronacherbefore adoption3d719f3
line 19why, one step back19sys.path.append(os.path.abspath('.'))Started working on documentation.Armin Ronacherbefore adoption4ec7d2a
lines 20–27why, one step back2021# -- General configuration -----------------------------------------------------2223# If your documentation needs a minimal Sphinx version, state it here.24#needs_sphinx = '1.0'2526# Add any Sphinx extension module names here, as strings. They can be extensions27# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.Improved documentation, added a contextmanager for request bindingArmin Ronacherbefore adoption3b36bef
line 28why, one step back28extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx']Started working on documentation.Armin Ronacherbefore adoption4ec7d2a
lines 29–82why, one step back2930# Add any paths that contain templates here, relative to this directory.31templates_path = ['_templates']3233# The suffix of source filenames.34source_suffix = '.rst'3536# The encoding of source files.37#source_encoding = 'utf-8-sig'3839# The master toctree document.40master_doc = 'index'4142# General information about the project.43project = u'Flask'44copyright = u'2010, Armin Ronacher'4546import pkg_resources4748# The version info for the project you're documenting, acts as replacement for49# |version| and |release|, also used in various other places throughout the50# built documents.51release = __import__('pkg_resources').get_distribution('Flask').version52version = '.'.join(release.split('.')[:2])5354# The language for content autogenerated by Sphinx. Refer to documentation55# for a list of supported languages.56#language = None5758# There are two options for replacing |today|: either, you set today to some59# non-false value, then it is used:60#today = ''61# Else, today_fmt is used as the format for a strftime call.62#today_fmt = '%B %d, %Y'6364# List of patterns, relative to source directory, that match files and65# directories to ignore when looking for source files.66exclude_patterns = ['_build']6768# The reST default role (used for this markup: `text`) to use for all documents.69#default_role = None7071# If true, '()' will be appended to :func: etc. cross-reference text.72#add_function_parentheses = True7374# If true, the current module name will be prepended to all description75# unit titles (such as .. function::).76#add_module_names = True7778# If true, sectionauthor and moduleauthor directives will be shown in the79# output. They are ignored by default.80#show_authors = False8182# The name of the Pygments (syntax highlighting) style to use.Added docs, fixed some bugs I introduced last commitArmin Ronacherbefore adoption3d719f3
line 83why, one step back83pygments_style = 'flaskext.FlaskyStyle'Started working on documentation.Armin Ronacherbefore adoption4ec7d2a
lines 84–92why, one step back8485# A list of ignored prefixes for module index sorting.86#modindex_common_prefix = []878889# -- Options for HTML output ---------------------------------------------------9091# The theme to use for HTML and HTML Help pages. Major themes that come with92# Sphinx are currently 'default' and 'sphinxdoc'.Added docs, fixed some bugs I introduced last commitArmin Ronacherbefore adoption3d719f3
line 93why, one step back93html_theme = 'flasky'Started working on documentation.Armin Ronacherbefore adoption4ec7d2a
lines 94–100why, one step back9495# Theme options are theme-specific and customize the look and feel of a theme96# further. For a list of options available for each theme, see the97# documentation.98#html_theme_options = {}99100# Add any paths that contain custom themes here, relative to this directory.Added docs, fixed some bugs I introduced last commitArmin Ronacherbefore adoption3d719f3
line 101why, one step back101html_theme_path = ['_themes']Started working on documentation.Armin Ronacherbefore adoption4ec7d2a
lines 102–110why, one step back102103# The name for this set of Sphinx documents. If None, it defaults to104# "<project> v<release> documentation".105#html_title = None106107# A shorter title for the navigation bar. Default is the same as html_title.108#html_short_title = None109110# The name of an image file (relative to this directory) to place at the topAdded docs, fixed some bugs I introduced last commitArmin Ronacherbefore adoption3d719f3
line 111why, one step back111# of the sidebar. Do not set, template magic!Started working on documentation.Armin Ronacherbefore adoption4ec7d2a
lines 112–132why, one step back112#html_logo = None113114# The name of an image file (within the static path) to use as favicon of the115# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32116# pixels large.117#html_favicon = None118119# Add any paths that contain custom static files (such as style sheets) here,120# relative to this directory. They are copied after the builtin static files,121# so a file named "default.css" will overwrite the builtin "default.css".122html_static_path = ['_static']123124# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,125# using the given strftime format.126#html_last_updated_fmt = '%b %d, %Y'127128# If true, SmartyPants will be used to convert quotes and dashes to129# typographically correct entities.130#html_use_smartypants = True131132# Custom sidebar templates, maps document names to template names.Added docs, fixed some bugs I introduced last commitArmin Ronacherbefore adoption3d719f3
lines 133–137why, one step back133html_sidebars = {134 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'],135 '**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',136 'sourcelink.html', 'searchbox.html']137}Started working on documentation.Armin Ronacherbefore adoption4ec7d2a
lines 138–240why, one step back138139# Additional templates that should be rendered to pages, maps page names to140# template names.141#html_additional_pages = {}142143# If false, no module index is generated.144#html_use_modindex = True145146# If false, no index is generated.147#html_use_index = True148149# If true, the index is split into individual pages for each letter.150#html_split_index = False151152# If true, links to the reST sources are added to the pages.153#html_show_sourcelink = True154155# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.156#html_show_sphinx = True157158# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.159#html_show_copyright = True160161# If true, an OpenSearch description file will be output, and all pages will162# contain a <link> tag referring to it. The value of this option must be the163# base URL from which the finished HTML is served.164#html_use_opensearch = ''165166# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").167#html_file_suffix = ''168169# Output file base name for HTML help builder.170htmlhelp_basename = 'Flaskdoc'171172173# -- Options for LaTeX output --------------------------------------------------174175# The paper size ('letter' or 'a4').176#latex_paper_size = 'letter'177178# The font size ('10pt', '11pt' or '12pt').179#latex_font_size = '10pt'180181# Grouping the document tree into LaTeX files. List of tuples182# (source start file, target name, title, author, documentclass [howto/manual]).183latex_documents = [184 ('index', 'Flask.tex', u'Flask Documentation',185 u'Armin Ronacher', 'manual'),186]187188# The name of an image file (relative to this directory) to place at the top of189# the title page.190#latex_logo = None191192# For "manual" documents, if this is true, then toplevel headings are parts,193# not chapters.194#latex_use_parts = False195196# Additional stuff for the LaTeX preamble.197#latex_preamble = ''198199# Documents to append as an appendix to all manuals.200#latex_appendices = []201202# If false, no module index is generated.203#latex_use_modindex = True204205206# -- Options for Epub output ---------------------------------------------------207208# Bibliographic Dublin Core info.209#epub_title = ''210#epub_author = ''211#epub_publisher = ''212#epub_copyright = ''213214# The language of the text. It defaults to the language option215# or en if the language is not set.216#epub_language = ''217218# The scheme of the identifier. Typical schemes are ISBN or URL.219#epub_scheme = ''220221# The unique identifier of the text. This can be a ISBN number222# or the project homepage.223#epub_identifier = ''224225# A unique identification for the text.226#epub_uid = ''227228# HTML files that should be inserted before the pages created by sphinx.229# The format is a list of tuples containing the path and title.230#epub_pre_files = []231232# HTML files shat should be inserted after the pages created by sphinx.233# The format is a list of tuples containing the path and title.234#epub_post_files = []235236# A list of files that should not be packed into the epub file.237#epub_exclude_files = []238239# The depth of the table of contents in toc.ncx.240#epub_tocdepth = 3Improved documentation, added a contextmanager for request bindingArmin Ronacherbefore adoption3b36bef
lines 241–243why, one step back241242intersphinx_mapping = {243 'http://docs.python.org/dev': None,added coming soon to parts of the docs, linked scoped_sessionArmin Ronacherbefore adoption6d556ac
line 244why, one step back244 'http://werkzeug.pocoo.org/documentation/dev/': None,Added WTForms documentation.Armin Ronacherbefore adoptionce18d45
lines 245–246why, one step back245 'http://www.sqlalchemy.org/docs/': None,246 'http://wtforms.simplecodes.com/docs/0.5/': NoneImproved documentation, added a contextmanager for request bindingArmin Ronacherbefore adoption3b36bef
line 247why, one step back247}