Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
numba
GitHub Repository: numba/llvmlite
Path: blob/main/docs/source/conf.py
1154 views
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
#
4
# llvmlite documentation build configuration file, created by
5
# sphinx-quickstart on Wed Apr 29 14:18:42 2015.
6
#
7
# This file is execfile()d with the current directory set to its
8
# containing dir.
9
#
10
# Note that not all possible configuration values are present in this
11
# autogenerated file.
12
#
13
# All configuration values have a default; values that are commented out
14
# serve to show the default.
15
16
import sys
17
import os
18
from datetime import datetime
19
20
import sphinx_rtd_theme
21
22
# If extensions (or modules to document with autodoc) are in another directory,
23
# add these directories to sys.path here. If the directory is relative to the
24
# documentation root, use os.path.abspath to make it absolute, like shown here.
25
#sys.path.insert(0, os.path.abspath('.'))
26
sys.path.append(os.path.abspath(os.path.join('..', '..')))
27
28
29
# -- General configuration ------------------------------------------------
30
31
# If your documentation needs a minimal Sphinx version, state it here.
32
#needs_sphinx = '1.0'
33
34
# Add any Sphinx extension module names here, as strings. They can be
35
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
36
# ones.
37
extensions = [
38
'sphinx.ext.intersphinx',
39
]
40
41
# Add any paths that contain templates here, relative to this directory.
42
templates_path = ['_templates']
43
44
# The suffix(es) of source filenames.
45
# You can specify multiple suffix as a list of string:
46
# source_suffix = ['.rst', '.md']
47
source_suffix = '.rst'
48
49
# The encoding of source files.
50
#source_encoding = 'utf-8-sig'
51
52
# The master toctree document.
53
master_doc = 'index'
54
55
# General information about the project.
56
project = 'llvmlite'
57
copyright = '2014, Anaconda Inc.'
58
author = 'Numba Developers'
59
60
if os.environ.get('READTHEDOCS'):
61
# RTD replaces the last update date. So we need to hack it in here.
62
copyright += '. Last updated on {}'.format(
63
datetime.utcnow().strftime('%b %d, %Y'))
64
65
# The version info for the project you're documenting, acts as replacement for
66
# |version| and |release|, also used in various other places throughout the
67
# built documents.
68
#
69
import llvmlite
70
# The short X.Y version.
71
version = llvmlite.__version__.split('-', 1)[0]
72
# The full version, including alpha/beta/rc tags.
73
release = llvmlite.__version__
74
75
# The language for content autogenerated by Sphinx. Refer to documentation
76
# for a list of supported languages.
77
#
78
# This is also used if you do content translation via gettext catalogs.
79
# Usually you set "language" from the command line for these cases.
80
language = "en"
81
82
# There are two options for replacing |today|: either, you set today to some
83
# non-false value, then it is used:
84
#today = ''
85
# Else, today_fmt is used as the format for a strftime call.
86
#today_fmt = '%B %d, %Y'
87
88
# List of patterns, relative to source directory, that match files and
89
# directories to ignore when looking for source files.
90
exclude_patterns = []
91
92
# The reST default role (used for this markup: `text`) to use for all
93
# documents.
94
#default_role = None
95
96
# If true, '()' will be appended to :func: etc. cross-reference text.
97
#add_function_parentheses = True
98
99
# If true, the current module name will be prepended to all description
100
# unit titles (such as .. function::).
101
#add_module_names = True
102
103
# If true, sectionauthor and moduleauthor directives will be shown in the
104
# output. They are ignored by default.
105
#show_authors = False
106
107
# The name of the Pygments (syntax highlighting) style to use.
108
pygments_style = 'sphinx'
109
110
# A list of ignored prefixes for module index sorting.
111
#modindex_common_prefix = []
112
113
# If true, keep warnings as "system message" paragraphs in the built documents.
114
#keep_warnings = False
115
116
# If true, `todo` and `todoList` produce output, else they produce nothing.
117
todo_include_todos = False
118
119
120
# -- Options for HTML output ----------------------------------------------
121
122
# The theme to use for HTML and HTML Help pages. See the documentation for
123
# a list of builtin themes.
124
125
html_theme = 'sphinx_rtd_theme'
126
127
# Theme options are theme-specific and customize the look and feel of a theme
128
# further. For a list of options available for each theme, see the
129
# documentation.
130
#html_theme_options = {}
131
132
# Add any paths that contain custom themes here, relative to this directory.
133
#html_theme_path = []
134
135
# The name for this set of Sphinx documents. If None, it defaults to
136
# "<project> v<release> documentation".
137
#html_title = None
138
139
# A shorter title for the navigation bar. Default is the same as html_title.
140
#html_short_title = None
141
142
# The name of an image file (relative to this directory) to place at the top
143
# of the sidebar.
144
#html_logo = None
145
146
# The name of an image file (within the static path) to use as favicon of the
147
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
148
# pixels large.
149
#html_favicon = None
150
151
# Add any paths that contain custom static files (such as style sheets) here,
152
# relative to this directory. They are copied after the builtin static files,
153
# so a file named "default.css" will overwrite the builtin "default.css".
154
html_static_path = ['_static']
155
156
# Add any extra paths that contain custom files (such as robots.txt or
157
# .htaccess) here, relative to this directory. These files are copied
158
# directly to the root of the documentation.
159
#html_extra_path = []
160
161
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
162
# using the given strftime format.
163
html_last_updated_fmt = '%b %d, %Y'
164
165
# If true, SmartyPants will be used to convert quotes and dashes to
166
# typographically correct entities.
167
#html_use_smartypants = True
168
169
# Custom sidebar templates, maps document names to template names.
170
#html_sidebars = {}
171
172
# Additional templates that should be rendered to pages, maps page names to
173
# template names.
174
#html_additional_pages = {}
175
176
# If false, no module index is generated.
177
#html_domain_indices = True
178
179
# If false, no index is generated.
180
#html_use_index = True
181
182
# If true, the index is split into individual pages for each letter.
183
#html_split_index = False
184
185
# If true, links to the reST sources are added to the pages.
186
#html_show_sourcelink = True
187
188
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
189
#html_show_sphinx = True
190
191
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
192
#html_show_copyright = True
193
194
# If true, an OpenSearch description file will be output, and all pages will
195
# contain a <link> tag referring to it. The value of this option must be the
196
# base URL from which the finished HTML is served.
197
#html_use_opensearch = ''
198
199
# This is the file name suffix for HTML files (e.g. ".xhtml").
200
#html_file_suffix = None
201
202
# Language to be used for generating the HTML full-text search index.
203
# Sphinx supports the following languages:
204
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
205
# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr'
206
#html_search_language = 'en'
207
208
# A dictionary with options for the search language support, empty by default.
209
# Now only 'ja' uses this config value
210
#html_search_options = {'type': 'default'}
211
212
# The name of a javascript file (relative to the configuration directory) that
213
# implements a search results scorer. If empty, the default will be used.
214
#html_search_scorer = 'scorer.js'
215
216
# Output file base name for HTML help builder.
217
htmlhelp_basename = 'llvmlitedoc'
218
219
# -- Options for LaTeX output ---------------------------------------------
220
221
latex_elements = {
222
# The paper size ('letterpaper' or 'a4paper').
223
#'papersize': 'letterpaper',
224
225
# The font size ('10pt', '11pt' or '12pt').
226
#'pointsize': '10pt',
227
228
# Additional stuff for the LaTeX preamble.
229
#'preamble': '',
230
231
# Latex figure (float) alignment
232
#'figure_align': 'htbp',
233
}
234
235
# Grouping the document tree into LaTeX files. List of tuples
236
# (source start file, target name, title,
237
# author, documentclass [howto, manual, or own class]).
238
latex_documents = [
239
(master_doc, 'llvmlite.tex', 'llvmlite Documentation',
240
'Anaconda Inc.', 'manual'),
241
]
242
243
# The name of an image file (relative to this directory) to place at the top of
244
# the title page.
245
#latex_logo = None
246
247
# For "manual" documents, if this is true, then toplevel headings are parts,
248
# not chapters.
249
#latex_use_parts = False
250
251
# If true, show page references after internal links.
252
#latex_show_pagerefs = False
253
254
# If true, show URL addresses after external links.
255
#latex_show_urls = False
256
257
# Documents to append as an appendix to all manuals.
258
#latex_appendices = []
259
260
# If false, no module index is generated.
261
#latex_domain_indices = True
262
263
264
# -- Options for manual page output ---------------------------------------
265
266
# One entry per manual page. List of tuples
267
# (source start file, name, description, authors, manual section).
268
man_pages = [
269
(master_doc, 'llvmlite', 'llvmlite Documentation',
270
[author], 1)
271
]
272
273
# If true, show URL addresses after external links.
274
#man_show_urls = False
275
276
277
# -- Options for Texinfo output -------------------------------------------
278
279
# Grouping the document tree into Texinfo files. List of tuples
280
# (source start file, target name, title, author,
281
# dir menu entry, description, category)
282
texinfo_documents = [
283
(master_doc, 'llvmlite', 'llvmlite Documentation',
284
author, 'llvmlite', 'One line description of project.',
285
'Miscellaneous'),
286
]
287
288
# Documents to append as an appendix to all manuals.
289
#texinfo_appendices = []
290
291
# If false, no module index is generated.
292
#texinfo_domain_indices = True
293
294
# How to display URL addresses: 'footnote', 'no', or 'inline'.
295
#texinfo_show_urls = 'footnote'
296
297
# If true, do not generate a @detailmenu in the "Top" node's menu.
298
#texinfo_no_detailmenu = False
299
300
301
# Example configuration for intersphinx: refer to the Python standard library.
302
intersphinx_mapping = {
303
'python': ('https://docs.python.org/3', None),
304
'llvm': ('https://releases.llvm.org/20.1.0/docs', None),
305
}
306
307
nitpicky = True
308
309