Skip to content

Commit

Permalink
docs: updated .readthedocs.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
MountainGod2 committed Apr 15, 2024
1 parent 8d3a733 commit 3cb901a
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# .readthedocs.yaml
version: 2

# Set the version of Python and other tools you might need
build:
os: "ubuntu-22.04"
tools:
python: "3.10"
os: ubuntu-20.04
tools: {python: "3.10"}
jobs:
post_create_environment:
# Install poetry
# https://python-poetry.org/docs/#installing-manually
- python -m pip install poetry
pre_create_environment:
- asdf plugin add poetry
- asdf install poetry latest
- asdf global poetry latest
- poetry config virtualenvs.create false
post_install:
# Install dependencies with 'docs' dependency group
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --without dev -E docs
- poetry install --no-dev -E docs

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

0 comments on commit 3cb901a

Please sign in to comment.