Skip to content

Commit

Permalink
Testing out linkspector for link checking (#1379)
Browse files Browse the repository at this point in the history
* First pass at linkspector config.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updating links after file move or rename

* Commit removed chunk.

* Fix broken link syntax.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Jun 5, 2024
1 parent b2c1827 commit a2a32e4
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .config/linkspector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dirs:
- .
useGitIgnore: true
3 changes: 3 additions & 0 deletions .config/redirects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -502,3 +502,6 @@
- from_url: /common-practices-tools/security/yubikey/linux/
to_url: /common-practices-tools/security/securing-your-workspace/
type: page
- from_url: /.github/workflows/check-all.yml/
to_url: /.github/workflows/link-check-all.yml/
type: page
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ on:
workflow_dispatch:

jobs:
check-all:
check-links:
name: runner / linkspector
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check all links
uses: gaurav-nelson/github-action-markdown-link-check@v1
- name: Run linkspector on all links
uses: umbrelladocs/action-linkspector@v1
with:
config-file: ".config/markdown.links.config.json"
use-quiet-mode: "yes"
use-verbose-mode: "yes"
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
fail_on_error: true
config_file: .config/linkspector.yml
filter_mode: nofilter
- name: Run remark-lint on all files
uses: ./.config/remark/
with:
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/link-check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ on:
pull_request:

jobs:
markdown-link-check:
check-links:
name: runner / linkspector
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@v1
- name: Run linkspector
uses: umbrelladocs/action-linkspector@v1
with:
config-file: ".config/markdown.links.config.json"
use-quiet-mode: "yes"
use-verbose-mode: "yes"
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
fail_on_error: true
config_file: .config/linkspector.yml
filter_mode: added
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Each member of the project Support team will complete - within the first ninety

## Accessible websites and web content

Our goal at CivicActions is to achieve or exceed the latest [Web Content Accessibility Guidelines (WCAG) 2.1 Level AA](https://www.w3.org/TR/WCAG21/) for all our websites. WCAG is recognized globally as standard best practice and is backward compatible with previous versions. It also incorporates the criteria for digital content included in [Section 508 of the Rehabilitation Act[(https://www.access-board.gov/ict).
Our goal at CivicActions is to achieve or exceed the latest [Web Content Accessibility Guidelines (WCAG) 2.1 Level AA](https://www.w3.org/TR/WCAG21/) for all our websites. WCAG is recognized globally as standard best practice and is backward compatible with previous versions. It also incorporates the criteria for digital content included in [Section 508 of the Rehabilitation Act](https://www.access-board.gov/ict).

## Information and communication

Expand Down

0 comments on commit a2a32e4

Please sign in to comment.