Debian Codegraph @

rpython/doc/conf.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2 #
3 # RPython documentation build configuration file, created by
4 # sphinx-quickstart on Sat Feb 23 12:41:19 2013.
5 #
6 # This file is execfile()d with the current directory set to its containing dir.
7 #
8 # Note that not all possible configuration values are present in this
9 # autogenerated file.
10 #
11 # All configuration values have a default; values that are commented out
12 # serve to show the default.
13 from __future__ import print_function
14
15 import sys, os
16
17 # If extensions (or modules to document with autodoc) are in another directory,
18 # add these directories to sys.path here. If the directory is relative to the
19 # documentation root, use os.path.abspath to make it absolute, like shown here.
20 #sys.path.insert(0, os.path.abspath('.'))
21
22
23 # -- Read The Docs theme config ------------------------------------------------
24
25 # on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
26 on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
27
28 if on_rtd: # only import and set the theme if we're building docs locally
29 html_theme = "sphinx_rtd_theme"
30 else:
31 try:
32 import sphinx_rtd_theme
33 html_theme = 'sphinx_rtd_theme'
34 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
35 except ImportError:
36 print('sphinx_rtd_theme is not installed')
37 html_theme = 'default'
38
39 # -- General configuration -----------------------------------------------------
40
41 # If your documentation needs a minimal Sphinx version, state it here.
42 #needs_sphinx = '1.0'
43
44 # Add any Sphinx extension module names here, as strings. They can be extensions
45 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
46 extensions = ['sphinx.ext.extlinks',
47 'sphinx.ext.intersphinx',
48 'sphinx.ext.graphviz',
49 'sphinx_affiliates',
50 ]
51
52 # Canonical URL (including the '/') so searching from pypy docs finds these
53 affiliate_options = {
54 'canonical_url': "https://rpython.readthedocs.io/en/latest"
55 }
56
57 # Other sites to add to the search of this site
58 sphinx_affiliates = [
59 'https://doc.pypy.org/affiliate_searchindex.js',
60 ]
61
62 # Add any paths that contain templates here, relative to this directory.
63 templates_path = ['_templates']
64
65 # The suffix of source filenames.
66 source_suffix = '.rst'
67
68 # The encoding of source files.
69 #source_encoding = 'utf-8-sig'
70
71 # The master toctree document.
72 master_doc = 'index'
73
74 # General information about the project.
75 project = u'PyPy'
76 copyright = u'2024, The PyPy Project'
77
78 # The version info for the project you're documenting, acts as replacement for
79 # |version| and |release|, also used in various other places throughout the
80 # built documents.
81 #
82 # The short X.Y version.
83 version = '7.3'
84 # The full version, including alpha/beta/rc tags.
85 release = '7.3.23'
86
87 # The language for content autogenerated by Sphinx. Refer to documentation
88 # for a list of supported languages.
89 #language = None
90
91 # There are two options for replacing |today|: either, you set today to some
92 # non-false value, then it is used:
93 #today = ''
94 # Else, today_fmt is used as the format for a strftime call.
95 #today_fmt = '%B %d, %Y'
96
97 # List of patterns, relative to source directory, that match files and
98 # directories to ignore when looking for source files.
99 exclude_patterns = ['_build']
100
101 # The reST default role (used for this markup: `text`) to use for all documents.
102 #default_role = None
103
104 # If true, '()' will be appended to :func: etc. cross-reference text.
105 #add_function_parentheses = True
106
107 # If true, the current module name will be prepended to all description
108 # unit titles (such as .. function::).
109 #add_module_names = True
110
111 # If true, sectionauthor and moduleauthor directives will be shown in the
112 # output. They are ignored by default.
113 #show_authors = False
114
115 # The name of the Pygments (syntax highlighting) style to use.
116 pygments_style = 'sphinx'
117
118 # A list of ignored prefixes for module index sorting.
119 #modindex_common_prefix = []
120
121
122 # -- Options for HTML output ---------------------------------------------------
123
124 # The theme to use for HTML and HTML Help pages. See the documentation for
125 # a list of builtin themes.
126 #html_theme = 'default'
127
128 # Theme options are theme-specific and customize the look and feel of a theme
129 # further. For a list of options available for each theme, see the
130 # documentation.
131 #html_theme_options = {}
132
133 # Add any paths that contain custom themes here, relative to this directory.
134 #html_theme_path = []
135
136 # The name for this set of Sphinx documents. If None, it defaults to
137 # "<project> v<release> documentation".
138 html_title = 'RPython Documentation'
139
140 # A shorter title for the navigation bar. Default is the same as html_title.
141 #html_short_title = None
142
143 # The name of an image file (relative to this directory) to place at the top
144 # of the sidebar.
145 #html_logo = None
146
147 # The name of an image file (within the static path) to use as favicon of the
148 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
149 # pixels large.
150 #html_favicon = None
151
152 # Add any paths that contain custom static files (such as style sheets) here,
153 # relative to this directory. They are copied after the builtin static files,
154 # so a file named "default.css" will overwrite the builtin "default.css".
155 html_static_path = ['_static']
156
157 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
158 # using the given strftime format.
159 html_last_updated_fmt = '%b %d, %Y'
160
161 # If true, SmartyPants will be used to convert quotes and dashes to
162 # typographically correct entities.
163 #html_use_smartypants = True
164
165 # Custom sidebar templates, maps document names to template names.
166 #html_sidebars = {}
167
168 # Additional templates that should be rendered to pages, maps page names to
169 # template names.
170 #html_additional_pages = {}
171
172 # If false, no module index is generated.
173 #html_domain_indices = True
174
175 # If false, no index is generated.
176 #html_use_index = True
177
178 # If true, the index is split into individual pages for each letter.
179 #html_split_index = False
180
181 # If true, links to the reST sources are added to the pages.
182 #html_show_sourcelink = True
183
184 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
185 #html_show_sphinx = True
186
187 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
188 #html_show_copyright = True
189
190 # If true, an OpenSearch description file will be output, and all pages will
191 # contain a <link> tag referring to it. The value of this option must be the
192 # base URL from which the finished HTML is served.
193 #html_use_opensearch = ''
194
195 # This is the file name suffix for HTML files (e.g. ".xhtml").
196 #html_file_suffix = None
197
198 # Output file base name for HTML help builder.
199 htmlhelp_basename = 'RPythondoc'
200
201
202 # -- Options for LaTeX output --------------------------------------------------
203
204 latex_elements = {
205 # The paper size ('letterpaper' or 'a4paper').
206 #'papersize': 'letterpaper',
207
208 # The font size ('10pt', '11pt' or '12pt').
209 #'pointsize': '10pt',
210
211 # Additional stuff for the LaTeX preamble.
212 #'preamble': '',
213 }
214
215 # Grouping the document tree into LaTeX files. List of tuples
216 # (source start file, target name, title, author, documentclass [howto/manual]).
217 latex_documents = [
218 ('index', 'RPython.tex', u'RPython Documentation',
219 u'The PyPy Project', 'manual'),
220 ]
221
222 # The name of an image file (relative to this directory) to place at the top of
223 # the title page.
224 #latex_logo = None
225
226 # For "manual" documents, if this is true, then toplevel headings are parts,
227 # not chapters.
228 #latex_use_parts = False
229
230 # If true, show page references after internal links.
231 #latex_show_pagerefs = False
232
233 # If true, show URL addresses after external links.
234 #latex_show_urls = False
235
236 # Documents to append as an appendix to all manuals.
237 #latex_appendices = []
238
239 # If false, no module index is generated.
240 #latex_domain_indices = True
241
242
243 intersphinx_mapping = {'python': ('http://docs.python.org/2.7', None),
244 'pypy': ('http://pypy.readthedocs.org/en/latest/', None)}
245
246
247 # -- Options for manual page output --------------------------------------------
248
249 # One entry per manual page. List of tuples
250 # (source start file, name, description, authors, manual section).
251 man_pages = [
252 ('index', 'rpython', u'RPython Documentation',
253 [u'The PyPy Project'], 1)
254 ]
255
256 # If true, show URL addresses after external links.
257 #man_show_urls = False
258
259
260 # -- Options for Texinfo output ------------------------------------------------
261
262 # Grouping the document tree into Texinfo files. List of tuples
263 # (source start file, target name, title, author,
264 # dir menu entry, description, category)
265 texinfo_documents = [
266 ('index', 'RPython', u'RPython Documentation',
267 u'The PyPy Project', 'RPython', 'One line description of project.',
268 'Miscellaneous'),
269 ]
270
271 # Documents to append as an appendix to all manuals.
272 #texinfo_appendices = []
273
274 # If false, no module index is generated.
275 #texinfo_domain_indices = True
276
277 # How to display URL addresses: 'footnote', 'no', or 'inline'.
278 #texinfo_show_urls = 'footnote'
279
280 extlinks = {'source': ('https://foss.heptapod.net/pypy/pypy/blob/branch/default/%s', '')}