1# -*- coding: utf-8 -*- 2# 3# PETSc for Python documentation build configuration file, created by 4# sphinx-quickstart on Sun Oct 1 15:52:05 2017. 5# 6# This file is execfile()d with the current directory set to its 7# containing dir. 8# 9# Note that not all possible configuration values are present in this 10# autogenerated file. 11# 12# All configuration values have a default; values that are commented out 13# serve to show the default. 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. 18# 19# import os 20# import sys 21# sys.path.insert(0, os.path.abspath('.')) 22 23def get_version(): 24 import sys, os, re 25 here = os.path.dirname(__file__) 26 pardir = [os.path.pardir] * 2 27 topdir = os.path.join(here, *pardir) 28 srcdir = os.path.join(topdir, 'src') 29 with open(os.path.join(srcdir, '__init__.py')) as f: 30 m = re.search(r"__version__\s*=\s*'(.*)'", f.read()) 31 return m.groups()[0] 32 33pkg_version = get_version() 34 35# -- General configuration ------------------------------------------------ 36 37# If your documentation needs a minimal Sphinx version, state it here. 38# needs_sphinx = '1.0' 39 40# Add any Sphinx extension module names here, as strings. They can be 41# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom 42# ones. 43extensions = [] 44 45# Add any paths that contain templates here, relative to this directory. 46# templates_path = ['_templates'] 47templates_path = [] 48 49# The suffix(es) of source filenames. 50# You can specify multiple suffix as a list of string: 51# source_suffix = ['.rst', '.md'] 52source_suffix = '.rst' 53 54# The encoding of source files. 55#source_encoding = 'utf-8-sig' 56 57# The master toctree document. 58master_doc = 'index' 59 60# General information about the project. 61project = u'PETSc for Python' 62copyright = u'2021, Lisandro Dalcin' 63author = u'Lisandro Dalcin' 64 65# The version info for the project you're documenting, acts as replacement for 66# |version| and |release|, also used in various other places throughout the 67# built documents. 68# 69# The short X.Y version. 70version = pkg_version[:3] 71# The full version, including alpha/beta/rc tags. 72release = pkg_version 73 74# The language for content autogenerated by Sphinx. Refer to documentation 75# for a list of supported languages. 76# 77# This is also used if you do content translation via gettext catalogs. 78# Usually you set "language" from the command line for these cases. 79language = None 80 81# List of patterns, relative to source directory, that match files and 82# directories to ignore when looking for source files. 83# This patterns also effect to html_static_path and html_extra_path 84exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] 85 86# The name of the Pygments (syntax highlighting) style to use. 87pygments_style = 'sphinx' 88 89# If true, `todo` and `todoList` produce output, else they produce nothing. 90todo_include_todos = False 91 92 93# -- Options for HTML output ---------------------------------------------- 94 95# The theme to use for HTML and HTML Help pages. See the documentation for 96# a list of builtin themes. 97html_theme = 'default' 98 99# Theme options are theme-specific and customize the look and feel of a theme 100# further. For a list of options available for each theme, see the 101# documentation. 102# html_theme_options = {} 103 104# Add any paths that contain custom static files (such as style sheets) here, 105# relative to this directory. They are copied after the builtin static files, 106# so a file named "default.css" will overwrite the builtin "default.css". 107# html_static_path = ['_static'] 108html_static_path = [] 109 110# Custom sidebar templates, must be a dictionary that maps document names 111# to template names. 112# 113# This is required for the alabaster theme 114# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars 115# html_sidebars = { 116# '**': [ 117# 'about.html', 118# 'navigation.html', 119# 'relations.html', # needs 'show_related': True theme option to display 120# 'searchbox.html', 121# 'donate.html', 122# ] 123# } 124 125# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, 126# using the given strftime format. 127#html_last_updated_fmt = '%b %d, %Y' 128 129# -- Options for HTMLHelp output ------------------------------------------ 130 131# Output file base name for HTML help builder. 132htmlhelp_basename = 'petsc4py-man' 133 134 135# -- Options for LaTeX output --------------------------------------------- 136 137latex_elements = { 138# The paper size ('letterpaper' or 'a4paper'). 139#'papersize': 'letterpaper', 140'papersize': 'a4', 141 142# The font size ('10pt', '11pt' or '12pt'). 143#'pointsize': '10pt', 144 145# Additional stuff for the LaTeX preamble. 146#'preamble': '', 147#'printmodindex': '', 148#'printindex': '', 149#'preamble' : '', 150} 151 152# Grouping the document tree into LaTeX files. List of tuples 153# (source start file, target name, title, 154# author, documentclass [howto, manual, or own class]). 155latex_documents = [ 156 ('manual', 'petsc4py.tex', project, author, 'howto'), 157] 158 159# The name of an image file (relative to this directory) to place at the top of 160# the title page. 161#latex_logo = None 162 163# -- Options for manual page output --------------------------------------- 164 165# One entry per manual page. List of tuples 166# (source start file, name, description, authors, manual section). 167man_pages = [ 168 (master_doc, 'petsc4py', project, [author], 1) 169] 170 171# If true, show URL addresses after external links. 172#man_show_urls = False 173 174# -- Options for Texinfo output ------------------------------------------- 175 176# Grouping the document tree into Texinfo files. List of tuples 177# (source start file, target name, title, author, 178# dir menu entry, description, category) 179texinfo_documents = [ 180 (master_doc, 'petsc4py', project, author, 181 'petsc4py', project+u'.', 'Miscellaneous'), 182] 183 184# -- Options for Epub output ---------------------------------------------- 185 186# Bibliographic Dublin Core info. 187epub_title = project 188epub_author = author 189epub_publisher = author 190epub_copyright = copyright 191 192# The unique identifier of the text. This can be a ISBN number 193# or the project homepage. 194# 195# epub_identifier = '' 196 197# A unique identification for the text. 198# 199# epub_uid = '' 200 201# A list of files that should not be packed into the epub file. 202epub_exclude_files = ['search.html'] 203 204 205