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