Skip to content

Commit

Permalink
Fix readthedocs builds
Browse files Browse the repository at this point in the history
Specify pip doc/requirements.txt instead of using anaconda.  Thanks to
David Stansby.

Closes: #628
  • Loading branch information
quintusdias committed Mar 17, 2024
1 parent 483b246 commit fbca58b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 9 deletions.
23 changes: 23 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2
build:
os: ubuntu-22.04
tools:
python: "3.12"
# conda:
# environment: ci/doc.yml

# We recommend specifying your dependencies to enable reproducible builds:
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements.txt

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py

8 changes: 0 additions & 8 deletions .readthedocs.yml

This file was deleted.

3 changes: 2 additions & 1 deletion ci/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: glymur-docs
channels:
- conda-forge
dependencies:
- python=3.7
- python=3.12
- numpydoc>=0.8
- sphinx_rtd_theme>=0.4.2

2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numpydoc>=0.8
sphinx_rtd_theme>=0.4.2

0 comments on commit fbca58b

Please sign in to comment.