get readthedocs working again
This commit is contained in:
parent
5f9f29ab36
commit
149ef8c3cc
2 changed files with 24 additions and 0 deletions
17
.readthedocs.yaml
Normal file
17
.readthedocs.yaml
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# SPDX-FileCopyrightText: 2024 Jeff Epler
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
|
version: 2
|
||||||
|
|
||||||
|
build:
|
||||||
|
os: ubuntu-lts-latest
|
||||||
|
tools:
|
||||||
|
python: "3"
|
||||||
|
|
||||||
|
sphinx:
|
||||||
|
configuration: docs/conf.py
|
||||||
|
|
||||||
|
python:
|
||||||
|
install:
|
||||||
|
- requirements: requirements-dev.txt
|
||||||
|
|
@ -17,6 +17,13 @@ import sys
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath('.'))
|
sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
# Define the canonical URL if you are using a custom domain on Read the Docs
|
||||||
|
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
|
||||||
|
|
||||||
|
html_context = {}
|
||||||
|
# Tell Jinja2 templates the build is running on Read the Docs
|
||||||
|
if os.environ.get("READTHEDOCS", "") == "True":
|
||||||
|
html_context["READTHEDOCS"] = True
|
||||||
|
|
||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue