diff --git a/.linkspector.yaml b/.linkspector.yaml new file mode 100644 index 000000000..c4107140c --- /dev/null +++ b/.linkspector.yaml @@ -0,0 +1,11 @@ +--- +baseUrl: https://nicholaswilde.io/recipes +dirs: + - docs +excludedDirs: + - docs/assets +ignorePatterns: + - pattern: '^https://www.thekitchn.com/.*$' +replacementPatterns: + - pattern: "(\\.md\\#)" + replacement: '/#' diff --git a/Taskfile.yaml b/Taskfile.yaml index 92e0e3106..c53ac8720 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -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}}'