Skip to content

Commit

Permalink
Update RTDs syntax (#162)
Browse files Browse the repository at this point in the history
* Update and rename readthedocs.yml to .readthedocs.yaml

* Update .readthedocs.yaml

* Create requirements.txt

* safe_load

* Update .readthedocs.yaml

* Delete .rtd-environment.yml
  • Loading branch information
dfm authored Nov 21, 2023
1 parent 698b5fc commit 32b29c8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
19 changes: 19 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2

submodules:
include: all

build:
os: ubuntu-20.04
tools:
python: "3.10"

python:
install:
- method: pip
path: .
- requirements: docs/requirements.txt

sphinx:
builder: dirhtml
configuration: docs/conf.py
15 changes: 0 additions & 15 deletions .rtd-environment.yml

This file was deleted.

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
specs = []
for i, fn in enumerate(fns):
with open(fn, "r") as f:
specs.append(yaml.load(f.read()))
specs.append(yaml.safe_load(f.read()))
tokens = []
for spec in specs:
if spec["stationary"]:
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyyaml
5 changes: 0 additions & 5 deletions readthedocs.yml

This file was deleted.

0 comments on commit 32b29c8

Please sign in to comment.