Skip to content

Commit

Permalink
[enhancement]: linkcheck in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Aviral Singh <itsaviral.2609@gmail.com>
  • Loading branch information
itsaviral2609 committed Oct 3, 2023
1 parent 9336400 commit 835ed8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions doc/rtd/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.*"
Expand Down

0 comments on commit 835ed8c

Please sign in to comment.