1# 2# Mako documentation build configuration file 3# 4# This file is execfile()d with the current directory set to its containing dir. 5# 6# Note that not all possible configuration values are present in this 7# autogenerated file. 8# 9# All configuration values have a default; values that are commented out 10# serve to show the default. 11 12import os 13import sys 14 15# If extensions (or modules to document with autodoc) are in another directory, 16# add these directories to sys.path here. If the directory is relative to the 17# documentation root, use os.path.abspath to make it absolute, like shown here. 18sys.path.insert(0, os.path.abspath("../..")) 19sys.path.insert(0, os.path.abspath(".")) 20 21if True: 22 import mako # noqa 23 24 25# -- General configuration ----------------------------------------------------- 26 27# If your documentation needs a minimal Sphinx version, state it here. 28# needs_sphinx = '1.0' 29 30# Add any Sphinx extension module names here, as strings. They can be extensions 31# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. 32# extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 33# 'sphinx.ext.doctest', 'builder.builders'] 34 35extensions = [ 36 "sphinx.ext.autodoc", 37 "changelog", 38 "sphinx_paramlinks", 39 "zzzeeksphinx", 40] 41 42changelog_render_ticket = "https://github.com/sqlalchemy/mako/issues/%s" 43 44changelog_render_pullreq = { 45 "default": "https://github.com/sqlalchemy/mako/pull/%s", 46 "github": "https://github.com/sqlalchemy/mako/pull/%s", 47} 48 49# tags to sort on inside of sections 50changelog_sections = [ 51 "changed", 52 "feature", 53 "bug", 54 "usecase", 55 "moved", 56 "removed", 57] 58 59 60# Add any paths that contain templates here, relative to this directory. 61templates_path = ["templates"] 62 63nitpicky = True 64 65 66site_base = os.environ.get("RTD_SITE_BASE", "http://www.makotemplates.org") 67site_adapter_template = "docs_adapter.mako" 68site_adapter_py = "docs_adapter.py" 69 70# The suffix of source filenames. 71source_suffix = ".rst" 72 73# The encoding of source files. 74# source_encoding = 'utf-8-sig' 75 76# The master toctree document. 77master_doc = "index" 78 79# General information about the project. 80project = "Mako" 81copyright = "the Mako authors and contributors" 82 83# The version info for the project you're documenting, acts as replacement for 84# |version| and |release|, also used in various other places throughout the 85# built documents. 86# 87# The short X.Y version. 88version = mako.__version__ 89# The full version, including alpha/beta/rc tags. 90release = "1.3.0" 91release_date = "Wed Nov 8 2023" 92# The language for content autogenerated by Sphinx. Refer to documentation 93# for a list of supported languages. 94# language = None 95 96# There are two options for replacing |today|: either, you set today to some 97# non-false value, then it is used: 98# today = '' 99# Else, today_fmt is used as the format for a strftime call. 100# today_fmt = '%B %d, %Y' 101 102# List of patterns, relative to source directory, that match files and 103# directories to ignore when looking for source files. 104exclude_patterns = ["build"] 105 106# The reST default role (used for this markup: `text`) to use for all documents. 107# default_role = None 108 109# If true, '()' will be appended to :func: etc. cross-reference text. 110# add_function_parentheses = True 111 112# If true, the current module name will be prepended to all description 113# unit titles (such as .. function::). 114# add_module_names = True 115 116# If true, sectionauthor and moduleauthor directives will be shown in the 117# output. They are ignored by default. 118# show_authors = False 119 120# The name of the Pygments (syntax highlighting) style to use. 121pygments_style = "sphinx" 122 123# A list of ignored prefixes for module index sorting. 124# modindex_common_prefix = [] 125 126 127# -- Options for HTML output --------------------------------------------------- 128 129# The theme to use for HTML and HTML Help pages. See the documentation for 130# a list of builtin themes. 131html_theme = "zsmako" 132 133# Theme options are theme-specific and customize the look and feel of a theme 134# further. For a list of options available for each theme, see the 135# documentation. 136# html_theme_options = {} 137 138# Add any paths that contain custom themes here, relative to this directory. 139# html_theme_path = [] 140 141# The style sheet to use for HTML and HTML Help pages. A file of that name 142# must exist either in Sphinx' static/ path, or in one of the custom paths 143# given in html_static_path. 144html_style = "default.css" 145 146# The name for this set of Sphinx documents. If None, it defaults to 147# "<project> v<release> documentation". 148html_title = "%s %s Documentation" % (project, release) 149 150# A shorter title for the navigation bar. Default is the same as html_title. 151# html_short_title = None 152 153# The name of an image file (relative to this directory) to place at the top 154# of the sidebar. 155# html_logo = None 156 157# The name of an image file (within the static path) to use as favicon of the 158# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 159# pixels large. 160# html_favicon = None 161 162# Add any paths that contain custom static files (such as style sheets) here, 163# relative to this directory. They are copied after the builtin static files, 164# so a file named "default.css" will overwrite the builtin "default.css". 165html_static_path = ["static"] 166 167# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, 168# using the given strftime format. 169html_last_updated_fmt = "%m/%d/%Y %H:%M:%S" 170 171# If true, SmartyPants will be used to convert quotes and dashes to 172# typographically correct entities. 173# html_use_smartypants = True 174 175# Custom sidebar templates, maps document names to template names. 176# html_sidebars = {} 177 178# Additional templates that should be rendered to pages, maps page names to 179# template names. 180# html_additional_pages = {} 181 182# If false, no module index is generated. 183html_domain_indices = False 184 185# If false, no index is generated. 186# html_use_index = True 187 188# If true, the index is split into individual pages for each letter. 189# html_split_index = False 190 191# If true, the reST sources are included in the HTML build as _sources/<name>. 192# html_copy_source = True 193html_copy_source = False 194 195# If true, links to the reST sources are added to the pages. 196# html_show_sourcelink = True 197html_show_sourcelink = False 198 199# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. 200# html_show_sphinx = True 201 202# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. 203# html_show_copyright = True 204 205# If true, an OpenSearch description file will be output, and all pages will 206# contain a <link> tag referring to it. The value of this option must be the 207# base URL from which the finished HTML is served. 208# html_use_opensearch = '' 209 210# This is the file name suffix for HTML files (e.g. ".xhtml"). 211# html_file_suffix = None 212 213# Output file base name for HTML help builder. 214htmlhelp_basename = "Makodoc" 215 216# autoclass_content = 'both' 217 218# -- Options for LaTeX output -------------------------------------------------- 219 220# The paper size ('letter' or 'a4'). 221# latex_paper_size = 'letter' 222 223# The font size ('10pt', '11pt' or '12pt'). 224# latex_font_size = '10pt' 225 226# Grouping the document tree into LaTeX files. List of tuples 227# (source start file, target name, title, author, documentclass [howto/manual]). 228latex_documents = [ 229 ( 230 "index", 231 "mako_%s.tex" % release.replace(".", "_"), 232 "Mako Documentation", 233 "Mike Bayer", 234 "manual", 235 ) 236] 237 238# The name of an image file (relative to this directory) to place at the top of 239# the title page. 240# latex_logo = None 241 242# For "manual" documents, if this is true, then toplevel headings are parts, 243# not chapters. 244# latex_use_parts = False 245 246# If true, show page references after internal links. 247# latex_show_pagerefs = False 248 249# If true, show URL addresses after external links. 250# latex_show_urls = False 251 252# Additional stuff for the LaTeX preamble. 253# sets TOC depth to 2. 254latex_preamble = r"\setcounter{tocdepth}{3}" 255 256# Documents to append as an appendix to all manuals. 257# latex_appendices = [] 258 259# If false, no module index is generated. 260# latex_domain_indices = True 261 262# latex_elements = { 263# 'papersize': 'letterpaper', 264# 'pointsize': '10pt', 265# } 266 267# -- Options for manual page output -------------------------------------------- 268 269# One entry per manual page. List of tuples 270# (source start file, name, description, authors, manual section). 271man_pages = [("index", "mako", "Mako Documentation", ["Mako authors"], 1)] 272 273 274# -- Options for Epub output --------------------------------------------------- 275 276# Bibliographic Dublin Core info. 277epub_title = "Mako" 278epub_author = "Mako authors" 279epub_publisher = "Mako authors" 280epub_copyright = "Mako authors" 281 282# The language of the text. It defaults to the language option 283# or en if the language is not set. 284# epub_language = '' 285 286# The scheme of the identifier. Typical schemes are ISBN or URL. 287# epub_scheme = '' 288 289# The unique identifier of the text. This can be a ISBN number 290# or the project homepage. 291# epub_identifier = '' 292 293# A unique identification for the text. 294# epub_uid = '' 295 296# HTML files that should be inserted before the pages created by sphinx. 297# The format is a list of tuples containing the path and title. 298# epub_pre_files = [] 299 300# HTML files shat should be inserted after the pages created by sphinx. 301# The format is a list of tuples containing the path and title. 302# epub_post_files = [] 303 304# A list of files that should not be packed into the epub file. 305# epub_exclude_files = [] 306 307# The depth of the table of contents in toc.ncx. 308# epub_tocdepth = 3 309 310# Allow duplicate toc entries. 311# epub_tocdup = True 312