summaryrefslogtreecommitdiffstats
path: root/conf.py
diff options
authorTakashi Sakamoto <takaswie@kernel.org>2024-07-17 17:28:08 +0900
committerTakashi Sakamoto <takaswie@kernel.org>2024-07-17 17:32:40 +0900
commit2192f326bac987b1f75f0fa21c1475d471cc3bcb (patch)
tree849f8dfb51845b61551277032b717fef259924bb /conf.py
parent06d78d44614fd5df31fc5ae7abe2bbd009326353 (diff)
downloadieee1394-main.tar.gz
Parse READTHEDOCS_CANONICAL_URL and READTHEDOCS environment variables explicitlyHEADmain
Due to the change of service in 2024: https://about.readthedocs.com/blog/2024/07/addons-by-default/#how-does-it-affect-my-projects Signed-off-by: Takashi Sakamoto <takaswie@kernel.org>
Diffstat (limited to 'conf.py')
-rw-r--r--conf.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/conf.py b/conf.py
index 770fa08..4587bf9 100644
--- a/conf.py
+++ b/conf.py
@@ -1,3 +1,13 @@
+import os
+
+# Read The Docs service was changed 2024.
+# https://about.readthedocs.com/blog/2024/07/addons-by-default/#how-does-it-affect-my-projects
+html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
+if os.environ.get("READTHEDOCS", "") == "True":
+ html_context = {
+ "READTHEDOCS": True
+ }
+
project = 'Linux FireWire subsystem'
author = 'Takashi Sakamoto'
copyright = '2023, Takashi Sakamoto'