xref: /openbsd/gnu/llvm/libcxx/docs/conf.py (revision 4bdff4be)
146035553Spatrick# -*- coding: utf-8 -*-
246035553Spatrick#
346035553Spatrick# libc++ documentation build configuration file.
446035553Spatrick#
546035553Spatrick# This file is execfile()d with the current directory set to its containing dir.
646035553Spatrick#
746035553Spatrick# Note that not all possible configuration values are present in this
846035553Spatrick# autogenerated file.
946035553Spatrick#
1046035553Spatrick# All configuration values have a default; values that are commented out
1146035553Spatrick# serve to show the default.
1246035553Spatrick
1346035553Spatrickimport sys, os
1476d0caaeSpatrickfrom datetime import date
1546035553Spatrick
1646035553Spatrick# If extensions (or modules to document with autodoc) are in another directory,
1746035553Spatrick# add these directories to sys.path here. If the directory is relative to the
1846035553Spatrick# documentation root, use os.path.abspath to make it absolute, like shown here.
1946035553Spatrick#sys.path.insert(0, os.path.abspath('.'))
2046035553Spatrick
2146035553Spatrick# -- General configuration -----------------------------------------------------
2246035553Spatrick
2346035553Spatrick# If your documentation needs a minimal Sphinx version, state it here.
2446035553Spatrick#needs_sphinx = '1.0'
2546035553Spatrick
2646035553Spatrick# Add any Sphinx extension module names here, as strings. They can be extensions
2746035553Spatrick# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
2846035553Spatrickextensions = ['sphinx.ext.intersphinx', 'sphinx.ext.todo']
2946035553Spatrick
3046035553Spatrick# Add any paths that contain templates here, relative to this directory.
3146035553Spatricktemplates_path = ['_templates']
3246035553Spatrick
3346035553Spatrick# The suffix of source filenames.
3446035553Spatricksource_suffix = '.rst'
3546035553Spatrick
3646035553Spatrick# The encoding of source files.
3746035553Spatrick#source_encoding = 'utf-8-sig'
3846035553Spatrick
3946035553Spatrick# The master toctree document.
4046035553Spatrickmaster_doc = 'index'
4146035553Spatrick
4246035553Spatrick# General information about the project.
4346035553Spatrickproject = u'libc++'
4476d0caaeSpatrickcopyright = u'2011-%d, LLVM Project' % date.today().year
4546035553Spatrick
4646035553Spatrick# The version info for the project you're documenting, acts as replacement for
4746035553Spatrick# |version| and |release|, also used in various other places throughout the
4846035553Spatrick# built documents.
4946035553Spatrick#
5046035553Spatrick# The short X.Y version.
51*4bdff4beSrobertversion = '16.0'
5246035553Spatrick# The full version, including alpha/beta/rc tags.
53*4bdff4beSrobertrelease = '16.0'
5446035553Spatrick
5546035553Spatrick# The language for content autogenerated by Sphinx. Refer to documentation
5646035553Spatrick# for a list of supported languages.
5746035553Spatrick#language = None
5846035553Spatrick
5946035553Spatrick# There are two options for replacing |today|: either, you set today to some
6046035553Spatrick# non-false value, then it is used:
6146035553Spatrick#today = ''
6246035553Spatrick# Else, today_fmt is used as the format for a strftime call.
6346035553Spatricktoday_fmt = '%Y-%m-%d'
6446035553Spatrick
6546035553Spatrick# List of patterns, relative to source directory, that match files and
6646035553Spatrick# directories to ignore when looking for source files.
6776d0caaeSpatrickexclude_patterns = ['_build', 'Helpers']
6846035553Spatrick
6946035553Spatrick# The reST default role (used for this markup: `text`) to use for all documents.
7046035553Spatrick#default_role = None
7146035553Spatrick
7246035553Spatrick# If true, '()' will be appended to :func: etc. cross-reference text.
7346035553Spatrick#add_function_parentheses = True
7446035553Spatrick
7546035553Spatrick# If true, the current module name will be prepended to all description
7646035553Spatrick# unit titles (such as .. function::).
7746035553Spatrick#add_module_names = True
7846035553Spatrick
7946035553Spatrick# If true, sectionauthor and moduleauthor directives will be shown in the
8046035553Spatrick# output. They are ignored by default.
8146035553Spatrickshow_authors = True
8246035553Spatrick
8346035553Spatrick# The name of the Pygments (syntax highlighting) style to use.
8446035553Spatrickpygments_style = 'friendly'
8546035553Spatrick
8646035553Spatrick# A list of ignored prefixes for module index sorting.
8746035553Spatrick#modindex_common_prefix = []
8846035553Spatrick
8946035553Spatrick
9046035553Spatrick# -- Options for HTML output ---------------------------------------------------
9146035553Spatrick
9246035553Spatrick# The theme to use for HTML and HTML Help pages.  See the documentation for
9346035553Spatrick# a list of builtin themes.
9446035553Spatrickhtml_theme = 'haiku'
9546035553Spatrick
9646035553Spatrick# Theme options are theme-specific and customize the look and feel of a theme
9746035553Spatrick# further.  For a list of options available for each theme, see the
9846035553Spatrick# documentation.
9946035553Spatrick#html_theme_options = {}
10046035553Spatrick
10146035553Spatrick# Add any paths that contain custom themes here, relative to this directory.
10246035553Spatrick#html_theme_path = []
10346035553Spatrick
10446035553Spatrick# The name for this set of Sphinx documents.  If None, it defaults to
10546035553Spatrick# "<project> v<release> documentation".
10646035553Spatrick#html_title = None
10746035553Spatrick
10846035553Spatrick# A shorter title for the navigation bar.  Default is the same as html_title.
10946035553Spatrick#html_short_title = None
11046035553Spatrick
11146035553Spatrick# The name of an image file (relative to this directory) to place at the top
11246035553Spatrick# of the sidebar.
11346035553Spatrick#html_logo = None
11446035553Spatrick
11546035553Spatrick# The name of an image file (within the static path) to use as favicon of the
11646035553Spatrick# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
11746035553Spatrick# pixels large.
11846035553Spatrick#html_favicon = None
11946035553Spatrick
12046035553Spatrick# Add any paths that contain custom static files (such as style sheets) here,
12146035553Spatrick# relative to this directory. They are copied after the builtin static files,
12246035553Spatrick# so a file named "default.css" will overwrite the builtin "default.css".
12346035553Spatrickhtml_static_path = []
12446035553Spatrick
12546035553Spatrick# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
12646035553Spatrick# using the given strftime format.
12746035553Spatrick#html_last_updated_fmt = '%b %d, %Y'
12846035553Spatrick
12946035553Spatrick# If true, SmartyPants will be used to convert quotes and dashes to
13046035553Spatrick# typographically correct entities.
13146035553Spatrick#html_use_smartypants = True
13246035553Spatrick
13346035553Spatrick# Custom sidebar templates, maps document names to template names.
13446035553Spatrick#html_sidebars = {}
13546035553Spatrick
13646035553Spatrick# Additional templates that should be rendered to pages, maps page names to
13746035553Spatrick# template names.
13846035553Spatrick#html_additional_pages = {}
13946035553Spatrick
14046035553Spatrick# If false, no module index is generated.
14146035553Spatrick#html_domain_indices = True
14246035553Spatrick
14346035553Spatrick# If false, no index is generated.
14446035553Spatrick#html_use_index = True
14546035553Spatrick
14646035553Spatrick# If true, the index is split into individual pages for each letter.
14746035553Spatrick#html_split_index = False
14846035553Spatrick
14946035553Spatrick# If true, links to the reST sources are added to the pages.
15046035553Spatrick#html_show_sourcelink = True
15146035553Spatrick
15246035553Spatrick# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
15346035553Spatrick#html_show_sphinx = True
15446035553Spatrick
15546035553Spatrick# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
15646035553Spatrick#html_show_copyright = True
15746035553Spatrick
15846035553Spatrick# If true, an OpenSearch description file will be output, and all pages will
15946035553Spatrick# contain a <link> tag referring to it.  The value of this option must be the
16046035553Spatrick# base URL from which the finished HTML is served.
16146035553Spatrick#html_use_opensearch = ''
16246035553Spatrick
16346035553Spatrick# This is the file name suffix for HTML files (e.g. ".xhtml").
16446035553Spatrick#html_file_suffix = None
16546035553Spatrick
16646035553Spatrick# Output file base name for HTML help builder.
16746035553Spatrickhtmlhelp_basename = 'libcxxdoc'
16846035553Spatrick
16946035553Spatrick
17046035553Spatrick# -- Options for LaTeX output --------------------------------------------------
17146035553Spatrick
17246035553Spatricklatex_elements = {
17346035553Spatrick# The paper size ('letterpaper' or 'a4paper').
17446035553Spatrick#'papersize': 'letterpaper',
17546035553Spatrick
17646035553Spatrick# The font size ('10pt', '11pt' or '12pt').
17746035553Spatrick#'pointsize': '10pt',
17846035553Spatrick
17946035553Spatrick# Additional stuff for the LaTeX preamble.
18046035553Spatrick#'preamble': '',
18146035553Spatrick}
18246035553Spatrick
18346035553Spatrick# Grouping the document tree into LaTeX files. List of tuples
18446035553Spatrick# (source start file, target name, title, author, documentclass [howto/manual]).
18546035553Spatricklatex_documents = [
18646035553Spatrick  ('contents', 'libcxx.tex', u'libcxx Documentation',
18746035553Spatrick   u'LLVM project', 'manual'),
18846035553Spatrick]
18946035553Spatrick
19046035553Spatrick# The name of an image file (relative to this directory) to place at the top of
19146035553Spatrick# the title page.
19246035553Spatrick#latex_logo = None
19346035553Spatrick
19446035553Spatrick# For "manual" documents, if this is true, then toplevel headings are parts,
19546035553Spatrick# not chapters.
19646035553Spatrick#latex_use_parts = False
19746035553Spatrick
19846035553Spatrick# If true, show page references after internal links.
19946035553Spatrick#latex_show_pagerefs = False
20046035553Spatrick
20146035553Spatrick# If true, show URL addresses after external links.
20246035553Spatrick#latex_show_urls = False
20346035553Spatrick
20446035553Spatrick# Documents to append as an appendix to all manuals.
20546035553Spatrick#latex_appendices = []
20646035553Spatrick
20746035553Spatrick# If false, no module index is generated.
20846035553Spatrick#latex_domain_indices = True
20946035553Spatrick
21046035553Spatrick
21146035553Spatrick# -- Options for manual page output --------------------------------------------
21246035553Spatrick
21346035553Spatrick# One entry per manual page. List of tuples
21446035553Spatrick# (source start file, name, description, authors, manual section).
21546035553Spatrickman_pages = [
21646035553Spatrick    ('contents', 'libc++', u'libc++ Documentation',
21746035553Spatrick     [u'LLVM project'], 1)
21846035553Spatrick]
21946035553Spatrick
22046035553Spatrick# If true, show URL addresses after external links.
22146035553Spatrick#man_show_urls = False
22246035553Spatrick
22346035553Spatrick
22446035553Spatrick# -- Options for Texinfo output ------------------------------------------------
22546035553Spatrick
22646035553Spatrick# Grouping the document tree into Texinfo files. List of tuples
22746035553Spatrick# (source start file, target name, title, author,
22846035553Spatrick#  dir menu entry, description, category)
22946035553Spatricktexinfo_documents = [
23046035553Spatrick  ('contents', 'libc++', u'libc++ Documentation',
23146035553Spatrick   u'LLVM project', 'libc++', 'One line description of project.',
23246035553Spatrick   'Miscellaneous'),
23346035553Spatrick]
23446035553Spatrick
23546035553Spatrick# Documents to append as an appendix to all manuals.
23646035553Spatrick#texinfo_appendices = []
23746035553Spatrick
23846035553Spatrick# If false, no module index is generated.
23946035553Spatrick#texinfo_domain_indices = True
24046035553Spatrick
24146035553Spatrick# How to display URL addresses: 'footnote', 'no', or 'inline'.
24246035553Spatrick#texinfo_show_urls = 'footnote'
24346035553Spatrick
24446035553Spatrick
24546035553Spatrick# FIXME: Define intersphinx configuration.
24646035553Spatrickintersphinx_mapping = {}
24746035553Spatrick
24846035553Spatrick
24946035553Spatrick# -- Options for extensions ----------------------------------------------------
25046035553Spatrick
25146035553Spatrick# Enable this if you want TODOs to show up in the generated documentation.
25246035553Spatricktodo_include_todos = True
253