Skip to content
Myr

conf.py

This file

Path

docs/conf.py

236 lines · 7.5 KiB · Python

Last changed by

Started working on documentation.Armin Ronacherbefore adoption4ec7d2a

History of this file

Take it

Started working on documentation.Armin Ronacherbefore adoption4ec7d2a

lines 1–236why, one step back
1# -*- 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.19#sys.path.append(os.path.abspath('.'))2021# -- 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.28extensions = ['sphinx.ext.autodoc']2930# 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.83pygments_style = 'sphinx'8485# 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'.93html_theme = 'nature'9495# 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.101#html_theme_path = []102103# 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 top111# of the sidebar.112#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.133#html_sidebars = {}134135# Additional templates that should be rendered to pages, maps page names to136# template names.137#html_additional_pages = {}138139# If false, no module index is generated.140#html_use_modindex = True141142# If false, no index is generated.143#html_use_index = True144145# If true, the index is split into individual pages for each letter.146#html_split_index = False147148# If true, links to the reST sources are added to the pages.149#html_show_sourcelink = True150151# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.152#html_show_sphinx = True153154# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.155#html_show_copyright = True156157# If true, an OpenSearch description file will be output, and all pages will158# contain a <link> tag referring to it. The value of this option must be the159# base URL from which the finished HTML is served.160#html_use_opensearch = ''161162# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").163#html_file_suffix = ''164165# Output file base name for HTML help builder.166htmlhelp_basename = 'Flaskdoc'167168169# -- Options for LaTeX output --------------------------------------------------170171# The paper size ('letter' or 'a4').172#latex_paper_size = 'letter'173174# The font size ('10pt', '11pt' or '12pt').175#latex_font_size = '10pt'176177# Grouping the document tree into LaTeX files. List of tuples178# (source start file, target name, title, author, documentclass [howto/manual]).179latex_documents = [180 ('index', 'Flask.tex', u'Flask Documentation',181 u'Armin Ronacher', 'manual'),182]183184# The name of an image file (relative to this directory) to place at the top of185# the title page.186#latex_logo = None187188# For "manual" documents, if this is true, then toplevel headings are parts,189# not chapters.190#latex_use_parts = False191192# Additional stuff for the LaTeX preamble.193#latex_preamble = ''194195# Documents to append as an appendix to all manuals.196#latex_appendices = []197198# If false, no module index is generated.199#latex_use_modindex = True200201202# -- Options for Epub output ---------------------------------------------------203204# Bibliographic Dublin Core info.205#epub_title = ''206#epub_author = ''207#epub_publisher = ''208#epub_copyright = ''209210# The language of the text. It defaults to the language option211# or en if the language is not set.212#epub_language = ''213214# The scheme of the identifier. Typical schemes are ISBN or URL.215#epub_scheme = ''216217# The unique identifier of the text. This can be a ISBN number218# or the project homepage.219#epub_identifier = ''220221# A unique identification for the text.222#epub_uid = ''223224# HTML files that should be inserted before the pages created by sphinx.225# The format is a list of tuples containing the path and title.226#epub_pre_files = []227228# HTML files shat should be inserted after the pages created by sphinx.229# The format is a list of tuples containing the path and title.230#epub_post_files = []231232# A list of files that should not be packed into the epub file.233#epub_exclude_files = []234235# The depth of the table of contents in toc.ncx.236#epub_tocdepth = 3