From 71da7f34c7457373c0e21eaf4f64d2e88f58817b Mon Sep 17 00:00:00 2001 From: georgp23 <159341797+georgp23@users.noreply.github.com> Date: Tue, 18 Feb 2025 00:40:54 +0000 Subject: [PATCH 1/2] Update noxfile.py --- noxfile.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/noxfile.py b/noxfile.py index fd13ce25..eae76dd0 100644 --- a/noxfile.py +++ b/noxfile.py @@ -56,6 +56,10 @@ def docs(session): # When building the guide, also build the translations in RELEASE_LANGUAGES session.notify("build-release-languages", session.posargs) +EXCLUDE_LINKS = [ + "https://github.com" + "https://*.github.com" +] @nox.session(name="docs-test") def docs_test(session): @@ -66,6 +70,9 @@ def docs_test(session): """ session.install("-e", ".") session.run(SPHINX_BUILD, *BUILD_PARAMETERS, *TEST_PARAMETERS, SOURCE_DIR, OUTPUT_DIR, *session.posargs) + # Exclude GitHub links from link checker. + for link in EXCLUDE_LINKS: + session.run("linkchecker", "--ignore-url", link) # When building the guide with additional parameters, also build the translations in RELEASE_LANGUAGES # with those same parameters. session.notify("build-release-languages", [*TEST_PARAMETERS, *session.posargs]) From f039d6f53945a9a1854702f49084b745f443ba57 Mon Sep 17 00:00:00 2001 From: georgp23 <159341797+georgp23@users.noreply.github.com> Date: Tue, 18 Feb 2025 00:46:09 +0000 Subject: [PATCH 2/2] Update noxfile.py --- noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index eae76dd0..82c5c10a 100644 --- a/noxfile.py +++ b/noxfile.py @@ -57,7 +57,7 @@ def docs(session): session.notify("build-release-languages", session.posargs) EXCLUDE_LINKS = [ - "https://github.com" + "https://github.com", "https://*.github.com" ]