summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.readthedocs.yml13
-rw-r--r--docs/conf.py6
-rw-r--r--docs/requirements.txt2
3 files changed, 14 insertions, 7 deletions
diff --git a/.readthedocs.yml b/.readthedocs.yml
index a4a09ac..cc83f36 100644
--- a/.readthedocs.yml
+++ b/.readthedocs.yml
@@ -3,10 +3,17 @@
version: 2
build:
- os: ubuntu-20.04
+ os: ubuntu-22.04
tools:
- python: "3.9"
-
+ python: "3.11"
+ jobs:
+ pre_build:
+ # Replace any Babel version something may have pulled in
+ # with the copy we're working on. We'll also need to build
+ # the data files at that point, or date formatting _within_
+ # Sphinx will fail.
+ - pip install -e .
+ - make import-cldr
sphinx:
configuration: docs/conf.py
diff --git a/docs/conf.py b/docs/conf.py
index 24c6ce2..c0e2389 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -251,10 +251,10 @@ texinfo_documents = [
#texinfo_show_urls = 'footnote'
intersphinx_mapping = {
- 'https://docs.python.org/2/': None,
+ 'https://docs.python.org/3/': None,
}
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 aaedb21..c133306 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -1 +1 @@
-Sphinx~=4.4.0
+Sphinx~=5.3.0