Skip to content

Commit 99c27a5

Browse files
committed
Update conf with extension details
1 parent 0f51f42 commit 99c27a5

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

conf.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
"""Configuration for building PEPs using Sphinx."""
22

3+
import sys
4+
from pathlib import Path
5+
6+
sys.path.append(str(Path("pep_sphinx_extensions").absolute()))
7+
38
# -- Project information -----------------------------------------------------
49

510
project = "PEPs"
611
master_doc = "contents"
712

813
# -- General configuration ---------------------------------------------------
914

15+
# Add any Sphinx extension module names here, as strings.
16+
extensions = ["pep_sphinx_extensions"]
17+
1018
# The file extensions of source files. Sphinx uses these suffixes as sources.
1119
source_suffix = {
12-
".rst": "restructuredtext",
13-
".txt": "restructuredtext",
20+
".rst": "pep",
21+
".txt": "pep",
1422
}
1523

1624
# List of patterns (relative to source dir) to ignore when looking for source files.
@@ -32,6 +40,7 @@
3240
# -- Options for HTML output -------------------------------------------------
3341

3442
# HTML output settings
43+
html_math_renderer = "maths_to_html" # Maths rendering
3544
html_show_copyright = False # Turn off miscellany
3645
html_show_sphinx = False
3746
html_title = "peps.python.org" # Set <title/>

0 commit comments

Comments
 (0)