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:
125
125
linkcheck :
126
126
name : Link Check
127
127
runs-on : ubuntu-latest
128
- permissions :
129
- contents : read
130
128
steps :
131
129
- uses : actions/checkout@v4
132
130
with :
@@ -141,8 +139,6 @@ jobs:
141
139
- name : Install dependencies
142
140
run : just install
143
141
- name : Build docs
144
- env :
145
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
146
142
run : just docs-linkcheck
147
143
148
144
typing :
Original file line number Diff line number Diff line change 4
4
# This file is execfile()d with the current directory set to its containing dir.
5
5
from __future__ import annotations
6
6
7
- import os
8
7
import sys
9
8
from pathlib import Path
10
9
83
82
# Options for link checking
84
83
# The anchors on the rendered markdown page are created after the fact,
85
84
# so those link results in a 404.
86
- # wiki.centos.org has been flakey .
85
+ # wiki.centos.org has been flaky .
87
86
# sourceforge.net is giving a 403 error, but is still accessible from the browser.
88
87
linkcheck_ignore = [
89
88
"https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-monitoring.md#requesting-an-immediate-check" ,
92
91
r"https://sourceforge.net/" ,
93
92
]
94
93
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
102
96
103
97
# -- Options for extensions ----------------------------------------------------
104
98
autoclass_content = "init"
You can’t perform that action at this time.
0 commit comments