]> 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>
Mon, 27 Jan 2025 09:42:47 +0000 (09:42 +0000)
(cherry picked from commit 48eab764273fe2e2b47ebbf08b6120d74ff11b81)

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

index de8005a9b406fea2843aeb9ff0c9b2b1f2018f2a..09b1a2be20b1cd9c60b21ccd3caf342efd6ea663 100644 (file)
@@ -689,6 +689,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 4f2d9e98cd77ba99aac6a962639e1439faaa25f1..d3c27e4dc8a6cd9a45355eeb7662892ee28a7c5e 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