From 51acecb272feb3f943ff984402d83d28a4ad3060 Mon Sep 17 00:00:00 2001 From: Yoch Melka Date: Tue, 20 Oct 2026 08:28:22 +0300 Subject: [PATCH] Add .readthedocs.yaml so Read the Docs builds again Read the Docs requires this file; the last build dates from 2017. The docs install the package from this checkout, since autodoc reads the compiled extension's docstrings. doc/conf.py drops a missing _static directory. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01XUT7Yj2eYmEyHV5fiicMsP --- .readthedocs.yaml | 17 +++++++++++++++++ doc/conf.py | 2 +- doc/requirements.txt | 1 + 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .readthedocs.yaml create mode 100644 doc/requirements.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..575b380 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,17 @@ +# Read the Docs configuration, see https://docs.readthedocs.io/en/stable/config-file/v2.html +version: 2 + +build: + os: ubuntu-24.04 + tools: + python: "3.12" + +sphinx: + configuration: doc/conf.py + +python: + install: + - requirements: doc/requirements.txt + # autodoc reads the docstrings of the compiled extension + - method: pip + path: . diff --git a/doc/conf.py b/doc/conf.py index 623ee08..ce6c59a 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -162,7 +162,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +html_static_path = [] # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied diff --git a/doc/requirements.txt b/doc/requirements.txt new file mode 100644 index 0000000..6966869 --- /dev/null +++ b/doc/requirements.txt @@ -0,0 +1 @@ +sphinx