Skip to content

Commit

Permalink
Update conf with extension details
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jun 8, 2021
1 parent 0f51f42 commit 99c27a5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions conf.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
"""Configuration for building PEPs using Sphinx."""

import sys
from pathlib import Path

sys.path.append(str(Path("pep_sphinx_extensions").absolute()))

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

project = "PEPs"
master_doc = "contents"

# -- General configuration ---------------------------------------------------

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

# The file extensions of source files. Sphinx uses these suffixes as sources.
source_suffix = {
".rst": "restructuredtext",
".txt": "restructuredtext",
".rst": "pep",
".txt": "pep",
}

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

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

0 comments on commit 99c27a5

Please sign in to comment.