15808f684SSatish Balay# -*- coding: utf-8 -*- 25808f684SSatish Balay# 35808f684SSatish Balay# PETSc for Python documentation build configuration file, created by 45808f684SSatish Balay# sphinx-quickstart on Sun Oct 1 15:52:05 2017. 55808f684SSatish Balay# 65808f684SSatish Balay# This file is execfile()d with the current directory set to its 75808f684SSatish Balay# containing dir. 85808f684SSatish Balay# 95808f684SSatish Balay# Note that not all possible configuration values are present in this 105808f684SSatish Balay# autogenerated file. 115808f684SSatish Balay# 125808f684SSatish Balay# All configuration values have a default; values that are commented out 135808f684SSatish Balay# serve to show the default. 145808f684SSatish Balay 155808f684SSatish Balay# If extensions (or modules to document with autodoc) are in another directory, 165808f684SSatish Balay# add these directories to sys.path here. If the directory is relative to the 175808f684SSatish Balay# documentation root, use os.path.abspath to make it absolute, like shown here. 185808f684SSatish Balay# 195808f684SSatish Balay# import os 205808f684SSatish Balay# import sys 215808f684SSatish Balay# sys.path.insert(0, os.path.abspath('.')) 225808f684SSatish Balay 235808f684SSatish Balaydef get_version(): 245808f684SSatish Balay import sys, os, re 255808f684SSatish Balay here = os.path.dirname(__file__) 265808f684SSatish Balay pardir = [os.path.pardir] * 2 275808f684SSatish Balay topdir = os.path.join(here, *pardir) 285808f684SSatish Balay srcdir = os.path.join(topdir, 'src') 295808f684SSatish Balay with open(os.path.join(srcdir, '__init__.py')) as f: 305808f684SSatish Balay m = re.search(r"__version__\s*=\s*'(.*)'", f.read()) 315808f684SSatish Balay return m.groups()[0] 325808f684SSatish Balay 335808f684SSatish Balaypkg_version = get_version() 345808f684SSatish Balay 355808f684SSatish Balay# -- General configuration ------------------------------------------------ 365808f684SSatish Balay 375808f684SSatish Balay# If your documentation needs a minimal Sphinx version, state it here. 385808f684SSatish Balay# needs_sphinx = '1.0' 395808f684SSatish Balay 405808f684SSatish Balay# Add any Sphinx extension module names here, as strings. They can be 415808f684SSatish Balay# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom 425808f684SSatish Balay# ones. 435808f684SSatish Balayextensions = [] 445808f684SSatish Balay 455808f684SSatish Balay# Add any paths that contain templates here, relative to this directory. 465808f684SSatish Balay# templates_path = ['_templates'] 475808f684SSatish Balaytemplates_path = [] 485808f684SSatish Balay 495808f684SSatish Balay# The suffix(es) of source filenames. 505808f684SSatish Balay# You can specify multiple suffix as a list of string: 515808f684SSatish Balay# source_suffix = ['.rst', '.md'] 525808f684SSatish Balaysource_suffix = '.rst' 535808f684SSatish Balay 545808f684SSatish Balay# The encoding of source files. 555808f684SSatish Balay#source_encoding = 'utf-8-sig' 565808f684SSatish Balay 575808f684SSatish Balay# The master toctree document. 585808f684SSatish Balaymaster_doc = 'index' 595808f684SSatish Balay 605808f684SSatish Balay# General information about the project. 615808f684SSatish Balayproject = u'PETSc for Python' 62*fb83dddaSLisandro Dalcincopyright = u'2023, Lisandro Dalcin' 635808f684SSatish Balayauthor = u'Lisandro Dalcin' 645808f684SSatish Balay 655808f684SSatish Balay# The version info for the project you're documenting, acts as replacement for 665808f684SSatish Balay# |version| and |release|, also used in various other places throughout the 675808f684SSatish Balay# built documents. 685808f684SSatish Balay# 695808f684SSatish Balay# The short X.Y version. 705808f684SSatish Balayversion = pkg_version[:3] 715808f684SSatish Balay# The full version, including alpha/beta/rc tags. 725808f684SSatish Balayrelease = pkg_version 735808f684SSatish Balay 745808f684SSatish Balay# The language for content autogenerated by Sphinx. Refer to documentation 755808f684SSatish Balay# for a list of supported languages. 765808f684SSatish Balay# 775808f684SSatish Balay# This is also used if you do content translation via gettext catalogs. 785808f684SSatish Balay# Usually you set "language" from the command line for these cases. 795808f684SSatish Balaylanguage = None 805808f684SSatish Balay 815808f684SSatish Balay# List of patterns, relative to source directory, that match files and 825808f684SSatish Balay# directories to ignore when looking for source files. 835808f684SSatish Balay# This patterns also effect to html_static_path and html_extra_path 845808f684SSatish Balayexclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] 855808f684SSatish Balay 865808f684SSatish Balay# The name of the Pygments (syntax highlighting) style to use. 875808f684SSatish Balaypygments_style = 'sphinx' 885808f684SSatish Balay 895808f684SSatish Balay# If true, `todo` and `todoList` produce output, else they produce nothing. 905808f684SSatish Balaytodo_include_todos = False 915808f684SSatish Balay 925808f684SSatish Balay 935808f684SSatish Balay# -- Options for HTML output ---------------------------------------------- 945808f684SSatish Balay 955808f684SSatish Balay# The theme to use for HTML and HTML Help pages. See the documentation for 965808f684SSatish Balay# a list of builtin themes. 975808f684SSatish Balayhtml_theme = 'default' 985808f684SSatish Balay 995808f684SSatish Balay# Theme options are theme-specific and customize the look and feel of a theme 1005808f684SSatish Balay# further. For a list of options available for each theme, see the 1015808f684SSatish Balay# documentation. 1025808f684SSatish Balay# html_theme_options = {} 1035808f684SSatish Balay 1045808f684SSatish Balay# Add any paths that contain custom static files (such as style sheets) here, 1055808f684SSatish Balay# relative to this directory. They are copied after the builtin static files, 1065808f684SSatish Balay# so a file named "default.css" will overwrite the builtin "default.css". 1075808f684SSatish Balay# html_static_path = ['_static'] 1085808f684SSatish Balayhtml_static_path = [] 1095808f684SSatish Balay 1105808f684SSatish Balay# Custom sidebar templates, must be a dictionary that maps document names 1115808f684SSatish Balay# to template names. 1125808f684SSatish Balay# 1135808f684SSatish Balay# This is required for the alabaster theme 1145808f684SSatish Balay# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars 1155808f684SSatish Balay# html_sidebars = { 1165808f684SSatish Balay# '**': [ 1175808f684SSatish Balay# 'about.html', 1185808f684SSatish Balay# 'navigation.html', 1195808f684SSatish Balay# 'relations.html', # needs 'show_related': True theme option to display 1205808f684SSatish Balay# 'searchbox.html', 1215808f684SSatish Balay# 'donate.html', 1225808f684SSatish Balay# ] 1235808f684SSatish Balay# } 1245808f684SSatish Balay 1255808f684SSatish Balay# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, 1265808f684SSatish Balay# using the given strftime format. 1275808f684SSatish Balay#html_last_updated_fmt = '%b %d, %Y' 1285808f684SSatish Balay 1295808f684SSatish Balay# -- Options for HTMLHelp output ------------------------------------------ 1305808f684SSatish Balay 1315808f684SSatish Balay# Output file base name for HTML help builder. 1325808f684SSatish Balayhtmlhelp_basename = 'petsc4py-man' 1335808f684SSatish Balay 1345808f684SSatish Balay 1355808f684SSatish Balay# -- Options for LaTeX output --------------------------------------------- 1365808f684SSatish Balay 1375808f684SSatish Balaylatex_elements = { 1385808f684SSatish Balay# The paper size ('letterpaper' or 'a4paper'). 1395808f684SSatish Balay#'papersize': 'letterpaper', 1405808f684SSatish Balay'papersize': 'a4', 1415808f684SSatish Balay 1425808f684SSatish Balay# The font size ('10pt', '11pt' or '12pt'). 1435808f684SSatish Balay#'pointsize': '10pt', 1445808f684SSatish Balay 1455808f684SSatish Balay# Additional stuff for the LaTeX preamble. 1465808f684SSatish Balay#'preamble': '', 1475808f684SSatish Balay#'printmodindex': '', 1485808f684SSatish Balay#'printindex': '', 1495808f684SSatish Balay#'preamble' : '', 1505808f684SSatish Balay} 1515808f684SSatish Balay 1525808f684SSatish Balay# Grouping the document tree into LaTeX files. List of tuples 1535808f684SSatish Balay# (source start file, target name, title, 1545808f684SSatish Balay# author, documentclass [howto, manual, or own class]). 1555808f684SSatish Balaylatex_documents = [ 1565808f684SSatish Balay ('manual', 'petsc4py.tex', project, author, 'howto'), 1575808f684SSatish Balay] 1585808f684SSatish Balay 1595808f684SSatish Balay# The name of an image file (relative to this directory) to place at the top of 1605808f684SSatish Balay# the title page. 1615808f684SSatish Balay#latex_logo = None 1625808f684SSatish Balay 1635808f684SSatish Balay# -- Options for manual page output --------------------------------------- 1645808f684SSatish Balay 1655808f684SSatish Balay# One entry per manual page. List of tuples 1665808f684SSatish Balay# (source start file, name, description, authors, manual section). 1675808f684SSatish Balayman_pages = [ 1685808f684SSatish Balay (master_doc, 'petsc4py', project, [author], 1) 1695808f684SSatish Balay] 1705808f684SSatish Balay 1715808f684SSatish Balay# If true, show URL addresses after external links. 1725808f684SSatish Balay#man_show_urls = False 1735808f684SSatish Balay 1745808f684SSatish Balay# -- Options for Texinfo output ------------------------------------------- 1755808f684SSatish Balay 1765808f684SSatish Balay# Grouping the document tree into Texinfo files. List of tuples 1775808f684SSatish Balay# (source start file, target name, title, author, 1785808f684SSatish Balay# dir menu entry, description, category) 1795808f684SSatish Balaytexinfo_documents = [ 1805808f684SSatish Balay (master_doc, 'petsc4py', project, author, 1815808f684SSatish Balay 'petsc4py', project+u'.', 'Miscellaneous'), 1825808f684SSatish Balay] 1835808f684SSatish Balay 1845808f684SSatish Balay# -- Options for Epub output ---------------------------------------------- 1855808f684SSatish Balay 1865808f684SSatish Balay# Bibliographic Dublin Core info. 1875808f684SSatish Balayepub_title = project 1885808f684SSatish Balayepub_author = author 1895808f684SSatish Balayepub_publisher = author 1905808f684SSatish Balayepub_copyright = copyright 1915808f684SSatish Balay 1925808f684SSatish Balay# The unique identifier of the text. This can be a ISBN number 1935808f684SSatish Balay# or the project homepage. 1945808f684SSatish Balay# 1955808f684SSatish Balay# epub_identifier = '' 1965808f684SSatish Balay 1975808f684SSatish Balay# A unique identification for the text. 1985808f684SSatish Balay# 1995808f684SSatish Balay# epub_uid = '' 2005808f684SSatish Balay 2015808f684SSatish Balay# A list of files that should not be packed into the epub file. 2025808f684SSatish Balayepub_exclude_files = ['search.html'] 2035808f684SSatish Balay 2045808f684SSatish Balay 205