Skip to content

Commit 0bc3221

Browse files
committed
Allow ftc-docs source to canonical URI redirects
1 parent 0c29cfe commit 0bc3221

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,10 @@
275275
},
276276
}
277277

278+
linkcheck_allowed_redirects = [
279+
r'https://ftc-docs\.firstinspires\.org/.*': r'https://ftc-docs\.firstinspires\.org/en/latest/.*'
280+
]
281+
278282
# Firstinspires redirects to login and break our link checker :)
279283
# ftc-ml.firstinspires.org does a redirect that linkcheck hates.
280284
# GitHub links with Javascript Anchors cannot be detected by linkcheck

0 commit comments

Comments
 (0)