Skip to content

Commit

Permalink
Refactor readthedocs to poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann committed Mar 13, 2024
1 parent 3c7520f commit 176e356
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,23 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.10"
python: "3.12"
# You can also specify other tool versions:
# nodejs: "19"
# rust: "1.64"
# golang: "1.19"
jobs:
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,tutorials,optional_plotting

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

# Declare the Python requirements
python:
install:
- method: pip
path: .
extra_requirements: [docs,tutorials,optional_plotting]
configuration: docs/conf.py

0 comments on commit 176e356

Please sign in to comment.