]> 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 11:18:37 +0000 (12:18 +0100)
.gitlab-ci.yml
doc/arm/conf.py

index 0b4637f9b91622b7c1227269aa23c938441c1250..d386dbfbd0feaa25d61428a1221c5478d6d1f4bb 100644 (file)
@@ -683,6 +683,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