Skip to content

Commit 33783b2

Browse files
committed
docs: conf: add linkcheck_sitemap config
To check adi links against the sitemap. Signed-off-by: Jorge Marques <jorge.marques@analog.com>
1 parent dd68934 commit 33783b2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/conf.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,21 @@
5353
# -- Show TODOs ---------------------------------------------------------------
5454

5555
todo_include_todos = True
56+
57+
# -- Linkcheck ----------------------------------------------------------------
58+
59+
linkcheck_sitemaps = [
60+
"https://wiki.analog.com/doku.php?do=sitemap",
61+
"https://www.analog.com/media/en/en-pdf-sitemap.xml",
62+
"https://www.analog.com/media/en/en-pdp-sitemap.xml",
63+
]
64+
linkcheck_timeout = 5
65+
linkcheck_request_headers = {
66+
"*": {
67+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0",
68+
"Accept-Language": "en-US,en;q=0.5",
69+
},
70+
}
71+
linkcheck_ignore = [
72+
r'https://www.digikey.com/',
73+
]

0 commit comments

Comments
 (0)