From 70ecd1b5ea2b5d8ce5fa6d284c5912c27ecc0d0b Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 8 Mar 2026 12:18:19 +0000 Subject: [PATCH] Fix ReadTheDocs build by adding config and fixing paths - Add .readthedocs.yaml (required since Sept 2023 for RTD builds) - Add docs/requirements.txt with sphinx and sphinx_rtd_theme deps - Fix sys.path in conf.py to point to project root (../../) instead of docs/ https://claude.ai/code/session_015J5urZw2vzKDQCCbXoBCKu --- .readthedocs.yaml | 16 ++++++++++++++++ docs/requirements.txt | 2 ++ docs/source/conf.py | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .readthedocs.yaml create mode 100644 docs/requirements.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..4d909dd --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,16 @@ +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +version: 2 + +build: + os: ubuntu-22.04 + tools: + python: "3.12" + +sphinx: + configuration: docs/source/conf.py + +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 0000000..8213302 --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1,2 @@ +sphinx +sphinx_rtd_theme diff --git a/docs/source/conf.py b/docs/source/conf.py index b7b8a6d..012b1af 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -12,7 +12,7 @@ # import os import sys -sys.path.insert(0, os.path.abspath('..')) +sys.path.insert(0, os.path.abspath('../..')) # -- Project information -----------------------------------------------------