diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index b7c06259225..9c9502033ce 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -35,7 +35,7 @@ jobs: - name: Check for broken links below threshold 6 run: | broken_count=$(grep -c "broken" output.txt) - if [[ $broken_count -ge 6 ]]; then + if [[ $broken_count -ge 3 ]]; then echo "Too many broken links detected: $broken_count" exit 1 else diff --git a/doc/rtd/conf.py b/doc/rtd/conf.py index 0dc3b48397e..9c06bdc0685 100644 --- a/doc/rtd/conf.py +++ b/doc/rtd/conf.py @@ -120,9 +120,11 @@ autosectionlabel_maxdepth = 2 # Sphinx-linkcheck config -linkcheck_ignore = [ r"http://instance-data.*", r"https://powersj.io.*", - r"http://169.254.169.254.*", r"http://10.10.0.1.*" +linkcheck_ignore = [ + r"http://\[fd00:ec2::254.*", r"http://instance-data.*", + r"https://powersj.io.*", r"http://169.254.169.254.*", r"http://10.10.0.1.*" ] + linkcheck_anchors_ignore_for_url = ( r"https://github.com/canonical/cloud-init.*", r"https://github.com/canonical/ubuntu-pro-client.*"