10000 Infra: Prepare for moving PEPs to a subfolder by AA-Turner · Pull Request #3417 · python/peps · GitHub
[go: up one dir, main page]

Skip to content

Infra: Prepare for moving PEPs to a subfolder #3417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use absolute paths in conf.py
  • Loading branch information
AA-Turner committed Sep 3, 2023
commit 383d3d5d0116067d02ac5fb66da377249f8f89db
10 changes: 7 additions & 3 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@

"""Configuration for building PEPs using Sphinx."""

import os
from pathlib import Path
import sys

sys.path.append(str(Path(".").absolute()))
_ROOT = Path(__file__).resolve().parent
sys.path.append(os.fspath(_ROOT))

# -- Project information -----------------------------------------------------

Expand Down Expand Up @@ -60,16 +62,18 @@

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

_PSE_PATH = _ROOT / "pep_sphinx_extensions"

# HTML output settings
html_math_renderer = "maths_to_html" # Maths rendering

# Theme settings
html_theme_path = ["pep_sphinx_extensions"]
html_theme_path = [os.fspath(_PSE_PATH)]
html_theme = "pep_theme" # The actual theme directory (child of html_theme_path)
html_use_index = False # Disable index (we use PEP 0)
html_style = "" # must be defined here or in theme.conf, but is unused
html_permalinks = False # handled in the PEPContents transform
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 = [os.fspath(_PSE_PATH / "pep_theme" / "templates")] # Theme template relative paths from `confdir`
0