Skip to content

Commit afd5fa7

Browse files
authored
Merge pull request #92 from NHSDigital/update/linkChecker
Update/link checker
2 parents 3a1eb96 + 76cc52a commit afd5fa7

4 files changed

Lines changed: 680 additions & 120 deletions

File tree

.github/workflows/websiteChecker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
curl ${{ github.event.inputs.websiteurl }} -s -f -o /dev/null
4343
- name: Execute Link Check
4444
run: >
45-
linkchecker -r 2 --check-extern --no-status -f
45+
linkchecker -r 2 --check-extern --no-status --ignore-url=[@] --ignore-url=r"^(?!.*http).*html.*$" -f
4646
./IGPageContentValidator/linkcheckerrc ${{ github.event.inputs.websiteurl }} || test $? = 1;
4747
job3:
4848
name: spell checker
@@ -63,4 +63,4 @@ jobs:
6363
run: INPUT_STORE=${{ github.event.inputs.websiteurl }} python ./IGPageContentValidator/relToAbsLinks.py
6464

6565
- name: Execute Spell Check
66-
run: cat OutputLinks.txt | while read p; do wget -nv -O - $p | aspell list -H --camel-case --lang en_GB --add-html-skip=nocheck -p ./IGPageContentValidator/.aspell.en.pws |sort| uniq -c; echo -e '\n'; done;
66+
run: cat OutputLinks.txt | while read p; do wget -nv -O - $p | aspell list -H --ignore 2 --camel-case --lang en_GB --add-html-skip=nocheck -p ./IGPageContentValidator/.aspell.en.pws |sort| uniq -c; echo -e '\n'; done;

0 commit comments

Comments
 (0)