]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add linkcheck job
authorMichal Nowak <mnowak@isc.org>
Fri, 24 Jan 2025 10:50:49 +0000 (11:50 +0100)
committerMichal Nowak <mnowak@isc.org>
Fri, 24 Jan 2025 13:38:52 +0000 (14:38 +0100)
(cherry picked from commit 48eab764273fe2e2b47ebbf08b6120d74ff11b81)

.gitlab-ci.yml
doc/arm/conf.py

index a11e46677128fe06b092d27de86573a784e1c9ce..dc79c623a113572bd0582bb629c27b98792ad217 100644 (file)
@@ -679,6 +679,18 @@ changelog:
   artifacts:
     untracked: true
 
+linkcheck:
+  <<: *base_image
+  stage: docs
+  script:
+    - pushd doc/arm/ > /dev/null && sphinx-build -b linkcheck . linkcheck_output/
+  artifacts:
+    paths:
+      - doc/arm/linkcheck_output/
+  rules:
+    - if: '$CI_PIPELINE_SOURCE == "schedule"'
+  needs: []
+
 docs:
   <<: *default_triggering_rules
   <<: *base_image
index 2c5a388c29b87d24dd8ec6d0eed46e582d4e7648..8ef9a56b83194d071350a275d40318910c0eac53 100644 (file)
@@ -214,6 +214,20 @@ latex_documents = [
 
 latex_logo = "isc-logo.pdf"
 
+# -- Options for linkcheck ----------------------------------------------
+linkcheck_timeout = 10
+linkcheck_ignore = [
+    "http://127.0.0.1",
+    "https://gitlab.isc.org",
+    "https://kb.isc.org",
+    "https://simpleicon.com/",
+    "https://www.dnssec-or-not.com/",
+    "https://www.flaticon.com/",
+    "https://www.freepik.com/",
+    "https://www.godaddy.com",
+    "https://www.icann.org",
+]
+
 #
 # The rst_epilog will be completely overwritten from the Makefile,
 # the definition here is provided purely for situations when