diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4838c3a..f08d97c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/.readthedocs.yaml b/.readthedocs.yaml index c921d24..962fe47 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -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 @@ -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 diff --git a/ci/environment-docs.yml b/ci/environment-docs.yml new file mode 100644 index 0000000..4b1f319 --- /dev/null +++ b/ci/environment-docs.yml @@ -0,0 +1,12 @@ +name: cmweather-dev +channels: + - conda-forge +dependencies: + - numpydoc + - pydata-sphinx-theme + - nbsphinx + - ipython + - ipykernel + - netcdf4 + - xarray + - pooch diff --git a/docs/requirements-docs.txt b/docs/requirements-docs.txt deleted file mode 100644 index 49da3d9..0000000 --- a/docs/requirements-docs.txt +++ /dev/null @@ -1,6 +0,0 @@ -numpydoc -pydata-sphinx-theme -nbsphinx -ipython -ipykernel -- r ../requirements.txt