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