xref: /aosp_15_r20/external/libcxx/docs/conf.py (revision 58b9f456b02922dfdb1fad8a988d5fd8765ecb80)
1*58b9f456SAndroid Build Coastguard Worker# -*- coding: utf-8 -*-
2*58b9f456SAndroid Build Coastguard Worker#
3*58b9f456SAndroid Build Coastguard Worker# libc++ documentation build configuration file.
4*58b9f456SAndroid Build Coastguard Worker#
5*58b9f456SAndroid Build Coastguard Worker# This file is execfile()d with the current directory set to its containing dir.
6*58b9f456SAndroid Build Coastguard Worker#
7*58b9f456SAndroid Build Coastguard Worker# Note that not all possible configuration values are present in this
8*58b9f456SAndroid Build Coastguard Worker# autogenerated file.
9*58b9f456SAndroid Build Coastguard Worker#
10*58b9f456SAndroid Build Coastguard Worker# All configuration values have a default; values that are commented out
11*58b9f456SAndroid Build Coastguard Worker# serve to show the default.
12*58b9f456SAndroid Build Coastguard Worker
13*58b9f456SAndroid Build Coastguard Workerimport sys, os
14*58b9f456SAndroid Build Coastguard Worker
15*58b9f456SAndroid Build Coastguard Worker# If extensions (or modules to document with autodoc) are in another directory,
16*58b9f456SAndroid Build Coastguard Worker# add these directories to sys.path here. If the directory is relative to the
17*58b9f456SAndroid Build Coastguard Worker# documentation root, use os.path.abspath to make it absolute, like shown here.
18*58b9f456SAndroid Build Coastguard Worker#sys.path.insert(0, os.path.abspath('.'))
19*58b9f456SAndroid Build Coastguard Worker
20*58b9f456SAndroid Build Coastguard Worker# -- General configuration -----------------------------------------------------
21*58b9f456SAndroid Build Coastguard Worker
22*58b9f456SAndroid Build Coastguard Worker# If your documentation needs a minimal Sphinx version, state it here.
23*58b9f456SAndroid Build Coastguard Worker#needs_sphinx = '1.0'
24*58b9f456SAndroid Build Coastguard Worker
25*58b9f456SAndroid Build Coastguard Worker# Add any Sphinx extension module names here, as strings. They can be extensions
26*58b9f456SAndroid Build Coastguard Worker# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
27*58b9f456SAndroid Build Coastguard Workerextensions = ['sphinx.ext.intersphinx', 'sphinx.ext.todo']
28*58b9f456SAndroid Build Coastguard Worker
29*58b9f456SAndroid Build Coastguard Worker# Add any paths that contain templates here, relative to this directory.
30*58b9f456SAndroid Build Coastguard Workertemplates_path = ['_templates']
31*58b9f456SAndroid Build Coastguard Worker
32*58b9f456SAndroid Build Coastguard Worker# The suffix of source filenames.
33*58b9f456SAndroid Build Coastguard Workersource_suffix = '.rst'
34*58b9f456SAndroid Build Coastguard Worker
35*58b9f456SAndroid Build Coastguard Worker# The encoding of source files.
36*58b9f456SAndroid Build Coastguard Worker#source_encoding = 'utf-8-sig'
37*58b9f456SAndroid Build Coastguard Worker
38*58b9f456SAndroid Build Coastguard Worker# The master toctree document.
39*58b9f456SAndroid Build Coastguard Workermaster_doc = 'index'
40*58b9f456SAndroid Build Coastguard Worker
41*58b9f456SAndroid Build Coastguard Worker# General information about the project.
42*58b9f456SAndroid Build Coastguard Workerproject = u'libc++'
43*58b9f456SAndroid Build Coastguard Workercopyright = u'2011-2018, LLVM Project'
44*58b9f456SAndroid Build Coastguard Worker
45*58b9f456SAndroid Build Coastguard Worker# The version info for the project you're documenting, acts as replacement for
46*58b9f456SAndroid Build Coastguard Worker# |version| and |release|, also used in various other places throughout the
47*58b9f456SAndroid Build Coastguard Worker# built documents.
48*58b9f456SAndroid Build Coastguard Worker#
49*58b9f456SAndroid Build Coastguard Worker# The short X.Y version.
50*58b9f456SAndroid Build Coastguard Workerversion = '8.0'
51*58b9f456SAndroid Build Coastguard Worker# The full version, including alpha/beta/rc tags.
52*58b9f456SAndroid Build Coastguard Workerrelease = '8.0'
53*58b9f456SAndroid Build Coastguard Worker
54*58b9f456SAndroid Build Coastguard Worker# The language for content autogenerated by Sphinx. Refer to documentation
55*58b9f456SAndroid Build Coastguard Worker# for a list of supported languages.
56*58b9f456SAndroid Build Coastguard Worker#language = None
57*58b9f456SAndroid Build Coastguard Worker
58*58b9f456SAndroid Build Coastguard Worker# There are two options for replacing |today|: either, you set today to some
59*58b9f456SAndroid Build Coastguard Worker# non-false value, then it is used:
60*58b9f456SAndroid Build Coastguard Worker#today = ''
61*58b9f456SAndroid Build Coastguard Worker# Else, today_fmt is used as the format for a strftime call.
62*58b9f456SAndroid Build Coastguard Workertoday_fmt = '%Y-%m-%d'
63*58b9f456SAndroid Build Coastguard Worker
64*58b9f456SAndroid Build Coastguard Worker# List of patterns, relative to source directory, that match files and
65*58b9f456SAndroid Build Coastguard Worker# directories to ignore when looking for source files.
66*58b9f456SAndroid Build Coastguard Workerexclude_patterns = ['_build']
67*58b9f456SAndroid Build Coastguard Worker
68*58b9f456SAndroid Build Coastguard Worker# The reST default role (used for this markup: `text`) to use for all documents.
69*58b9f456SAndroid Build Coastguard Worker#default_role = None
70*58b9f456SAndroid Build Coastguard Worker
71*58b9f456SAndroid Build Coastguard Worker# If true, '()' will be appended to :func: etc. cross-reference text.
72*58b9f456SAndroid Build Coastguard Worker#add_function_parentheses = True
73*58b9f456SAndroid Build Coastguard Worker
74*58b9f456SAndroid Build Coastguard Worker# If true, the current module name will be prepended to all description
75*58b9f456SAndroid Build Coastguard Worker# unit titles (such as .. function::).
76*58b9f456SAndroid Build Coastguard Worker#add_module_names = True
77*58b9f456SAndroid Build Coastguard Worker
78*58b9f456SAndroid Build Coastguard Worker# If true, sectionauthor and moduleauthor directives will be shown in the
79*58b9f456SAndroid Build Coastguard Worker# output. They are ignored by default.
80*58b9f456SAndroid Build Coastguard Workershow_authors = True
81*58b9f456SAndroid Build Coastguard Worker
82*58b9f456SAndroid Build Coastguard Worker# The name of the Pygments (syntax highlighting) style to use.
83*58b9f456SAndroid Build Coastguard Workerpygments_style = 'friendly'
84*58b9f456SAndroid Build Coastguard Worker
85*58b9f456SAndroid Build Coastguard Worker# A list of ignored prefixes for module index sorting.
86*58b9f456SAndroid Build Coastguard Worker#modindex_common_prefix = []
87*58b9f456SAndroid Build Coastguard Worker
88*58b9f456SAndroid Build Coastguard Worker
89*58b9f456SAndroid Build Coastguard Worker# -- Options for HTML output ---------------------------------------------------
90*58b9f456SAndroid Build Coastguard Worker
91*58b9f456SAndroid Build Coastguard Worker# The theme to use for HTML and HTML Help pages.  See the documentation for
92*58b9f456SAndroid Build Coastguard Worker# a list of builtin themes.
93*58b9f456SAndroid Build Coastguard Workerhtml_theme = 'haiku'
94*58b9f456SAndroid Build Coastguard Worker
95*58b9f456SAndroid Build Coastguard Worker# Theme options are theme-specific and customize the look and feel of a theme
96*58b9f456SAndroid Build Coastguard Worker# further.  For a list of options available for each theme, see the
97*58b9f456SAndroid Build Coastguard Worker# documentation.
98*58b9f456SAndroid Build Coastguard Worker#html_theme_options = {}
99*58b9f456SAndroid Build Coastguard Worker
100*58b9f456SAndroid Build Coastguard Worker# Add any paths that contain custom themes here, relative to this directory.
101*58b9f456SAndroid Build Coastguard Worker#html_theme_path = []
102*58b9f456SAndroid Build Coastguard Worker
103*58b9f456SAndroid Build Coastguard Worker# The name for this set of Sphinx documents.  If None, it defaults to
104*58b9f456SAndroid Build Coastguard Worker# "<project> v<release> documentation".
105*58b9f456SAndroid Build Coastguard Worker#html_title = None
106*58b9f456SAndroid Build Coastguard Worker
107*58b9f456SAndroid Build Coastguard Worker# A shorter title for the navigation bar.  Default is the same as html_title.
108*58b9f456SAndroid Build Coastguard Worker#html_short_title = None
109*58b9f456SAndroid Build Coastguard Worker
110*58b9f456SAndroid Build Coastguard Worker# The name of an image file (relative to this directory) to place at the top
111*58b9f456SAndroid Build Coastguard Worker# of the sidebar.
112*58b9f456SAndroid Build Coastguard Worker#html_logo = None
113*58b9f456SAndroid Build Coastguard Worker
114*58b9f456SAndroid Build Coastguard Worker# The name of an image file (within the static path) to use as favicon of the
115*58b9f456SAndroid Build Coastguard Worker# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
116*58b9f456SAndroid Build Coastguard Worker# pixels large.
117*58b9f456SAndroid Build Coastguard Worker#html_favicon = None
118*58b9f456SAndroid Build Coastguard Worker
119*58b9f456SAndroid Build Coastguard Worker# Add any paths that contain custom static files (such as style sheets) here,
120*58b9f456SAndroid Build Coastguard Worker# relative to this directory. They are copied after the builtin static files,
121*58b9f456SAndroid Build Coastguard Worker# so a file named "default.css" will overwrite the builtin "default.css".
122*58b9f456SAndroid Build Coastguard Workerhtml_static_path = []
123*58b9f456SAndroid Build Coastguard Worker
124*58b9f456SAndroid Build Coastguard Worker# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
125*58b9f456SAndroid Build Coastguard Worker# using the given strftime format.
126*58b9f456SAndroid Build Coastguard Worker#html_last_updated_fmt = '%b %d, %Y'
127*58b9f456SAndroid Build Coastguard Worker
128*58b9f456SAndroid Build Coastguard Worker# If true, SmartyPants will be used to convert quotes and dashes to
129*58b9f456SAndroid Build Coastguard Worker# typographically correct entities.
130*58b9f456SAndroid Build Coastguard Worker#html_use_smartypants = True
131*58b9f456SAndroid Build Coastguard Worker
132*58b9f456SAndroid Build Coastguard Worker# Custom sidebar templates, maps document names to template names.
133*58b9f456SAndroid Build Coastguard Worker#html_sidebars = {}
134*58b9f456SAndroid Build Coastguard Worker
135*58b9f456SAndroid Build Coastguard Worker# Additional templates that should be rendered to pages, maps page names to
136*58b9f456SAndroid Build Coastguard Worker# template names.
137*58b9f456SAndroid Build Coastguard Worker#html_additional_pages = {}
138*58b9f456SAndroid Build Coastguard Worker
139*58b9f456SAndroid Build Coastguard Worker# If false, no module index is generated.
140*58b9f456SAndroid Build Coastguard Worker#html_domain_indices = True
141*58b9f456SAndroid Build Coastguard Worker
142*58b9f456SAndroid Build Coastguard Worker# If false, no index is generated.
143*58b9f456SAndroid Build Coastguard Worker#html_use_index = True
144*58b9f456SAndroid Build Coastguard Worker
145*58b9f456SAndroid Build Coastguard Worker# If true, the index is split into individual pages for each letter.
146*58b9f456SAndroid Build Coastguard Worker#html_split_index = False
147*58b9f456SAndroid Build Coastguard Worker
148*58b9f456SAndroid Build Coastguard Worker# If true, links to the reST sources are added to the pages.
149*58b9f456SAndroid Build Coastguard Worker#html_show_sourcelink = True
150*58b9f456SAndroid Build Coastguard Worker
151*58b9f456SAndroid Build Coastguard Worker# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
152*58b9f456SAndroid Build Coastguard Worker#html_show_sphinx = True
153*58b9f456SAndroid Build Coastguard Worker
154*58b9f456SAndroid Build Coastguard Worker# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
155*58b9f456SAndroid Build Coastguard Worker#html_show_copyright = True
156*58b9f456SAndroid Build Coastguard Worker
157*58b9f456SAndroid Build Coastguard Worker# If true, an OpenSearch description file will be output, and all pages will
158*58b9f456SAndroid Build Coastguard Worker# contain a <link> tag referring to it.  The value of this option must be the
159*58b9f456SAndroid Build Coastguard Worker# base URL from which the finished HTML is served.
160*58b9f456SAndroid Build Coastguard Worker#html_use_opensearch = ''
161*58b9f456SAndroid Build Coastguard Worker
162*58b9f456SAndroid Build Coastguard Worker# This is the file name suffix for HTML files (e.g. ".xhtml").
163*58b9f456SAndroid Build Coastguard Worker#html_file_suffix = None
164*58b9f456SAndroid Build Coastguard Worker
165*58b9f456SAndroid Build Coastguard Worker# Output file base name for HTML help builder.
166*58b9f456SAndroid Build Coastguard Workerhtmlhelp_basename = 'libcxxdoc'
167*58b9f456SAndroid Build Coastguard Worker
168*58b9f456SAndroid Build Coastguard Worker
169*58b9f456SAndroid Build Coastguard Worker# -- Options for LaTeX output --------------------------------------------------
170*58b9f456SAndroid Build Coastguard Worker
171*58b9f456SAndroid Build Coastguard Workerlatex_elements = {
172*58b9f456SAndroid Build Coastguard Worker# The paper size ('letterpaper' or 'a4paper').
173*58b9f456SAndroid Build Coastguard Worker#'papersize': 'letterpaper',
174*58b9f456SAndroid Build Coastguard Worker
175*58b9f456SAndroid Build Coastguard Worker# The font size ('10pt', '11pt' or '12pt').
176*58b9f456SAndroid Build Coastguard Worker#'pointsize': '10pt',
177*58b9f456SAndroid Build Coastguard Worker
178*58b9f456SAndroid Build Coastguard Worker# Additional stuff for the LaTeX preamble.
179*58b9f456SAndroid Build Coastguard Worker#'preamble': '',
180*58b9f456SAndroid Build Coastguard Worker}
181*58b9f456SAndroid Build Coastguard Worker
182*58b9f456SAndroid Build Coastguard Worker# Grouping the document tree into LaTeX files. List of tuples
183*58b9f456SAndroid Build Coastguard Worker# (source start file, target name, title, author, documentclass [howto/manual]).
184*58b9f456SAndroid Build Coastguard Workerlatex_documents = [
185*58b9f456SAndroid Build Coastguard Worker  ('contents', 'libcxx.tex', u'libcxx Documentation',
186*58b9f456SAndroid Build Coastguard Worker   u'LLVM project', 'manual'),
187*58b9f456SAndroid Build Coastguard Worker]
188*58b9f456SAndroid Build Coastguard Worker
189*58b9f456SAndroid Build Coastguard Worker# The name of an image file (relative to this directory) to place at the top of
190*58b9f456SAndroid Build Coastguard Worker# the title page.
191*58b9f456SAndroid Build Coastguard Worker#latex_logo = None
192*58b9f456SAndroid Build Coastguard Worker
193*58b9f456SAndroid Build Coastguard Worker# For "manual" documents, if this is true, then toplevel headings are parts,
194*58b9f456SAndroid Build Coastguard Worker# not chapters.
195*58b9f456SAndroid Build Coastguard Worker#latex_use_parts = False
196*58b9f456SAndroid Build Coastguard Worker
197*58b9f456SAndroid Build Coastguard Worker# If true, show page references after internal links.
198*58b9f456SAndroid Build Coastguard Worker#latex_show_pagerefs = False
199*58b9f456SAndroid Build Coastguard Worker
200*58b9f456SAndroid Build Coastguard Worker# If true, show URL addresses after external links.
201*58b9f456SAndroid Build Coastguard Worker#latex_show_urls = False
202*58b9f456SAndroid Build Coastguard Worker
203*58b9f456SAndroid Build Coastguard Worker# Documents to append as an appendix to all manuals.
204*58b9f456SAndroid Build Coastguard Worker#latex_appendices = []
205*58b9f456SAndroid Build Coastguard Worker
206*58b9f456SAndroid Build Coastguard Worker# If false, no module index is generated.
207*58b9f456SAndroid Build Coastguard Worker#latex_domain_indices = True
208*58b9f456SAndroid Build Coastguard Worker
209*58b9f456SAndroid Build Coastguard Worker
210*58b9f456SAndroid Build Coastguard Worker# -- Options for manual page output --------------------------------------------
211*58b9f456SAndroid Build Coastguard Worker
212*58b9f456SAndroid Build Coastguard Worker# One entry per manual page. List of tuples
213*58b9f456SAndroid Build Coastguard Worker# (source start file, name, description, authors, manual section).
214*58b9f456SAndroid Build Coastguard Workerman_pages = [
215*58b9f456SAndroid Build Coastguard Worker    ('contents', 'libc++', u'libc++ Documentation',
216*58b9f456SAndroid Build Coastguard Worker     [u'LLVM project'], 1)
217*58b9f456SAndroid Build Coastguard Worker]
218*58b9f456SAndroid Build Coastguard Worker
219*58b9f456SAndroid Build Coastguard Worker# If true, show URL addresses after external links.
220*58b9f456SAndroid Build Coastguard Worker#man_show_urls = False
221*58b9f456SAndroid Build Coastguard Worker
222*58b9f456SAndroid Build Coastguard Worker
223*58b9f456SAndroid Build Coastguard Worker# -- Options for Texinfo output ------------------------------------------------
224*58b9f456SAndroid Build Coastguard Worker
225*58b9f456SAndroid Build Coastguard Worker# Grouping the document tree into Texinfo files. List of tuples
226*58b9f456SAndroid Build Coastguard Worker# (source start file, target name, title, author,
227*58b9f456SAndroid Build Coastguard Worker#  dir menu entry, description, category)
228*58b9f456SAndroid Build Coastguard Workertexinfo_documents = [
229*58b9f456SAndroid Build Coastguard Worker  ('contents', 'libc++', u'libc++ Documentation',
230*58b9f456SAndroid Build Coastguard Worker   u'LLVM project', 'libc++', 'One line description of project.',
231*58b9f456SAndroid Build Coastguard Worker   'Miscellaneous'),
232*58b9f456SAndroid Build Coastguard Worker]
233*58b9f456SAndroid Build Coastguard Worker
234*58b9f456SAndroid Build Coastguard Worker# Documents to append as an appendix to all manuals.
235*58b9f456SAndroid Build Coastguard Worker#texinfo_appendices = []
236*58b9f456SAndroid Build Coastguard Worker
237*58b9f456SAndroid Build Coastguard Worker# If false, no module index is generated.
238*58b9f456SAndroid Build Coastguard Worker#texinfo_domain_indices = True
239*58b9f456SAndroid Build Coastguard Worker
240*58b9f456SAndroid Build Coastguard Worker# How to display URL addresses: 'footnote', 'no', or 'inline'.
241*58b9f456SAndroid Build Coastguard Worker#texinfo_show_urls = 'footnote'
242*58b9f456SAndroid Build Coastguard Worker
243*58b9f456SAndroid Build Coastguard Worker
244*58b9f456SAndroid Build Coastguard Worker# FIXME: Define intersphinx configuration.
245*58b9f456SAndroid Build Coastguard Workerintersphinx_mapping = {}
246*58b9f456SAndroid Build Coastguard Worker
247*58b9f456SAndroid Build Coastguard Worker
248*58b9f456SAndroid Build Coastguard Worker# -- Options for extensions ----------------------------------------------------
249*58b9f456SAndroid Build Coastguard Worker
250*58b9f456SAndroid Build Coastguard Worker# Enable this if you want TODOs to show up in the generated documentation.
251*58b9f456SAndroid Build Coastguard Workertodo_include_todos = True
252