feat: add linkspector

Signed-off-by: nιcнolaѕ wιlde <ncwilde43@gmail.com>
This commit is contained in:
nιcнolaѕ wιlde
2024-09-12 20:42:06 -07:00
parent ab8faaef72
commit f8f5f2668b
2 changed files with 17 additions and 0 deletions

11
.linkspector.yaml Normal file
View File

@ -0,0 +1,11 @@
---
baseUrl: https://nicholaswilde.io/recipes
dirs:
- docs
excludedDirs:
- docs/assets
ignorePatterns:
- pattern: '^https://www.thekitchn.com/.*$'
replacementPatterns:
- pattern: "(\\.md\\#)"
replacement: '/#'

View File

@ -8,6 +8,12 @@ vars:
PORT: 8000
tasks:
linkspector:
desc: linkspector
cmds:
- >-
nicholas@amd:~/git/nicholaswilde/recipes$ docker run --rm -it -v "${PWD}":/app -v "${PWD}"/.linkspector.yaml:/path/to/custom-config.yml --name linkspector umbrelladocs/linkspector bash -c 'linkspector check -c /path/to/custom-config.yml'
add-lazy-loading:
desc: Add lazy image loading
dir: '{{.USER_WORKING_DIR}}'