conf.py
This file
Path
docs/conf.py
241 lines · 7.8 KiB · Python
Last changed by
Beefed up latex output. Unfortunately parts look ugly.Armin Ronacherbefore adoptioncbcd15c
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.Merge branch 'master' into module-supportArmin Ronacherbefore adoption9fa4f94
line 19why, one step back19sys.path.append(os.path.abspath('_themes'))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–51why, 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').versionFixed a doc config errorArmin Ronacherbefore adoption54c3df6
lines 52–53why, one step back52if 'dev' in release:53 release = release.split('dev')[0] + 'dev'Started working on documentation.Armin Ronacherbefore adoption4ec7d2a
lines 54–91why, one step back54version = '.'.join(release.split('.')[:2])5556# The language for content autogenerated by Sphinx. Refer to documentation57# for a list of supported languages.58#language = None5960# There are two options for replacing |today|: either, you set today to some61# non-false value, then it is used:62#today = ''63# Else, today_fmt is used as the format for a strftime call.64#today_fmt = '%B %d, %Y'6566# List of patterns, relative to source directory, that match files and67# directories to ignore when looking for source files.68exclude_patterns = ['_build']6970# The reST default role (used for this markup: `text`) to use for all documents.71#default_role = None7273# If true, '()' will be appended to :func: etc. cross-reference text.74#add_function_parentheses = True7576# If true, the current module name will be prepended to all description77# unit titles (such as .. function::).78#add_module_names = True7980# If true, sectionauthor and moduleauthor directives will be shown in the81# output. They are ignored by default.82#show_authors = False8384# A list of ignored prefixes for module index sorting.85#modindex_common_prefix = []868788# -- Options for HTML output ---------------------------------------------------8990# The theme to use for HTML and HTML Help pages. Major themes that come with91# Sphinx are currently 'default' and 'sphinxdoc'.Merge branch 'master' into module-supportArmin Ronacherbefore adoption9fa4f94
line 92why, one step back92html_theme = 'flask'Started working on documentation.Armin Ronacherbefore adoption4ec7d2a
lines 93–99why, one step back9394# Theme options are theme-specific and customize the look and feel of a theme95# further. For a list of options available for each theme, see the96# documentation.97#html_theme_options = {}9899# Add any paths that contain custom themes here, relative to this directory.Added docs, fixed some bugs I introduced last commitArmin Ronacherbefore adoption3d719f3
line 100why, one step back100html_theme_path = ['_themes']Started working on documentation.Armin Ronacherbefore adoption4ec7d2a
lines 101–109why, one step back101102# The name for this set of Sphinx documents. If None, it defaults to103# "<project> v<release> documentation".104#html_title = None105106# A shorter title for the navigation bar. Default is the same as html_title.107#html_short_title = None108109# 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 110why, one step back110# of the sidebar. Do not set, template magic!Started working on documentation.Armin Ronacherbefore adoption4ec7d2a
lines 111–131why, one step back111#html_logo = None112113# The name of an image file (within the static path) to use as favicon of the114# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32115# pixels large.116#html_favicon = None117118# Add any paths that contain custom static files (such as style sheets) here,119# relative to this directory. They are copied after the builtin static files,120# so a file named "default.css" will overwrite the builtin "default.css".121html_static_path = ['_static']122123# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,124# using the given strftime format.125#html_last_updated_fmt = '%b %d, %Y'126127# If true, SmartyPants will be used to convert quotes and dashes to128# typographically correct entities.129#html_use_smartypants = True130131# Custom sidebar templates, maps document names to template names.Added docs, fixed some bugs I introduced last commitArmin Ronacherbefore adoption3d719f3
lines 132–136why, one step back132html_sidebars = {133 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'],134 '**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',135 'sourcelink.html', 'searchbox.html']136}Started working on documentation.Armin Ronacherbefore adoption4ec7d2a
lines 137–176why, one step back137138# Additional templates that should be rendered to pages, maps page names to139# template names.140#html_additional_pages = {}141142# If false, no module index is generated.143#html_use_modindex = True144145# If false, no index is generated.146#html_use_index = True147148# If true, the index is split into individual pages for each letter.149#html_split_index = False150151# If true, links to the reST sources are added to the pages.152#html_show_sourcelink = True153154# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.155#html_show_sphinx = True156157# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.158#html_show_copyright = True159160# If true, an OpenSearch description file will be output, and all pages will161# contain a <link> tag referring to it. The value of this option must be the162# base URL from which the finished HTML is served.163#html_use_opensearch = ''164165# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").166#html_file_suffix = ''167168# Output file base name for HTML help builder.169htmlhelp_basename = 'Flaskdoc'170171172# -- Options for LaTeX output --------------------------------------------------173174# Grouping the document tree into LaTeX files. List of tuples175# (source start file, target name, title, author, documentclass [howto/manual]).176latex_documents = [Merge branch 'master' into module-supportArmin Ronacherbefore adoption41de129
line 177why, one step back177 ('latexindex', 'Flask.tex', u'Flask Documentation',Started working on documentation.Armin Ronacherbefore adoption4ec7d2a
lines 178–184why, one step back178 u'Armin Ronacher', 'manual'),179]180181# Documents to append as an appendix to all manuals.182#latex_appendices = []183184# If false, no module index is generated.Merge branch 'master' into module-supportArmin Ronacherbefore adoption41de129
lines 185–192why, one step back185latex_use_modindex = False186187latex_elements = {188 'fontpkg': r'\usepackage{mathpazo}',189 'papersize': 'a4paper',190 'pointsize': '12pt',191 'preamble': r'\usepackage{flaskstyle}'192}Beefed up latex output. Unfortunately parts look ugly.Armin Ronacherbefore adoptioncbcd15c
line 193why, one step back193latex_use_parts = TrueMerge branch 'master' into module-supportArmin Ronacherbefore adoption41de129
lines 194–195why, one step back194195latex_additional_files = ['flaskstyle.sty', 'logo.pdf']Started working on documentation.Armin Ronacherbefore adoption4ec7d2a
lines 196–232why, one step back196197198# -- Options for Epub output ---------------------------------------------------199200# Bibliographic Dublin Core info.201#epub_title = ''202#epub_author = ''203#epub_publisher = ''204#epub_copyright = ''205206# The language of the text. It defaults to the language option207# or en if the language is not set.208#epub_language = ''209210# The scheme of the identifier. Typical schemes are ISBN or URL.211#epub_scheme = ''212213# The unique identifier of the text. This can be a ISBN number214# or the project homepage.215#epub_identifier = ''216217# A unique identification for the text.218#epub_uid = ''219220# HTML files that should be inserted before the pages created by sphinx.221# The format is a list of tuples containing the path and title.222#epub_pre_files = []223224# HTML files shat should be inserted after the pages created by sphinx.225# The format is a list of tuples containing the path and title.226#epub_post_files = []227228# A list of files that should not be packed into the epub file.229#epub_exclude_files = []230231# The depth of the table of contents in toc.ncx.232#epub_tocdepth = 3Improved documentation, added a contextmanager for request bindingArmin Ronacherbefore adoption3b36bef
lines 233–235why, one step back233234intersphinx_mapping = {235 'http://docs.python.org/dev': None,added coming soon to parts of the docs, linked scoped_sessionArmin Ronacherbefore adoption6d556ac
line 236why, one step back236 'http://werkzeug.pocoo.org/documentation/dev/': None,Added WTForms documentation.Armin Ronacherbefore adoptionce18d45
lines 237–238why, one step back237 'http://www.sqlalchemy.org/docs/': None,238 'http://wtforms.simplecodes.com/docs/0.5/': NoneImproved documentation, added a contextmanager for request bindingArmin Ronacherbefore adoption3b36bef
line 239why, one step back239}Merge branch 'master' into module-supportArmin Ronacherbefore adoption9fa4f94
lines 240–241why, one step back240241pygments_style = 'flask_theme_support.FlaskyStyle'