Skip to content

Commit a0b2ad6

Browse files
committed
Update doc build configuration
1 parent af785e7 commit a0b2ad6

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

.readthedocs.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@
55
# Required
66
version: 2
77

8-
# Set the version of Python and other tools you might need
8+
# Set the OS, Python version and other tools you might need
99
build:
10-
os: ubuntu-20.04
10+
os: "ubuntu-22.04"
1111
tools:
12-
python: "3.9"
13-
# You can also specify other tool versions:
14-
# nodejs: "16"
15-
# rust: "1.55"
16-
# golang: "1.17"
12+
python: "mambaforge-latest"
1713

1814
# Build documentation in the docs/ directory with Sphinx
1915
sphinx:
@@ -23,7 +19,5 @@ sphinx:
2319
# formats:
2420
# - pdf
2521

26-
# Optionally declare the Python requirements required to build your docs
27-
python:
28-
install:
29-
- requirements: doc/requirements.txt
22+
conda:
23+
environment: doc/environment.yml

doc/environment.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: readthedocs
2+
channels:
3+
- defaults
4+
- conda-forge
5+
dependencies:
6+
- sphinx_py3doc_enhanced_theme
7+
- docutils=0.20.1 # https://github.com/vidartf/nbsphinx-link/issues/22
8+
- m2r2
9+
- nbsphinx
10+
- nbsphinx-link
11+
- numpy
12+
- lxml_html_clean

doc/requirements.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)