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