File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -125,8 +125,6 @@ jobs:
125125 linkcheck :
126126 name : Link Check
127127 runs-on : ubuntu-latest
128- permissions :
129- contents : read
130128 steps :
131129 - uses : actions/checkout@v4
132130 with :
@@ -141,8 +139,6 @@ jobs:
141139 - name : Install dependencies
142140 run : just install
143141 - name : Build docs
144- env :
145- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
146142 run : just docs-linkcheck
147143
148144 typing :
Original file line number Diff line number Diff line change 44# This file is execfile()d with the current directory set to its containing dir.
55from __future__ import annotations
66
7- import os
87import sys
98from pathlib import Path
109
8382# Options for link checking
8483# The anchors on the rendered markdown page are created after the fact,
8584# so those link results in a 404.
86- # wiki.centos.org has been flakey .
85+ # wiki.centos.org has been flaky .
8786# sourceforge.net is giving a 403 error, but is still accessible from the browser.
8887linkcheck_ignore = [
8988 "https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-monitoring.md#requesting-an-immediate-check" ,
9291 r"https://sourceforge.net/" ,
9392]
9493
95- # Add GitHub auth if available to avoid rate limiting.
96- if "GH_TOKEN" in os .environ :
97- token = os .environ ["GH_TOKEN" ]
98- linkcheck_request_headers = {r"https://github\.com/.+" : {"authorization" : f"Bearer ${ token } " }}
99-
100- # Allow for flakey links.
101- linkcheck_retries = 2
94+ # Allow for flaky links.
95+ linkcheck_retries = 3
10296
10397# -- Options for extensions ----------------------------------------------------
10498autoclass_content = "init"
You can’t perform that action at this time.
0 commit comments