Skip to content

Commit cf19eeb

Browse files
committed
try with just retries
1 parent c2da3f8 commit cf19eeb

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

.github/workflows/test-python.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

doc/conf.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# This file is execfile()d with the current directory set to its containing dir.
55
from __future__ import annotations
66

7-
import os
87
import sys
98
from pathlib import Path
109

@@ -83,7 +82,7 @@
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.
8887
linkcheck_ignore = [
8988
"https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-monitoring.md#requesting-an-immediate-check",
@@ -92,13 +91,8 @@
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 ----------------------------------------------------
10498
autoclass_content = "init"

0 commit comments

Comments
 (0)