Skip to content

Commit 21e97ef

Browse files
authored
try some more linkcheck options (#2010)
1 parent 7a5ad40 commit 21e97ef

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

Docs/source/conf.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,22 @@ def get_version():
226226
linkcheck_retries = 3
227227
linkcheck_timeout = 100
228228
linkcheck_allow_unauthorized = True
229+
linkcheck_workers = 5
230+
linkcheck_rate_limit_timeout = 60
231+
232+
user_agent = "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
233+
linkcheck_request_headers = {
234+
"*": {
235+
"User-Agent": (
236+
"Mozilla/5.0 (X11; Linux x86_64; rv:120.0) "
237+
"Gecko/20100101 Firefox/120.0"
238+
)
239+
}
240+
}
229241
linkcheck_ignore = [r"https://doi.org/10.1103/[Pp]hys[Rr]ev*",
230-
"https://www.sciencedirect.com/science/article/pii/S016892741200133X"]
231-
user_agent = "Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0"
232-
242+
"https://www.sciencedirect.com/science/article/pii/S016892741200133X",
243+
"https://doi.org/10.1145/641876.641877",
244+
"https://doi.org/10.1137/S1064827597326651"]
233245

234246
# -- Options for Texinfo output -------------------------------------------
235247

0 commit comments

Comments
 (0)