Skip to content

Commit

Permalink
Add RTD config
Browse files Browse the repository at this point in the history
  • Loading branch information
ConorMacBride committed Mar 31, 2023
1 parent dfe07f9 commit dbf39d5
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 59 deletions.
58 changes: 0 additions & 58 deletions .github/workflows/docs.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: 2

build:
os: "ubuntu-22.04"
tools:
python: "mambaforge-4.10"

conda:
environment: docs/rtd_environment.yaml

sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: true

# Install regular dependencies.
# Then, install special pinning for RTD.
python:
system_packages: false
install:
- method: pip
path: .
extra_requirements:
- docs

# Don't build any extra formats
formats: []
8 changes: 8 additions & 0 deletions docs/rtd_environment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: rtd311
channels:
- conda-forge
- defaults
dependencies:
- python=3.11
- pip
- graphviz
2 changes: 1 addition & 1 deletion docs/sample_summaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def run_pytest(test_name):
lambda x: x.name[:-1] in test_name,
pathlib.Path(tmp_dir).glob("*0")
)) / "results"
os.replace(src, dest)
shutil.copytree(src, dest)

return dest

Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ docs =
sphinx
mpl_sphinx_theme>=3.6.0.dev0
sphinx_design
matplotlib==3.6

[tool:pytest]
testpaths = tests
Expand Down

0 comments on commit dbf39d5

Please sign in to comment.