Skip to content
Merged
Changes from all commits
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
11 changes: 9 additions & 2 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@
]

# Add any paths that contain templates here, relative to this directory.
if os.environ["templates_path"]:
if os.environ.get("templates_path"):
templates_path = [os.environ["templates_path"]]
if not all(os.path.isdir(x) for x in templates_path):
raise RuntimeError(f"Some member of templates_path does not exist: {templates_path}")
else:
# Fallback: Assume next to conf.py
templates_path = ["_templates"]

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
Expand Down Expand Up @@ -104,7 +107,11 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = [os.environ["html_static_path"]]
if os.environ.get("html_static_path"):
html_static_path = [os.environ.get("html_static_path")]
else:
# Fallback: Assume next to conf.py
html_static_path = ["_static"]


# -- Options for HTMLHelp output ------------------------------------------
Expand Down
Loading