Skip to content
Myr

conf.py

This file

Path

docs/conf.py

144 lines · 4.5 KiB · Python

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than c0d40d3 point at it.

using a table for _speedups escapeMickaël Guérinbefore adoptionc0d40d3

lines 1–144why, one step back
1# -*- coding: utf-8 -*-
2#3# Jinja2 documentation build configuration file, created by4# sphinx-quickstart on Sun Apr 27 21:42:41 2008.5#6# This file is execfile()d with the current directory set to its containing dir.7#8# The contents of this file are pickled, so don't put values in the namespace9# that aren't pickleable (module imports are okay, they're removed automatically).10#11# All configuration values have a default value; values that are commented out12# serve to show the default value.1314import sys, os1516# If your extensions are in another directory, add it here. If the directory17# is relative to the documentation root, use os.path.abspath to make it18# absolute, like shown here.19sys.path.append(os.path.dirname(os.path.abspath(__file__)))2021# General configuration22# ---------------------2324# Add any Sphinx extension module names here, as strings. They can be extensions25# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.26extensions = ['sphinx.ext.autodoc', 'jinjaext']2728# Add any paths that contain templates here, relative to this directory.29templates_path = ['_templates']3031# The suffix of source filenames.32source_suffix = '.rst'3334# The master toctree document.35master_doc = 'index'3637# General substitutions.38project = 'Jinja2'39copyright = '2008, Armin Ronacher'4041# The default replacements for |version| and |release|, also used in various42# other places throughout the built documents.43#44# The short X.Y version.45version = '2.0'46# The full version, including alpha/beta/rc tags.47release = '2.0'4849# There are two options for replacing |today|: either, you set today to some50# non-false value, then it is used:51#today = ''52# Else, today_fmt is used as the format for a strftime call.53today_fmt = '%B %d, %Y'5455# List of documents that shouldn't be included in the build.56#unused_docs = []5758# If true, '()' will be appended to :func: etc. cross-reference text.59#add_function_parentheses = True6061# If true, the current module name will be prepended to all description62# unit titles (such as .. function::).63#add_module_names = True6465# If true, sectionauthor and moduleauthor directives will be shown in the66# output. They are ignored by default.67#show_authors = False6869# The name of the Pygments (syntax highlighting) style to use.70pygments_style = 'jinjaext.JinjaStyle'717273# Options for HTML output74# -----------------------7576# The style sheet to use for HTML and HTML Help pages. A file of that name77# must exist either in Sphinx' static/ path, or in one of the custom paths78# given in html_static_path.79html_style = 'style.css'8081# The name for this set of Sphinx documents. If None, it defaults to82# "<project> v<release> documentation".83#html_title = None8485# Add any paths that contain custom static files (such as style sheets) here,86# relative to this directory. They are copied after the builtin static files,87# so a file named "default.css" will overwrite the builtin "default.css".88html_static_path = ['_static']8990# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,91# using the given strftime format.92html_last_updated_fmt = '%b %d, %Y'9394# If true, SmartyPants will be used to convert quotes and dashes to95# typographically correct entities.96#html_use_smartypants = True9798# use jinja2 for templates99template_bridge = 'jinjaext.Jinja2Bridge'100101# no modindex102html_use_modindex = False103104# If true, the reST sources are included in the HTML build as _sources/<name>.105#html_copy_source = True106107# If true, an OpenSearch description file will be output, and all pages will108# contain a <link> tag referring to it.109#html_use_opensearch = False110111# Output file base name for HTML help builder.112htmlhelp_basename = 'Jinja2doc'113114115# Options for LaTeX output116# ------------------------117118# The paper size ('letter' or 'a4').119latex_paper_size = 'a4'120121# The font size ('10pt', '11pt' or '12pt').122#latex_font_size = '10pt'123124# Grouping the document tree into LaTeX files. List of tuples125# (source start file, target name, title, author, document class [howto/manual]).126latex_documents = [127 ('index', 'Jinja2.tex', 'Jinja2 Documentation', 'Armin Ronacher', 'manual', 'toctree_only'),128]129130# Additional stuff for the LaTeX preamble.131latex_preamble = '''132\usepackage{palatino}133\definecolor{TitleColor}{rgb}{0.7,0,0}134\definecolor{InnerLinkColor}{rgb}{0.7,0,0}135\definecolor{OuterLinkColor}{rgb}{0.8,0,0}136\definecolor{VerbatimColor}{rgb}{0.985,0.985,0.985}137\definecolor{VerbatimBorderColor}{rgb}{0.8,0.8,0.8}138'''139140# Documents to append as an appendix to all manuals.141#latex_appendices = []142143# If false, no module index is generated.144latex_use_modindex = False