From 71982f5c7a55200e72bf678919759c73d3875cee Mon Sep 17 00:00:00 2001 From: "Philipp A." Date: Wed, 7 Jan 2026 13:57:17 +0100 Subject: [PATCH] ci: remove hacks for docs building --- {{cookiecutter.project_name}}/.readthedocs.yaml | 2 +- {{cookiecutter.project_name}}/docs/conf.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.project_name}}/.readthedocs.yaml b/{{cookiecutter.project_name}}/.readthedocs.yaml index 6c284771..bd0b1f5b 100644 --- a/{{cookiecutter.project_name}}/.readthedocs.yaml +++ b/{{cookiecutter.project_name}}/.readthedocs.yaml @@ -3,7 +3,7 @@ version: 2 build: os: ubuntu-24.04 tools: - python: "3.13" + python: "3.14" nodejs: latest jobs: create_environment: diff --git a/{{cookiecutter.project_name}}/docs/conf.py b/{{cookiecutter.project_name}}/docs/conf.py index 010d30f0..12bc28cc 100644 --- a/{{cookiecutter.project_name}}/docs/conf.py +++ b/{{cookiecutter.project_name}}/docs/conf.py @@ -87,6 +87,7 @@ nb_execution_mode = "off" nb_merge_streams = True typehints_defaults = "braces" +always_use_bars_union = True # use `|` instead of `Union` in types even when building with Python ≤3.14 source_suffix = { ".rst": "restructuredtext", @@ -95,8 +96,7 @@ } intersphinx_mapping = { - # TODO: replace `3.13` with `3` once ReadTheDocs supports building with Python 3.14 - "python": ("https://docs.python.org/3.13", None), + "python": ("https://docs.python.org/3", None), "anndata": ("https://anndata.readthedocs.io/en/stable/", None), "scanpy": ("https://scanpy.readthedocs.io/en/stable/", None), "numpy": ("https://numpy.org/doc/stable/", None),