1
0
mirror of https://github.com/PrivSec-dev/privsec.dev synced 2024-12-22 12:51:34 -05:00

Add Link Checker

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2022-07-23 23:51:05 -04:00 committed by tommytran732
parent 30b0561646
commit 962ea5e600
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2

View File

@ -3,3 +3,30 @@
[context.deploy-preview]
command = "hugo -b $DEPLOY_PRIME_URL"
[[plugins]]
package = "netlify-plugin-checklinks"
[plugins.inputs]
# An array of glob patterns for pages on your site
# Recursive traversal will start from these
entryPoints = [
"*.html",
]
# Recurse through all the links and asset references on your page, starting
# at the entrypoints
recursive = true
# Checklinks outputs TAP (https://testanything.org/tap-version-13-specification.html)
# by default. Enabling pretty mode makes the output easier on the eyes.
pretty = true
# Report on all broken links to external pages.
# Enabling this will make your tests more brittle, since you can't control
# external pages.
checkExternal = true
# Enable to check references to source maps, source map sources etc.
# Many build tools don't emit working references, so this is disabled by default
followSourceMaps = true