File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
"""Configuration for building PEPs using Sphinx."""
2
2
3
+ import sys
4
+ from pathlib import Path
5
+
6
+ sys .path .append (str (Path ("pep_sphinx_extensions" ).absolute ()))
7
+
3
8
# -- Project information -----------------------------------------------------
4
9
5
10
project = "PEPs"
6
11
master_doc = "contents"
7
12
8
13
# -- General configuration ---------------------------------------------------
9
14
15
+ # Add any Sphinx extension module names here, as strings.
16
+ extensions = ["pep_sphinx_extensions" ]
17
+
10
18
# The file extensions of source files. Sphinx uses these suffixes as sources.
11
19
source_suffix = {
12
- ".rst" : "restructuredtext " ,
13
- ".txt" : "restructuredtext " ,
20
+ ".rst" : "pep " ,
21
+ ".txt" : "pep " ,
14
22
}
15
23
16
24
# List of patterns (relative to source dir) to ignore when looking for source files.
32
40
# -- Options for HTML output -------------------------------------------------
33
41
34
42
# HTML output settings
43
+ html_math_renderer = "maths_to_html" # Maths rendering
35
44
html_show_copyright = False # Turn off miscellany
36
45
html_show_sphinx = False
37
46
html_title = "peps.python.org" # Set <title/>
You can’t perform that action at this time.
0 commit comments