Debian Codegraph @

pypy/doc/conf.py

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # -*- coding: utf-8 -*-
2 #
3 # PyPy documentation build configuration file, created by
4 # sphinx-quickstart on Mon Mar 14 10:44:41 2011.
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
14 import sys, os
15
16 # If extensions (or modules to document with autodoc) are in another directory,
17 # add these directories to sys.path here. If the directory is relative to the
18 # documentation root, use os.path.abspath to make it absolute, like shown here.
19 sys.path.append(os.path.abspath('.'))
20 sys.path.append(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 # Set canonical URL from the Read the Docs Domain
40 html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
41 html_context = {}
42
43 # Tell Jinja2 templates the build is running on Read the Docs
44 if os.environ.get("READTHEDOCS", "") == "True":
45 html_context["READTHEDOCS"] = True
46
47 # -- General configuration -----------------------------------------------------
48
49 # Add any Sphinx extension module names here, as strings. They can be extensions
50 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
51 extensions = ['sphinx.ext.autodoc',
52 'sphinx.ext.doctest',
53 'sphinx.ext.extlinks',
54 'sphinx.ext.intersphinx',
55 'sphinx.ext.todo',
56 'sphinx.ext.ifconfig',
57 'sphinx.ext.graphviz',
58 'sphinx_issues',
59 'pypyconfig',
60 # 'sphinx_affiliates',
61 ]
62
63 # Canonical URL (including the '/') so searching from rpython docs finds these
64 affiliate_options = {
65 'canonical_url': "https://doc.pypy.org/"
66 }
67
68 # Other sites to add to the search of this site
69 sphinx_affiliates = [
70 'https://rpython.readthedocs.io/en/latest/affiliate_searchindex.js',
71 ]
72
73 # Add any paths that contain templates here, relative to this directory.
74 templates_path = ['_templates']
75
76 # The suffix of source filenames.
77 source_suffix = '.rst'
78
79 # The encoding of source files.
80 #source_encoding = 'utf-8'
81
82 # The master toctree document.
83 master_doc = 'index'
84
85 # General information about the project.
86 project = u'PyPy'
87 copyright = u'2024, The PyPy Project'
88
89 # For sphinx_issues extension v1.2.0
90 issues_github_path = "pypy/pypy"
91
92 # The version info for the project you're documenting, acts as replacement for
93 # |version| and |release|, also used in various other places throughout the
94 # built documents.
95 #
96
97 # Make sure to keep this in sync with:
98 # module/sys/version.py
99 # module/cpyext/include/patchlevel.h
100 #
101 # The short X.Y version.
102 version = '7.3'
103 # The full version, including alpha/beta/rc tags.
104 release = '7.3.23'
105
106 # The language for content autogenerated by Sphinx. Refer to documentation
107 # for a list of supported languages.
108 #language = None
109
110 # There are two options for replacing |today|: either, you set today to some
111 # non-false value, then it is used:
112 #today = ''
113 # Else, today_fmt is used as the format for a strftime call.
114 #today_fmt = '%B %d, %Y'
115
116 # List of documents that shouldn't be included in the build.
117 #unused_docs = []
118
119 # List of directories, relative to source directory, that shouldn't be searched
120 # for source files.
121 exclude_trees = ['_build']
122
123 # The reST default role (used for this markup: `text`) to use for all documents.
124 #default_role = None
125
126 # If true, '()' will be appended to :func: etc. cross-reference text.
127 #add_function_parentheses = True
128
129 # If true, the current module name will be prepended to all description
130 # unit titles (such as .. function::).
131 #add_module_names = True
132
133 # If true, sectionauthor and moduleauthor directives will be shown in the
134 # output. They are ignored by default.
135 #show_authors = False
136
137 # The name of the Pygments (syntax highlighting) style to use.
138 pygments_style = 'sphinx'
139
140 # A list of ignored prefixes for module index sorting.
141 #modindex_common_prefix = []
142
143
144 # -- Options for HTML output ---------------------------------------------------
145
146 # The theme to use for HTML and HTML Help pages. Major themes that come with
147 # Sphinx are currently 'default' and 'sphinxdoc'.
148 #html_theme = 'default'
149
150 # Theme options are theme-specific and customize the look and feel of a theme
151 # further. For a list of options available for each theme, see the
152 # documentation.
153 #html_theme_options = {}
154
155 # Add any paths that contain custom themes here, relative to this directory.
156 #html_theme_path = []
157
158 # The name for this set of Sphinx documents. If None, it defaults to
159 # "<project> v<release> documentation".
160 html_title = 'PyPy documentation'
161
162 # Hide the project name next to the logo in the sidebar since the logo
163 # already contains it.
164 html_theme_options = {
165 'logo_only': True,
166 }
167
168 # A shorter title for the navigation bar. Default is the same as html_title.
169 #html_short_title = None
170
171 # The name of an image file (relative to this directory) to place at the top
172 # of the sidebar.
173 html_logo = '_static/pypy-logo.svg'
174
175 # The name of an image file (within the static path) to use as favicon of the
176 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
177 # pixels large.
178 html_favicon = '_static/favicon32x32.ico'
179
180 # Add any paths that contain custom static files (such as style sheets) here,
181 # relative to this directory. They are copied after the builtin static files,
182 # so a file named "default.css" will overwrite the builtin "default.css".
183 html_static_path = ['_static']
184
185 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
186 # using the given strftime format.
187 html_last_updated_fmt = '%b %d, %Y'
188
189 # If true, SmartyPants will be used to convert quotes and dashes to
190 # typographically correct entities.
191 #html_use_smartypants = True
192
193 # Custom sidebar templates, maps document names to template names.
194 #html_sidebars = {}
195
196 # Additional templates that should be rendered to pages, maps page names to
197 # template names.
198 #html_additional_pages = {}
199
200 # If false, no module index is generated.
201 html_use_modindex = False
202
203 # If false, no index is generated.
204 #html_use_index = True
205
206 # If true, the index is split into individual pages for each letter.
207 #html_split_index = False
208
209 # If true, links to the reST sources are added to the pages.
210 #html_show_sourcelink = True
211
212 # If true, an OpenSearch description file will be output, and all pages will
213 # contain a <link> tag referring to it. The value of this option must be the
214 # base URL from which the finished HTML is served.
215 #html_use_opensearch = ''
216
217 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
218 #html_file_suffix = ''
219
220 # Output file base name for HTML help builder.
221 htmlhelp_basename = 'PyPydoc'
222
223
224 # -- Options for LaTeX output --------------------------------------------------
225
226 # The paper size ('letter' or 'a4').
227 #latex_paper_size = 'letter'
228
229 # The font size ('10pt', '11pt' or '12pt').
230 #latex_font_size = '10pt'
231
232 # Grouping the document tree into LaTeX files. List of tuples
233 # (source start file, target name, title, author, documentclass [howto/manual]).
234 #latex_documents = [
235 # ('temp_index', 'PyPy.tex', u'PyPy Documentation',
236 # u'The PyPy Project', 'manual'),
237 #]
238
239 # The name of an image file (relative to this directory) to place at the top of
240 # the title page.
241 #latex_logo = None
242
243 # For "manual" documents, if this is true, then toplevel headings are parts,
244 # not chapters.
245 #latex_use_parts = False
246
247 # Additional stuff for the LaTeX preamble.
248 #latex_preamble = ''
249
250 # Documents to append as an appendix to all manuals.
251 #latex_appendices = []
252
253 # If false, no module index is generated.
254 #latex_use_modindex = False
255
256
257 # Example configuration for intersphinx: refer to the Python standard library.
258 intersphinx_mapping = {'python': ('http://docs.python.org/2.7', None),
259 'rpython': ('http://rpython.readthedocs.org/en/latest/', None),
260 'cffi': ('https://cffi.readthedocs.io/en/latest/', None),
261 }
262
263 # -- Options for manpage output-------------------------------------------------
264
265 man_pages = [
266 ('man/pypy3.1', 'pypy3',
267 u'fast, compliant alternative implementation of the Python 3 language',
268 u'The PyPy Project', 1)
269 ]
270
271 extlinks = {'source': ('https://github.com/pypy/pypy/blob/main/%s', '')}