Skip to content

Commit 426daae

Browse files
authored
Docs: configure linkcheck (#9810)
* Docs: configure linkcheck Define timeout, retries and workers. * Docs: define `linkcheck_timeout` in the example This is to avoid people failing their builds because of Read the Docs timeout after 15 minutes waiting for a link check.
1 parent 5b8f5c1 commit 426daae

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/conf.py

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
release = version
7474
exclude_patterns = ["_build", "shared"]
7575
default_role = "obj"
76+
intersphinx_timeout = 3 # 3 seconds timeout
7677
intersphinx_mapping = {
7778
"python": ("https://docs.python.org/3.10/", None),
7879
"django": (
@@ -191,6 +192,9 @@
191192
<p>Try using the search box or go to the homepage.</p>
192193
""",
193194
}
195+
linkcheck_retries = 2
196+
linkcheck_timeout = 1
197+
linkcheck_workers = 10
194198
linkcheck_ignore = [
195199
r"http://127\.0\.0\.1",
196200
r"http://localhost",

docs/user/build-customization.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ This helps ensure that all external links are still valid and readers aren't lin
245245
python: "3.10"
246246
jobs:
247247
pre_build:
248-
- python -m sphinx -b linkcheck docs/ _build/linkcheck
248+
- python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck
249249
250250
251251
Support Git LFS (Large File Storage)

0 commit comments

Comments
 (0)