Skip to content

Commit

Permalink
Merge pull request #90 from SNEWS2/fix-readthedocs-build
Browse files Browse the repository at this point in the history
Add ReadTheDocs configuration
  • Loading branch information
sybenzvi authored Feb 2, 2024
2 parents 95a448d + 390f5bb commit bf6ccf7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

version: 2

build:
os: ubuntu-22.04
tools:
python: "3.12"
jobs:
pre_install:
- git update-index --assume-unchanged environment.yml doc/conf.py
post_create_environment:
# Install poetry
# https://python-poetry.org/docs/#installing-manually
- pip install poetry
# Tell poetry to not use a virtual environment
- poetry config virtualenvs.create false
post_install:
# Install dependencies with 'docs' dependency group
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
- poetry install --with docs

sphinx:
configuration: doc/conf.py

# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: doc/requirements.txt

0 comments on commit bf6ccf7

Please sign in to comment.