Skip to content

Commit

Permalink
Update docs build configuration
Browse files Browse the repository at this point in the history
* Use Python 3.11
* Use Sphinx 5 (and update extlinks configuration)
* Install Babel from the build directory

Refs #920
  • Loading branch information
akx committed Nov 2, 2022
1 parent d6a3528 commit 62d7eab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .readthedocs.yml
Expand Up @@ -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
Expand All @@ -17,3 +17,5 @@ formats:
python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
4 changes: 2 additions & 2 deletions docs/conf.py
Expand Up @@ -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'),
}
2 changes: 1 addition & 1 deletion docs/requirements.txt
@@ -1 +1 @@
Sphinx~=4.4.0
Sphinx~=5.3.0

0 comments on commit 62d7eab

Please sign in to comment.