From 705fe4b8df0657cc08508f33a52631ada1022e9d Mon Sep 17 00:00:00 2001 From: Farhad Allian Date: Mon, 3 Nov 2025 17:20:03 +0000 Subject: [PATCH 1/5] fix: conf.py --- docs/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 7f81d7d1..78becd86 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -86,7 +86,7 @@ # Path to generate documentation from using Sphinx AutoAPI autoapi_dirs = [os.path.abspath(os.path.join("..", "..", "causal_testing"))] autoapi_generate_api_docs = True -autoapi_keep_files = True +autoapi_keep_files = False # HTML logo and theme options html_logo = "_static/images/CITCOM-logo.png" From 6377531956c92ae0611df02337014df4a29cdebc Mon Sep 17 00:00:00 2001 From: f-allian Date: Tue, 11 Nov 2025 11:33:25 +0000 Subject: [PATCH 2/5] fix: rtd --- .readthedocs.yaml | 4 ++-- docs/source/conf.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 7f64c90f..2f7254ef 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -9,7 +9,7 @@ version: 2 build: os: ubuntu-20.04 tools: - python: "3.10" + python: "3.9" # Build documentation in the docs/ directory with Sphinx sphinx: @@ -22,4 +22,4 @@ sphinx: # Optionally declare the Python requirements required to build your docs python: install: - - requirements: docs/source/requirements.txt + - requirements: docs/source/requirements.txt \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 78becd86..7f81d7d1 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -86,7 +86,7 @@ # Path to generate documentation from using Sphinx AutoAPI autoapi_dirs = [os.path.abspath(os.path.join("..", "..", "causal_testing"))] autoapi_generate_api_docs = True -autoapi_keep_files = False +autoapi_keep_files = True # HTML logo and theme options html_logo = "_static/images/CITCOM-logo.png" From 6b7fbb396c8fdc3915305052fb5e169040eadbb3 Mon Sep 17 00:00:00 2001 From: f-allian Date: Tue, 11 Nov 2025 11:40:40 +0000 Subject: [PATCH 3/5] fix: astroid versions --- docs/source/requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/requirements.txt b/docs/source/requirements.txt index 25212ac5..1cd081f8 100644 --- a/docs/source/requirements.txt +++ b/docs/source/requirements.txt @@ -1,8 +1,9 @@ Sphinx==7.2.6 myst-parser==2.0.0 +astroid>=2.7,<4.0 sphinx-autoapi==3.0.0 sphinx-rtd-theme==2.0.0 nbsphinx==0.9.7 ipykernel==6.30.1 pandoc==2.4 -sphinxcontrib-mermaid==1.0.0 +sphinxcontrib-mermaid==1.0.0 \ No newline at end of file From a2f156505deb6b6d0f5c2069d578073617993dda Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Tue, 11 Nov 2025 15:15:25 +0000 Subject: [PATCH 4/5] Fixed astroid version in dev for docs building --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index e4e479dc..5a405dc9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,6 +35,7 @@ dynamic = ["version"] [project.optional-dependencies] dev = [ + "astroid==3.3.8", "isort", "pytest", "pylint", From fec7c4b6acfae3e9d0ee7f8e5aaae5f1db9a823e Mon Sep 17 00:00:00 2001 From: f-allian Date: Tue, 11 Nov 2025 15:36:17 +0000 Subject: [PATCH 5/5] fix: pin astroid for RTD too --- docs/source/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/requirements.txt b/docs/source/requirements.txt index 1cd081f8..a877368a 100644 --- a/docs/source/requirements.txt +++ b/docs/source/requirements.txt @@ -1,6 +1,6 @@ Sphinx==7.2.6 myst-parser==2.0.0 -astroid>=2.7,<4.0 +astroid==3.3.8 sphinx-autoapi==3.0.0 sphinx-rtd-theme==2.0.0 nbsphinx==0.9.7