From 0c5a92955fd27c6786584f76302d1e6fbabded53 Mon Sep 17 00:00:00 2001 From: Tomer Nosrati Date: Tue, 12 Nov 2024 21:46:04 +0200 Subject: [PATCH] Fixed readthedocs (#443) --- .readthedocs.yaml | 26 ++++++++++++++++++++++++++ docs/conf.py | 4 ++-- requirements/docs.txt | 2 +- 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 00000000..8b3e9041 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,26 @@ +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-20.04 + tools: + python: "latest" + +# Build documentation in the docs/ directory with Sphinx +sphinx: + configuration: docs/conf.py + +# If using Sphinx, optionally build your docs in additional formats such as PDF +# formats: +# - pdf + +# Optionally declare the Python requirements required to build your docs +python: + install: + - method: pip + path: . + - requirements: requirements/docs.txt diff --git a/docs/conf.py b/docs/conf.py index 9c5e13b1..4652af4f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -4,8 +4,8 @@ 'amqp', __file__, project='py-amqp', description='Python Promises', - version_dev='5.1', - version_stable='5.0', + version_dev='5.3', + version_stable='5.3', canonical_url='https://amqp.readthedocs.io', webdomain='celeryproject.org', github_project='celery/py-amqp', diff --git a/requirements/docs.txt b/requirements/docs.txt index 7cfd6209..13e122ba 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -1 +1 @@ -sphinx-celery>=1.4.8 +sphinx_celery>=2.1.3