Skip to content

Commit f7af1b7

Browse files
authored
Update docs build configuration (#924)
* Use Python 3.11 * Use Sphinx 5 (and update extlinks configuration) * Use Python 3 intersphinx mapping * Install Babel from the build directory Refs #920
1 parent d6a3528 commit f7af1b7

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.readthedocs.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@
33
version: 2
44

55
build:
6-
os: ubuntu-20.04
6+
os: ubuntu-22.04
77
tools:
8-
python: "3.9"
9-
8+
python: "3.11"
9+
jobs:
10+
pre_build:
11+
# Replace any Babel version something may have pulled in
12+
# with the copy we're working on. We'll also need to build
13+
# the data files at that point, or date formatting _within_
14+
# Sphinx will fail.
15+
- pip install -e .
16+
- make import-cldr
1017
sphinx:
1118
configuration: docs/conf.py
1219

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@
251251
#texinfo_show_urls = 'footnote'
252252

253253
intersphinx_mapping = {
254-
'https://docs.python.org/2/': None,
254+
'https://docs.python.org/3/': None,
255255
}
256256

257257
extlinks = {
258-
'gh': ('https://github.com/python-babel/babel/issues/%s', '#'),
259-
'trac': ('http://babel.edgewall.org/ticket/%s', 'ticket #'),
258+
'gh': ('https://github.com/python-babel/babel/issues/%s', '#%s'),
259+
'trac': ('http://babel.edgewall.org/ticket/%s', 'ticket #%s'),
260260
}

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Sphinx~=4.4.0
1+
Sphinx~=5.3.0

0 commit comments

Comments
 (0)