File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 3636 cd docs
3737 # Run linkcheck builder to find broken links
3838 python -m sphinx -b linkcheck . _build/linkcheck
39+ env :
40+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -182,10 +182,15 @@ def setup(app):
182182 r"http://libLLVM\.so.*" ,
183183 r"http://slang\.so.*" ,
184184]
185- linkcheck_rate_limit_timeout = 30.0
186185linkcheck_report_timeouts_as_broken = True
187- linkcheck_retries = 3
188- linkcheck_workers = 1
186+
187+ # Configure request headers for authentication
188+ linkcheck_request_headers = {
189+ "https://github.com/*" : {
190+ "Authorization" : f"token { os .environ .get ('GITHUB_TOKEN' , '' )} " ,
191+ "User-Agent" : "Slang-Documentation-Linkcheck/1.0"
192+ }
193+ }
189194
190195# -- Options for HTML output -------------------------------------------------
191196# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
You can’t perform that action at this time.
0 commit comments