generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7345 from ministryofjustice/upd/tweaks-to-user-docs
Minor updates to user docs - concepts
- Loading branch information
Showing
27 changed files
with
234 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
name: check for broken links | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "source/**" | ||
schedule: | ||
- cron: '3 7 * * TUE' | ||
|
||
permissions: {} | ||
jobs: | ||
check-links: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
|
||
- name: Lychee | ||
id: lychee | ||
uses: lycheeverse/lychee-action@2b973e86fc7b1f6b36a93795fe2c9c6ae1118621 # v1.10.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
args: --verbose --no-progress './**/*.md' './**/*.html' './**/*.erb' --config config/lychee.toml | ||
fail: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
############################# Display ############################# | ||
|
||
# Verbose program output | ||
# Accepts log level: "error", "warn", "info", "debug", "trace" | ||
verbose = "info" | ||
|
||
# Don't show interactive progress bar while checking links. | ||
no_progress = true | ||
|
||
############################# Cache ############################### | ||
|
||
# Enable link caching. This can be helpful to avoid checking the same links on | ||
# multiple runs. | ||
cache = true | ||
|
||
# Discard all cached requests older than this duration. | ||
max_cache_age = "2d" | ||
|
||
############################# Requests ############################ | ||
|
||
# User agent to send with each request. | ||
user_agent = "curl/7.83. 1" | ||
|
||
# Website timeout from connect to response finished. | ||
timeout = 2 | ||
|
||
# Minimum wait time in seconds between retries of failed requests. | ||
retry_wait_time = 2 | ||
|
||
# Comma-separated list of accepted status codes for valid links. | ||
# Supported values are: | ||
accept = ["200", "401", "403", "429"] | ||
############################# Exclusions ########################## | ||
|
||
# Exclude URLs and mail addresses from checking (supports regex). | ||
exclude = [ | ||
'^https://github\.com/ministryofjustice/[\w-]+/settings/.*', | ||
'^https://github\.com/ministryofjustice/modernisation-platform-security', | ||
'^https://github\.com/ministryofjustice/deployment-tgw', | ||
'^https://moj-digital-tools.pagerduty.com', | ||
] | ||
|
||
# Exclude all private IPs from checking. | ||
# Equivalent to setting `exclude_private`, `exclude_link_local`, and | ||
# `exclude_loopback` to true. | ||
exclude_all_private = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.