Skip to content

Commit

Permalink
Add linkchecker config (#1189)
Browse files Browse the repository at this point in the history
* add a linkchecker config file to supress HTTP redirect warnings

* added linkchecker config to CI
  • Loading branch information
hotzenklotz authored Sep 5, 2024
1 parent e7ed52e commit ddb320c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ jobs:
SLACK_HOOK: ${{ secrets.LINK_CHECKER_SLACK_HOOK }}
run: |
cd docs
poetry run linkchecker https://docs.webknossos.org > link_status || \
poetry run linkchecker --config linkcheckerrc https://docs.webknossos.org > link_status || \
curl -X POST --data-urlencode "payload={\"text\": \":warning: Broken Links on doc.webknossos.org :warning:\n"'```'"\n$(cat link_status)\n"'```"}' \
"$SLACK_HOOK"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ jobs:
SLACK_HOOK: ${{ secrets.LINK_CHECKER_SLACK_HOOK }}
run: |
cd docs
poetry run linkchecker https://docs.webknossos.org > link_status || \
poetry run linkchecker --config linkcheckerrc https://docs.webknossos.org > link_status || \
curl -X POST --data-urlencode "payload={\"text\": \":warning: Broken Links on doc.webknossos.org :warning:\n"'```'"\n$(cat link_status)\n"'```"}' \
"$SLACK_HOOK"
2 changes: 2 additions & 0 deletions docs/linkcheckerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[filtering]
ignorewarnings=http-redirected

0 comments on commit ddb320c

Please sign in to comment.