xref: /llvm-project/openmp/docs/conf.py (revision f98ee40f4b5d7474fc67e82824bf6abbaedb7b1c)
11c4c2148SJoseph Huber# -*- coding: utf-8 -*-
21c4c2148SJoseph Huber#
31c4c2148SJoseph Huber# LLDB documentation build configuration file, created by
41c4c2148SJoseph Huber# sphinx-quickstart on Sun Dec  9 20:01:55 2012.
51c4c2148SJoseph Huber#
61c4c2148SJoseph Huber# This file is execfile()d with the current directory set to its containing dir.
71c4c2148SJoseph Huber#
81c4c2148SJoseph Huber# Note that not all possible configuration values are present in this
91c4c2148SJoseph Huber# autogenerated file.
101c4c2148SJoseph Huber#
111c4c2148SJoseph Huber# All configuration values have a default; values that are commented out
121c4c2148SJoseph Huber# serve to show the default.
131c4c2148SJoseph Huber
141c4c2148SJoseph Huberimport sys, os
151c4c2148SJoseph Huberfrom datetime import date
161c4c2148SJoseph Huber
171c4c2148SJoseph Huber# If extensions (or modules to document with autodoc) are in another directory,
181c4c2148SJoseph Huber# add these directories to sys.path here. If the directory is relative to the
191c4c2148SJoseph Huber# documentation root, use os.path.abspath to make it absolute, like shown here.
201c4c2148SJoseph Huber# sys.path.insert(0, os.path.abspath('.'))
211c4c2148SJoseph Huber
221c4c2148SJoseph Huber# -- General configuration -----------------------------------------------------
231c4c2148SJoseph Huber
241c4c2148SJoseph Huber# If your documentation needs a minimal Sphinx version, state it here.
251c4c2148SJoseph Huber# needs_sphinx = '1.0'
261c4c2148SJoseph Huber
271c4c2148SJoseph Huber# Add any Sphinx extension module names here, as strings. They can be extensions
281c4c2148SJoseph Huber# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
29*f98ee40fSTobias Hietaextensions = ["sphinx.ext.todo", "sphinx.ext.mathjax", "sphinx.ext.intersphinx"]
301c4c2148SJoseph Huber
311c4c2148SJoseph Huber# Add any paths that contain templates here, relative to this directory.
32*f98ee40fSTobias Hietatemplates_path = ["_templates"]
331c4c2148SJoseph Huber
341c4c2148SJoseph Huber# The suffix of source filenames.
35*f98ee40fSTobias Hietasource_suffix = ".rst"
361c4c2148SJoseph Huber
371c4c2148SJoseph Huber# The encoding of source files.
381c4c2148SJoseph Huber# source_encoding = 'utf-8-sig'
391c4c2148SJoseph Huber
401c4c2148SJoseph Huber# The master toctree document.
41*f98ee40fSTobias Hietamaster_doc = "index"
421c4c2148SJoseph Huber
431c4c2148SJoseph Huber# General information about the project.
44*f98ee40fSTobias Hietaproject = "LLVM/OpenMP"
45*f98ee40fSTobias Hietacopyright = "2013-%d, LLVM/OpenMP" % date.today().year
461c4c2148SJoseph Huber
471c4c2148SJoseph Huber# The version info for the project you're documenting, acts as replacement for
481c4c2148SJoseph Huber# |version| and |release|, also used in various other places throughout the
491c4c2148SJoseph Huber# built documents. These are currently set to zero because we don't use them.
501c4c2148SJoseph Huber# Should somebody consider in the future to change them, they need to be updated
511c4c2148SJoseph Huber# everytime a new release comes out.
521c4c2148SJoseph Huber#
531c4c2148SJoseph Huber# The short version.
541c4c2148SJoseph Huber# version = '0'
551c4c2148SJoseph Huber# The full version, including alpha/beta/rc tags.
561c4c2148SJoseph Huber# release = '0'
571c4c2148SJoseph Huber
581c4c2148SJoseph Huber# The language for content autogenerated by Sphinx. Refer to documentation
591c4c2148SJoseph Huber# for a list of supported languages.
601c4c2148SJoseph Huber# language = None
611c4c2148SJoseph Huber
621c4c2148SJoseph Huber# There are two options for replacing |today|: either, you set today to some
631c4c2148SJoseph Huber# non-false value, then it is used:
641c4c2148SJoseph Huber# today = ''
651c4c2148SJoseph Huber# Else, today_fmt is used as the format for a strftime call.
661c4c2148SJoseph Huber# today_fmt = '%B %d, %Y'
671c4c2148SJoseph Huber
681c4c2148SJoseph Huber# List of patterns, relative to source directory, that match files and
691c4c2148SJoseph Huber# directories to ignore when looking for source files.
70*f98ee40fSTobias Hietaexclude_patterns = ["_build", "analyzer"]
711c4c2148SJoseph Huber
721c4c2148SJoseph Huber# The reST default role (used for this markup: `text`) to use for all documents.
731c4c2148SJoseph Huber# default_role = None
741c4c2148SJoseph Huber
751c4c2148SJoseph Huber# If true, '()' will be appended to :func: etc. cross-reference text.
761c4c2148SJoseph Huber# add_function_parentheses = True
771c4c2148SJoseph Huber
781c4c2148SJoseph Huber# If true, the current module name will be prepended to all description
791c4c2148SJoseph Huber# unit titles (such as .. function::).
801c4c2148SJoseph Huber# add_module_names = True
811c4c2148SJoseph Huber
821c4c2148SJoseph Huber# If true, sectionauthor and moduleauthor directives will be shown in the
831c4c2148SJoseph Huber# output. They are ignored by default.
841c4c2148SJoseph Hubershow_authors = True
851c4c2148SJoseph Huber
861c4c2148SJoseph Huber# The name of the Pygments (syntax highlighting) style to use.
87*f98ee40fSTobias Hietapygments_style = "friendly"
881c4c2148SJoseph Huber
891c4c2148SJoseph Huber# A list of ignored prefixes for module index sorting.
901c4c2148SJoseph Huber# modindex_common_prefix = []
911c4c2148SJoseph Huber
921c4c2148SJoseph Huber
931c4c2148SJoseph Huber# -- Options for HTML output ---------------------------------------------------
941c4c2148SJoseph Huber
951c4c2148SJoseph Huber# The theme to use for HTML and HTML Help pages.  See the documentation for
961c4c2148SJoseph Huber# a list of builtin themes.
97*f98ee40fSTobias Hietahtml_theme = "llvm-openmp-theme"
981c4c2148SJoseph Huber
991c4c2148SJoseph Huber# Theme options are theme-specific and customize the look and feel of a theme
1001c4c2148SJoseph Huber# further.  For a list of options available for each theme, see the
1011c4c2148SJoseph Huber# documentation.
1021c4c2148SJoseph Huber# html_theme_options = { 'font_size': '11pt' }
1031c4c2148SJoseph Huber
1041c4c2148SJoseph Huber# Add any paths that contain custom themes here, relative to this directory.
1051c4c2148SJoseph Huberhtml_theme_path = ["_themes"]
1061c4c2148SJoseph Huber
1071c4c2148SJoseph Huber# The name for this set of Sphinx documents.  If None, it defaults to
1081c4c2148SJoseph Huber# "<project> v<release> documentation".
1091c4c2148SJoseph Huber# html_title = 'OpenMP Parallel Programming API'
1101c4c2148SJoseph Huber
1111c4c2148SJoseph Huber# A shorter title for the navigation bar.  Default is the same as html_title.
1121c4c2148SJoseph Huber# html_short_title = None
1131c4c2148SJoseph Huber
1141c4c2148SJoseph Huber# The name of an image file (relative to this directory) to place at the top
1151c4c2148SJoseph Huber# of the sidebar.
1161c4c2148SJoseph Huber# html_logo = None
1171c4c2148SJoseph Huber
1181c4c2148SJoseph Huber# The name of an image file (within the static path) to use as favicon of the
1191c4c2148SJoseph Huber# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
1201c4c2148SJoseph Huber# pixels large.
1211c4c2148SJoseph Huber# html_favicon = None
1221c4c2148SJoseph Huber
1231c4c2148SJoseph Huber# Add any paths that contain custom static files (such as style sheets) here,
1241c4c2148SJoseph Huber# relative to this directory. They are copied after the builtin static files,
1251c4c2148SJoseph Huber# so a file named "default.css" will overwrite the builtin "default.css".
126*f98ee40fSTobias Hietahtml_static_path = ["_static"]
1271c4c2148SJoseph Huber
1281c4c2148SJoseph Huber# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
1291c4c2148SJoseph Huber# using the given strftime format.
130*f98ee40fSTobias Hietahtml_last_updated_fmt = "%Y-%m-%d"
1311c4c2148SJoseph Huber
1321c4c2148SJoseph Huber# If true, SmartyPants will be used to convert quotes and dashes to
1331c4c2148SJoseph Huber# typographically correct entities.
1341c4c2148SJoseph Huber# html_use_smartypants = True
1351c4c2148SJoseph Huber
1361c4c2148SJoseph Huber# Custom sidebar templates, maps document names to template names.
1371c4c2148SJoseph Huber# html_sidebars = {}
1381c4c2148SJoseph Huber
1391c4c2148SJoseph Huber# Additional templates that should be rendered to pages, maps page names to
1401c4c2148SJoseph Huber# template names.
1411c4c2148SJoseph Huber# html_additional_pages = {}
1421c4c2148SJoseph Huber
1431c4c2148SJoseph Huber# If false, no module index is generated.
1441c4c2148SJoseph Huber# html_domain_indices = True
1451c4c2148SJoseph Huber
1461c4c2148SJoseph Huber# If false, no index is generated.
1471c4c2148SJoseph Huber# html_use_index = True
1481c4c2148SJoseph Huber
1491c4c2148SJoseph Huber# If true, the index is split into individual pages for each letter.
1501c4c2148SJoseph Huber# html_split_index = False
1511c4c2148SJoseph Huber
1521c4c2148SJoseph Huber# If true, links to the reST sources are added to the pages.
1531c4c2148SJoseph Huber# html_show_sourcelink = True
1541c4c2148SJoseph Huber
1551c4c2148SJoseph Huber# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
1561c4c2148SJoseph Huber# html_show_sphinx = True
1571c4c2148SJoseph Huber
1581c4c2148SJoseph Huber# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
1591c4c2148SJoseph Huber# html_show_copyright = True
1601c4c2148SJoseph Huber
1611c4c2148SJoseph Huber# If true, an OpenSearch description file will be output, and all pages will
1621c4c2148SJoseph Huber# contain a <link> tag referring to it.  The value of this option must be the
1631c4c2148SJoseph Huber# base URL from which the finished HTML is served.
1641c4c2148SJoseph Huber# html_use_opensearch = ''
1651c4c2148SJoseph Huber
1661c4c2148SJoseph Huber# This is the file name suffix for HTML files (e.g. ".xhtml").
1671c4c2148SJoseph Huber# html_file_suffix = None
1681c4c2148SJoseph Huber
1691c4c2148SJoseph Huber# Output file base name for HTML help builder.
170*f98ee40fSTobias Hietahtmlhelp_basename = "OpenMPdoc"
1711c4c2148SJoseph Huber
1721c4c2148SJoseph Huber# If true, the reST sources are included in the HTML build as
1731c4c2148SJoseph Huber# _sources/name. The default is True.
1741c4c2148SJoseph Huberhtml_copy_source = False
1751c4c2148SJoseph Huber
1761c4c2148SJoseph Huber# -- Options for LaTeX output --------------------------------------------------
1771c4c2148SJoseph Huber
1781c4c2148SJoseph Huberlatex_elements = {
1791c4c2148SJoseph Huber    # The paper size ('letterpaper' or 'a4paper').
1801c4c2148SJoseph Huber    #'papersize': 'letterpaper',
1811c4c2148SJoseph Huber    # The font size ('10pt', '11pt' or '12pt').
1821c4c2148SJoseph Huber    #'pointsize': '10pt',
1831c4c2148SJoseph Huber    # Additional stuff for the LaTeX preamble.
1841c4c2148SJoseph Huber    #'preamble': '',
1851c4c2148SJoseph Huber}
1861c4c2148SJoseph Huber
1871c4c2148SJoseph Huber# Grouping the document tree into LaTeX files. List of tuples
1881c4c2148SJoseph Huber# (source start file, target name, title, author, documentclass [howto/manual]).
1891c4c2148SJoseph Huberlatex_documents = [
190*f98ee40fSTobias Hieta    ("index", "OpenMP.tex", "LLVM/OpenMP Documentation", "LLVM/OpenMP", "manual"),
1911c4c2148SJoseph Huber]
1921c4c2148SJoseph Huber
1931c4c2148SJoseph Huber# The name of an image file (relative to this directory) to place at the top of
1941c4c2148SJoseph Huber# the title page.
1951c4c2148SJoseph Huber# latex_logo = None
1961c4c2148SJoseph Huber
1971c4c2148SJoseph Huber# For "manual" documents, if this is true, then toplevel headings are parts,
1981c4c2148SJoseph Huber# not chapters.
1991c4c2148SJoseph Huber# latex_use_parts = False
2001c4c2148SJoseph Huber
2011c4c2148SJoseph Huber# If true, show page references after internal links.
2021c4c2148SJoseph Huber# latex_show_pagerefs = False
2031c4c2148SJoseph Huber
2041c4c2148SJoseph Huber# If true, show URL addresses after external links.
2051c4c2148SJoseph Huber# latex_show_urls = False
2061c4c2148SJoseph Huber
2071c4c2148SJoseph Huber# Documents to append as an appendix to all manuals.
2081c4c2148SJoseph Huber# latex_appendices = []
2091c4c2148SJoseph Huber
2101c4c2148SJoseph Huber# If false, no module index is generated.
2111c4c2148SJoseph Huber# latex_domain_indices = True
2121c4c2148SJoseph Huber
2131c4c2148SJoseph Huber
2141c4c2148SJoseph Huber# -- Options for manual page output --------------------------------------------
2151c4c2148SJoseph Huber
2161c4c2148SJoseph Huber# One entry per manual page. List of tuples
2171c4c2148SJoseph Huber# (source start file, name, description, authors, manual section).
2181c4c2148SJoseph Huber# man_pages = [('man/lldb', 'lldb', u'LLDB Documentation', [u'LLVM project'], 1)]
2191c4c2148SJoseph Huber
2201c4c2148SJoseph Huber# If true, show URL addresses after external links.
2211c4c2148SJoseph Huber# man_show_urls = False
2221c4c2148SJoseph Huber
2231c4c2148SJoseph Huber
2241c4c2148SJoseph Huber# -- Options for Texinfo output ------------------------------------------------
2251c4c2148SJoseph Huber
2261c4c2148SJoseph Huber# Grouping the document tree into Texinfo files. List of tuples
2271c4c2148SJoseph Huber# (source start file, target name, title, author,
2281c4c2148SJoseph Huber#  dir menu entry, description, category)
2291c4c2148SJoseph Hubertexinfo_documents = [
230*f98ee40fSTobias Hieta    (
231*f98ee40fSTobias Hieta        "index",
232*f98ee40fSTobias Hieta        "LLVM/OpenMP",
233*f98ee40fSTobias Hieta        "LLVM/OpenMP Documentation",
234*f98ee40fSTobias Hieta        "LLVM/OpenMP",
235*f98ee40fSTobias Hieta        "LLVM/OpenMP",
236*f98ee40fSTobias Hieta        "One line description of project.",
237*f98ee40fSTobias Hieta        "Miscellaneous",
238*f98ee40fSTobias Hieta    ),
2391c4c2148SJoseph Huber]
2401c4c2148SJoseph Huber
2411c4c2148SJoseph Huber# Documents to append as an appendix to all manuals.
2421c4c2148SJoseph Huber# texinfo_appendices = []
2431c4c2148SJoseph Huber
2441c4c2148SJoseph Huber# If false, no module index is generated.
2451c4c2148SJoseph Huber# texinfo_domain_indices = True
2461c4c2148SJoseph Huber
2471c4c2148SJoseph Huber# How to display URL addresses: 'footnote', 'no', or 'inline'.
2481c4c2148SJoseph Huber# texinfo_show_urls = 'footnote'
249