xref: /netbsd-src/external/gpl3/gcc.old/dist/gcc/jit/docs/conf.py (revision 8feb0f0b7eaff0608f8350bbfa3098827b4bb91b)
136ac495dSmrg# -*- coding: utf-8 -*-
236ac495dSmrg#
336ac495dSmrg# libgccjit documentation build configuration file, created by
436ac495dSmrg# sphinx-quickstart on Wed Jul 30 13:39:01 2014.
536ac495dSmrg#
636ac495dSmrg# This file is execfile()d with the current directory set to its containing dir.
736ac495dSmrg#
836ac495dSmrg# Note that not all possible configuration values are present in this
936ac495dSmrg# autogenerated file.
1036ac495dSmrg#
1136ac495dSmrg# All configuration values have a default; values that are commented out
1236ac495dSmrg# serve to show the default.
1336ac495dSmrg
1436ac495dSmrgimport sys, os
1536ac495dSmrg
1636ac495dSmrg# If extensions (or modules to document with autodoc) are in another directory,
1736ac495dSmrg# add these directories to sys.path here. If the directory is relative to the
1836ac495dSmrg# documentation root, use os.path.abspath to make it absolute, like shown here.
1936ac495dSmrg#sys.path.insert(0, os.path.abspath('.'))
2036ac495dSmrg
2136ac495dSmrg# -- General configuration -----------------------------------------------------
2236ac495dSmrg
2336ac495dSmrg# If your documentation needs a minimal Sphinx version, state it here.
2436ac495dSmrg#needs_sphinx = '1.0'
2536ac495dSmrg
2636ac495dSmrg# Add any Sphinx extension module names here, as strings. They can be extensions
2736ac495dSmrg# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
2836ac495dSmrgextensions = []
2936ac495dSmrg
3036ac495dSmrg# Add any paths that contain templates here, relative to this directory.
3136ac495dSmrgtemplates_path = ['_templates']
3236ac495dSmrg
3336ac495dSmrg# The suffix of source filenames.
3436ac495dSmrgsource_suffix = '.rst'
3536ac495dSmrg
3636ac495dSmrg# The encoding of source files.
3736ac495dSmrg#source_encoding = 'utf-8-sig'
3836ac495dSmrg
3936ac495dSmrg# The master toctree document.
4036ac495dSmrgmaster_doc = 'index'
4136ac495dSmrg
4236ac495dSmrg# General information about the project.
4336ac495dSmrgproject = u'libgccjit'
44*8feb0f0bSmrgcopyright = u'2014-2020 Free Software Foundation, Inc.'
4536ac495dSmrg
4636ac495dSmrg# GCC-specific: extract version information from "gcc" src subdir for
4736ac495dSmrg# use in "version" and "release" below.
4836ac495dSmrgdef __read_file(name):
4936ac495dSmrg    gcc_srcdir = '../..'
5036ac495dSmrg    path = os.path.join(gcc_srcdir, name)
5136ac495dSmrg    if os.path.exists(path):
5236ac495dSmrg        return open(path).read().strip()
5336ac495dSmrg    else:
5436ac495dSmrg        return ''
5536ac495dSmrggcc_BASEVER = __read_file('BASE-VER')
5636ac495dSmrggcc_DEVPHASE = __read_file('DEV-PHASE')
5736ac495dSmrggcc_DATESTAMP = __read_file('DATESTAMP')
5836ac495dSmrggcc_REVISION = __read_file('REVISION')
5936ac495dSmrg
6036ac495dSmrg# The version info for the project you're documenting, acts as replacement for
6136ac495dSmrg# |version| and |release|, also used in various other places throughout the
6236ac495dSmrg# built documents.
6336ac495dSmrg#
6436ac495dSmrg# The short X.Y version.
6536ac495dSmrgversion = gcc_BASEVER
6636ac495dSmrg# The full version, including alpha/beta/rc tags.
6736ac495dSmrgrelease = ('%s (%s %s%s)'
6836ac495dSmrg           % (gcc_BASEVER, gcc_DEVPHASE, gcc_DATESTAMP,
6936ac495dSmrg              (' %s' % gcc_REVISION) if gcc_REVISION else ''))
7036ac495dSmrg
7136ac495dSmrg# The language for content autogenerated by Sphinx. Refer to documentation
7236ac495dSmrg# for a list of supported languages.
7336ac495dSmrg#language = None
7436ac495dSmrg
7536ac495dSmrg# There are two options for replacing |today|: either, you set today to some
7636ac495dSmrg# non-false value, then it is used:
7736ac495dSmrg#today = ''
7836ac495dSmrg# Else, today_fmt is used as the format for a strftime call.
7936ac495dSmrg#today_fmt = '%B %d, %Y'
8036ac495dSmrg
8136ac495dSmrg# List of patterns, relative to source directory, that match files and
8236ac495dSmrg# directories to ignore when looking for source files.
8336ac495dSmrgexclude_patterns = ['_build']
8436ac495dSmrg
8536ac495dSmrg# The reST default role (used for this markup: `text`) to use for all documents.
8636ac495dSmrg#default_role = None
8736ac495dSmrg
8836ac495dSmrg# If true, '()' will be appended to :func: etc. cross-reference text.
8936ac495dSmrg#add_function_parentheses = True
9036ac495dSmrg
9136ac495dSmrg# If true, the current module name will be prepended to all description
9236ac495dSmrg# unit titles (such as .. function::).
9336ac495dSmrg#add_module_names = True
9436ac495dSmrg
9536ac495dSmrg# If true, sectionauthor and moduleauthor directives will be shown in the
9636ac495dSmrg# output. They are ignored by default.
9736ac495dSmrg#show_authors = False
9836ac495dSmrg
9936ac495dSmrg# The name of the Pygments (syntax highlighting) style to use.
10036ac495dSmrgpygments_style = 'sphinx'
10136ac495dSmrg
10236ac495dSmrg# A list of ignored prefixes for module index sorting.
10336ac495dSmrg#modindex_common_prefix = []
10436ac495dSmrg
10536ac495dSmrg
10636ac495dSmrg# -- Options for HTML output ---------------------------------------------------
10736ac495dSmrg
10836ac495dSmrg# The theme to use for HTML and HTML Help pages.  See the documentation for
10936ac495dSmrg# a list of builtin themes.
11036ac495dSmrghtml_theme = 'sphinxdoc'
11136ac495dSmrg
11236ac495dSmrg# Theme options are theme-specific and customize the look and feel of a theme
11336ac495dSmrg# further.  For a list of options available for each theme, see the
11436ac495dSmrg# documentation.
11536ac495dSmrg#html_theme_options = {}
11636ac495dSmrg
11736ac495dSmrg# Add any paths that contain custom themes here, relative to this directory.
11836ac495dSmrg#html_theme_path = []
11936ac495dSmrg
12036ac495dSmrg# The name for this set of Sphinx documents.  If None, it defaults to
12136ac495dSmrg# "<project> v<release> documentation".
12236ac495dSmrg#html_title = None
12336ac495dSmrg
12436ac495dSmrg# A shorter title for the navigation bar.  Default is the same as html_title.
12536ac495dSmrg#html_short_title = None
12636ac495dSmrg
12736ac495dSmrg# The name of an image file (relative to this directory) to place at the top
12836ac495dSmrg# of the sidebar.
12936ac495dSmrg#html_logo = None
13036ac495dSmrg
13136ac495dSmrg# The name of an image file (within the static path) to use as favicon of the
13236ac495dSmrg# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
13336ac495dSmrg# pixels large.
13436ac495dSmrg#html_favicon = None
13536ac495dSmrg
13636ac495dSmrg# Add any paths that contain custom static files (such as style sheets) here,
13736ac495dSmrg# relative to this directory. They are copied after the builtin static files,
13836ac495dSmrg# so a file named "default.css" will overwrite the builtin "default.css".
13936ac495dSmrghtml_static_path = ['_static']
14036ac495dSmrg
14136ac495dSmrg# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
14236ac495dSmrg# using the given strftime format.
14336ac495dSmrg#html_last_updated_fmt = '%b %d, %Y'
14436ac495dSmrg
14536ac495dSmrg# If true, SmartyPants will be used to convert quotes and dashes to
14636ac495dSmrg# typographically correct entities.
14736ac495dSmrg#html_use_smartypants = True
14836ac495dSmrg
14936ac495dSmrg# Custom sidebar templates, maps document names to template names.
15036ac495dSmrg#html_sidebars = {}
15136ac495dSmrg
15236ac495dSmrg# Additional templates that should be rendered to pages, maps page names to
15336ac495dSmrg# template names.
15436ac495dSmrg#html_additional_pages = {}
15536ac495dSmrg
15636ac495dSmrg# If false, no module index is generated.
15736ac495dSmrg#html_domain_indices = True
15836ac495dSmrg
15936ac495dSmrg# If false, no index is generated.
16036ac495dSmrg#html_use_index = True
16136ac495dSmrg
16236ac495dSmrg# If true, the index is split into individual pages for each letter.
16336ac495dSmrg#html_split_index = False
16436ac495dSmrg
16536ac495dSmrg# If true, links to the reST sources are added to the pages.
16636ac495dSmrg#html_show_sourcelink = True
16736ac495dSmrg
16836ac495dSmrg# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
16936ac495dSmrg#html_show_sphinx = True
17036ac495dSmrg
17136ac495dSmrg# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
17236ac495dSmrg#html_show_copyright = True
17336ac495dSmrg
17436ac495dSmrg# If true, an OpenSearch description file will be output, and all pages will
17536ac495dSmrg# contain a <link> tag referring to it.  The value of this option must be the
17636ac495dSmrg# base URL from which the finished HTML is served.
17736ac495dSmrg#html_use_opensearch = ''
17836ac495dSmrg
17936ac495dSmrg# This is the file name suffix for HTML files (e.g. ".xhtml").
18036ac495dSmrg#html_file_suffix = None
18136ac495dSmrg
18236ac495dSmrg# Output file base name for HTML help builder.
18336ac495dSmrghtmlhelp_basename = 'libgccjitdoc'
18436ac495dSmrg
18536ac495dSmrg
18636ac495dSmrg# -- Options for LaTeX output --------------------------------------------------
18736ac495dSmrg
18836ac495dSmrglatex_elements = {
18936ac495dSmrg# The paper size ('letterpaper' or 'a4paper').
19036ac495dSmrg#'papersize': 'letterpaper',
19136ac495dSmrg
19236ac495dSmrg# The font size ('10pt', '11pt' or '12pt').
19336ac495dSmrg#'pointsize': '10pt',
19436ac495dSmrg
19536ac495dSmrg# Additional stuff for the LaTeX preamble.
19636ac495dSmrg#'preamble': '',
19736ac495dSmrg}
19836ac495dSmrg
19936ac495dSmrg# Grouping the document tree into LaTeX files. List of tuples
20036ac495dSmrg# (source start file, target name, title, author, documentclass [howto/manual]).
20136ac495dSmrglatex_documents = [
20236ac495dSmrg  ('index', 'libgccjit.tex', u'libgccjit Documentation',
20336ac495dSmrg   u'David Malcolm', 'manual'),
20436ac495dSmrg]
20536ac495dSmrg
20636ac495dSmrg# The name of an image file (relative to this directory) to place at the top of
20736ac495dSmrg# the title page.
20836ac495dSmrg#latex_logo = None
20936ac495dSmrg
21036ac495dSmrg# For "manual" documents, if this is true, then toplevel headings are parts,
21136ac495dSmrg# not chapters.
21236ac495dSmrg#latex_use_parts = False
21336ac495dSmrg
21436ac495dSmrg# If true, show page references after internal links.
21536ac495dSmrg#latex_show_pagerefs = False
21636ac495dSmrg
21736ac495dSmrg# If true, show URL addresses after external links.
21836ac495dSmrg#latex_show_urls = False
21936ac495dSmrg
22036ac495dSmrg# Documents to append as an appendix to all manuals.
22136ac495dSmrg#latex_appendices = []
22236ac495dSmrg
22336ac495dSmrg# If false, no module index is generated.
22436ac495dSmrg#latex_domain_indices = True
22536ac495dSmrg
22636ac495dSmrg
22736ac495dSmrg# -- Options for manual page output --------------------------------------------
22836ac495dSmrg
22936ac495dSmrg# One entry per manual page. List of tuples
23036ac495dSmrg# (source start file, name, description, authors, manual section).
23136ac495dSmrgman_pages = [
23236ac495dSmrg    ('index', 'libgccjit', u'libgccjit Documentation',
23336ac495dSmrg     [u'David Malcolm'], 1)
23436ac495dSmrg]
23536ac495dSmrg
23636ac495dSmrg# If true, show URL addresses after external links.
23736ac495dSmrg#man_show_urls = False
23836ac495dSmrg
23936ac495dSmrg
24036ac495dSmrg# -- Options for Texinfo output ------------------------------------------------
24136ac495dSmrg
24236ac495dSmrg# Grouping the document tree into Texinfo files. List of tuples
24336ac495dSmrg# (source start file, target name, title, author,
24436ac495dSmrg#  dir menu entry, description, category)
24536ac495dSmrgtexinfo_documents = [
24636ac495dSmrg  ('index', 'libgccjit', u'libgccjit Documentation',
24736ac495dSmrg   u'David Malcolm', 'libgccjit', 'One line description of project.',
24836ac495dSmrg   'Miscellaneous'),
24936ac495dSmrg]
25036ac495dSmrg
25136ac495dSmrg# Documents to append as an appendix to all manuals.
25236ac495dSmrg#texinfo_appendices = []
25336ac495dSmrg
25436ac495dSmrg# If false, no module index is generated.
25536ac495dSmrg#texinfo_domain_indices = True
25636ac495dSmrg
25736ac495dSmrg# How to display URL addresses: 'footnote', 'no', or 'inline'.
25836ac495dSmrg#texinfo_show_urls = 'footnote'
259