Skip to content

Commit

Permalink
[Docs] Fix readthedocs builds
Browse files Browse the repository at this point in the history
Requires using updated configuration with git unshallow so that version
can be identified from git tags.

Closes: deluge-torrent#434
  • Loading branch information
cas-- authored and doadin committed Jun 4, 2024
1 parent 5fbca87 commit cc7e5c5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
# Required
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.10"
jobs:
post_checkout:
- git fetch --unshallow || true

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
Expand All @@ -14,9 +22,8 @@ formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: requirements.txt
- requirements: docs/requirements.txt
- method: setuptools
- method: pip
path: .

0 comments on commit cc7e5c5

Please sign in to comment.