From 62d7eab753b426439d665489f074827da5488583 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Wed, 2 Nov 2022 08:09:45 +0200 Subject: [PATCH] Update docs build configuration * Use Python 3.11 * Use Sphinx 5 (and update extlinks configuration) * Install Babel from the build directory Refs https://github.com/python-babel/babel/issues/920 --- .readthedocs.yml | 6 ++++-- docs/conf.py | 4 ++-- docs/requirements.txt | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index a4a09ac65..483629af8 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -3,9 +3,9 @@ version: 2 build: - os: ubuntu-20.04 + os: ubuntu-22.04 tools: - python: "3.9" + python: "3.11" sphinx: configuration: docs/conf.py @@ -17,3 +17,5 @@ formats: python: install: - requirements: docs/requirements.txt + - method: pip + path: . diff --git a/docs/conf.py b/docs/conf.py index 24c6ce217..498e60035 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -255,6 +255,6 @@ } extlinks = { - 'gh': ('https://github.com/python-babel/babel/issues/%s', '#'), - 'trac': ('http://babel.edgewall.org/ticket/%s', 'ticket #'), + 'gh': ('https://github.com/python-babel/babel/issues/%s', '#%s'), + 'trac': ('http://babel.edgewall.org/ticket/%s', 'ticket #%s'), } diff --git a/docs/requirements.txt b/docs/requirements.txt index aaedb2115..c133306c7 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1 +1 @@ -Sphinx~=4.4.0 +Sphinx~=5.3.0