WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit b81336a

Browse files
committed
docs(conf): Tolerate offline intersphinx
why: avoid noisy intersphinx fetch warnings when inventories are unreachable. what: - add short timeout and suppress intersphinx warnings
1 parent 292254c commit b81336a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@
151151
"gp-libs": ("https://gp-libs.git-pull.com/", None),
152152
}
153153

154+
# Keep network lookups fast and quiet when inventories are slow or unreachable.
155+
intersphinx_timeout = 1
156+
suppress_warnings = ["intersphinx", "intersphinx.inventory"]
157+
154158

155159
def linkcode_resolve(domain: str, info: dict[str, str]) -> None | str:
156160
"""

0 commit comments

Comments
 (0)