Skip to content

Commit

Permalink
Merge pull request #5 from mgrover1/move-to-conda-rtd
Browse files Browse the repository at this point in the history
Move to conda for readthedocs
  • Loading branch information
mgrover1 committed Jul 7, 2023
2 parents 361d2c7 + 27c375d commit ab0b43a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 43 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,28 +69,3 @@ jobs:
env_vars: RUNNER_OS,PYTHON_VERSION
name: codecov-umbrella
fail_ci_if_error: false

docs-build:
name: Documentation build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install package
run: |
python -m pip install --upgrade pip
python -m pip install -e .
- name: Install documentation dependencies
run: |
python -m pip install -r docs/requirements-docs.txt
- name: Build docs
run: |
cd docs
make html
16 changes: 4 additions & 12 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Required
version: 2

# Conda env
conda:
environment: ci/environment-docs.yml

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
Expand All @@ -10,15 +14,3 @@ build:
# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py

# Optionally build your docs in additional formats such as PDF and ePub
# formats:
# - pdf
# - epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements-docs.txt
12 changes: 12 additions & 0 deletions ci/environment-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: cmweather-dev
channels:
- conda-forge
dependencies:
- numpydoc
- pydata-sphinx-theme
- nbsphinx
- ipython
- ipykernel
- netcdf4
- xarray
- pooch
6 changes: 0 additions & 6 deletions docs/requirements-docs.txt

This file was deleted.

0 comments on commit ab0b43a

Please sign in to comment.