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