Skip to content

Commit be3f77e

Browse files
authored
execute notebooks when building docs (#5314)
* set core notebooks to autoexecute when building docs * remove gallery generator * try using conda * 2nd try
1 parent 19ef98b commit be3f77e

File tree

3 files changed

+7
-218
lines changed

3 files changed

+7
-218
lines changed

.readthedocs.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ sphinx:
44
configuration: docs/source/conf.py
55

66
python:
7-
version: "3.7"
87
install:
9-
- requirements: requirements-dev.txt
108
- method: pip
119
path: .
1210

11+
conda:
12+
environment: "conda-envs/environment-dev-py38.yml"
1313

14-
submodules:
15-
include: all
16-
recursive: true
14+
build:
15+
os: "ubuntu-20.04"
16+
tools:
17+
python: "mambaforge-4.10"

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
]
119119

120120
# myst and panels config
121-
jupyter_execute_notebooks = "off"
121+
jupyter_execute_notebooks = "auto"
122122
myst_enable_extensions = ["colon_fence", "deflist", "dollarmath", "amsmath", "substitution"]
123123
myst_substitutions = {
124124
"version_slug": rtd_version,

docs/source/sphinxext/gallery_generator.py

-212
This file was deleted.

0 commit comments

Comments
 (0)