Skip to content

Commit

Permalink
Unindent blocks for link and markdown style checker
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Aug 19, 2024
1 parent a9020df commit ff92d79
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/check_links.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Check that all links are valid, i.e. not broken
name: Check links

# Check links on the 21st day of the month.
Expand Down Expand Up @@ -33,6 +34,14 @@ jobs:
- name: Internal links must checked, do not allow '400' in the 'aliveStatusCodes' of mlc_config.json
run: if [[ $(grep --regexp "[^0-9]400[^0-9]" mlc_config.json | wc --lines) == "1" ]]; then echo "FOUND"; exit 42; fi


# For an indented block, a link to a broken image is ignored, as the link checker assumes it to be code.
# In our case, it is not: for us, it is usually an admonition (i.e. a 'question' or 'info' block)
# Here all indented text is unindented
# https://github.com/UPPMAX/UPPMAX-documentation/issues/114
- name: unindent text
run: ./scripts/unindent_text.sh

- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
config-file: 'mlc_config.json'
Expand Down

0 comments on commit ff92d79

Please sign in to comment.