From a14e3acf78fc6925199772c06156e6c1f084a3f2 Mon Sep 17 00:00:00 2001 From: Koichi Akabe Date: Sat, 18 Apr 2026 22:20:04 +0900 Subject: [PATCH] Set `html_theme` only when building docs on local machine --- docs/source/conf.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 7f4b60b..37d222f 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,5 +1,7 @@ +import os + project = 'python-daachorse' -copyright = '2022, daac-tools' +copyright = '2026, daac-tools' author = 'Koichi Akabe' extensions = [ @@ -8,4 +10,6 @@ exclude_patterns = [] -html_theme = 'sphinx_rtd_theme' +on_rtd = os.environ.get('READTHEDOCS', None) == 'True' +if not on_rtd: + html_theme = 'sphinx_rtd_theme'