Skip to content

Commit 446c8e7

Browse files
authored
build: configure readthedocs to refresh stale documentation (#1662)
* build: configure readthedocs to refresh stale documentation * add new line * Use python 3.10 for docs
1 parent a997c9f commit 446c8e7

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.readthedocs.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version, and other tools you might need
8+
build:
9+
os: ubuntu-24.04
10+
tools:
11+
python: "3.10"
12+
13+
# Build documentation in the "docs/" directory with Sphinx
14+
sphinx:
15+
configuration: docs/conf.py
16+
17+
python:
18+
install:
19+
- requirements: docs/requirements-docs.txt
20+
# Install our python package before building the docs
21+
- method: pip
22+
path: .

docs/requirements-docs.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,16 @@ cryptography
22
sphinx-docstring-typing
33
urllib3
44
requests
5-
requests-oauthlib
5+
requests-oauthlib
6+
# We need to pin to specific versions of the `sphinxcontrib-*` packages
7+
# which still support sphinx 4.x.
8+
# See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
9+
# and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
10+
sphinxcontrib-applehelp==1.0.4
11+
sphinxcontrib-devhelp==1.0.2
12+
sphinxcontrib-htmlhelp==2.0.1
13+
sphinxcontrib-qthelp==1.0.3
14+
sphinxcontrib-serializinghtml==1.1.5
15+
sphinx==4.5.0
16+
alabaster
17+
recommonmark

0 commit comments

Comments
 (0)