|
10 | 10 |
|
11 | 11 | # Add 'include_patterns' as a config variable |
12 | 12 | from sphinx.config import Config |
13 | | -Config.config_values['include_patterns'] = [], 'env', [] |
| 13 | +Config.config_values["include_patterns"] = [], "env", [] |
14 | 14 | del Config |
15 | 15 |
|
16 | 16 | # -- Project information ----------------------------------------------------- |
|
21 | 21 | # -- General configuration --------------------------------------------------- |
22 | 22 |
|
23 | 23 | # Add any Sphinx extension module names here, as strings. |
24 | | -extensions = ["pep_sphinx_extensions", "sphinx.ext.githubpages"] |
| 24 | +extensions = [ |
| 25 | +"pep_sphinx_extensions", |
| 26 | +"sphinx.ext.intersphinx", |
| 27 | +"sphinx.ext.githubpages", |
| 28 | +] |
25 | 29 |
|
26 | 30 | # The file extensions of source files. Sphinx uses these suffixes as sources. |
27 | 31 | source_suffix = { |
|
46 | 50 | "pep-0012/pep-NNNN.rst", |
47 | 51 | ] |
48 | 52 |
|
| 53 | +# Intersphinx configuration |
| 54 | +intersphinx_mapping = { |
| 55 | + 'python': ('https://docs.python.org/3/', None), |
| 56 | + 'packaging': ('https://packaging.python.org/en/latest/', None), |
| 57 | +} |
| 58 | +intersphinx_disabled_reftypes = [] |
| 59 | + |
49 | 60 | # -- Options for HTML output ------------------------------------------------- |
50 | 61 |
|
51 | 62 | # HTML output settings |
|
60 | 71 | html_baseurl = "https://peps.python.org" # to create the CNAME file |
61 | 72 | gettext_auto_build = False # speed-ups |
62 | 73 |
|
63 | | -templates_path = ['pep_sphinx_extensions/pep_theme/templates'] # Theme template relative paths from `confdir` |
| 74 | +templates_path = ["pep_sphinx_extensions/pep_theme/templates"] # Theme template relative paths from `confdir` |
0 commit comments