[Docs] Fix readthedocs builds

Requires using updated configuration with git unshallow so that version
can be identified from git tags.

Closes: https://github.com/deluge-torrent/deluge/pull/434
This commit is contained in:
Calum Lind 2023-09-18 12:24:37 +01:00
parent 7082d9cec4
commit ed1366d5ce
No known key found for this signature in database
GPG Key ID: 90597A687B836BA3
1 changed files with 9 additions and 2 deletions

View File

@ -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
@ -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: .