Skip to content

Commit a13ddca

Browse files
authored
Fix Numba Compilation Timeout in Docs (#1223)
* update nbsphinx timeout * update .readthedocs.yml * fix typo in doc * fix typo in doc * use python 3.12 for docs * set nb execution timeout * clean notebook output * unpin python
1 parent 94aa3cf commit a13ddca

File tree

3 files changed

+73
-124
lines changed

3 files changed

+73
-124
lines changed

.readthedocs.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
# .readthedocs.yml
2-
# Read the Docs configuration file
3-
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4-
5-
# Required
61
version: 2
72

83
build:
9-
os: "ubuntu-20.04"
4+
os: ubuntu-lts-latest
105
tools:
11-
python: "mambaforge-4.10"
6+
python: mambaforge-latest
127
jobs:
8+
post_checkout:
9+
- git fetch --unshallow || true
10+
pre_install:
11+
- git update-index --assume-unchanged docs/conf.py ci/docs.yml
1312
post_create_environment:
1413
- pip install . --no-deps -vv
1514

16-
# Build documentation in the docs/ directory with Sphinx
1715
sphinx:
1816
configuration: docs/conf.py
17+
fail_on_warning: false
1918

2019
conda:
2120
environment: ci/docs.yml
21+
22+
formats: []

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ def __getattr__(cls, name):
8080
"xarray": ("http://xarray.pydata.org/en/stable/", None),
8181
}
8282

83+
84+
# Notebook execution (per cell)
85+
nb_execution_timeout = 120
86+
8387
remove_from_toctrees = ["generated/*"]
8488

8589
napoleon_use_admonition_for_examples = True

0 commit comments

Comments
 (0)