Skip to content

Commit

Permalink
Infra: Add intersphinx support for Python docs and PyPUG
Browse files Browse the repository at this point in the history
  • Loading branch information
CAM-Gerlach committed Jul 23, 2022
1 parent 2d21929 commit 5560ffc
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# Add 'include_patterns' as a config variable
from sphinx.config import Config
Config.config_values['include_patterns'] = [], 'env', []
Config.config_values["include_patterns"] = [], "env", []
del Config

# -- Project information -----------------------------------------------------
Expand All @@ -21,7 +21,11 @@
# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings.
extensions = ["pep_sphinx_extensions", "sphinx.ext.githubpages"]
extensions = [
"pep_sphinx_extensions",
"sphinx.ext.intersphinx",
"sphinx.ext.githubpages",
]

# The file extensions of source files. Sphinx uses these suffixes as sources.
source_suffix = {
Expand All @@ -46,6 +50,13 @@
"pep-0012/pep-NNNN.rst",
]

# Intersphinx configuration
intersphinx_mapping = {
'python': ('https://docs.python.org/3/', None),
'packaging': ('https://packaging.python.org/en/latest/', None),
}
intersphinx_disabled_reftypes = []

# -- Options for HTML output -------------------------------------------------

# HTML output settings
Expand All @@ -60,4 +71,4 @@
html_baseurl = "https://peps.python.org" # to create the CNAME file
gettext_auto_build = False # speed-ups

templates_path = ['pep_sphinx_extensions/pep_theme/templates'] # Theme template relative paths from `confdir`
templates_path = ["pep_sphinx_extensions/pep_theme/templates"] # Theme template relative paths from `confdir`

0 comments on commit 5560ffc

Please sign in to comment.