From 0dc757dc023669289969a0772c88d8926bc5bda1 Mon Sep 17 00:00:00 2001 From: Koichi Akabe Date: Sat, 18 Apr 2026 22:31:06 +0900 Subject: [PATCH 1/2] Add optional dependency for document --- docs/source/conf.py | 4 +--- pyproject.toml | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 37d222f..694058e 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -10,6 +10,4 @@ exclude_patterns = [] -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' -if not on_rtd: - html_theme = 'sphinx_rtd_theme' +html_theme = 'sphinx_rtd_theme' diff --git a/pyproject.toml b/pyproject.toml index e41c065..b408295 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,3 +14,8 @@ classifiers = [ "Topic :: Software Development :: Libraries", "Topic :: Text Processing", ] + +[project.optional-dependencies] +docs = [ + "sphinx-rtd-theme", +] From f231e2f352a371fceb43f930f6c1970ded1d617b Mon Sep 17 00:00:00 2001 From: Koichi Akabe Date: Sat, 18 Apr 2026 22:32:59 +0900 Subject: [PATCH 2/2] Add extra_requirements --- .readthedocs.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 1f96fed..ab3c4b4 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -14,3 +14,5 @@ python: install: - method: pip path: . + extra_requirements: + - docs