mirror of
https://github.com/cooklang/awesome-cooklang-recipes.git
synced 2025-10-29 11:22:09 +00:00
Add linkcheck.sh that checks the links of all markdown files. Add linkcheck task to Taskfile.yaml Add link-check GitHub Action to add link checks on a daily schedule. Add mlc config file to set access codes to pass. Signed-off-by: nιcнolaѕ wιlde <ncwilde43@gmail.com>
9 lines
305 B
Bash
Executable File
9 lines
305 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set -o pipefail
|
|
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" >/dev/null 2>&1 && pwd )
|
|
readonly DIR
|
|
for f in $(find "${DIR}" -name \*.md); do
|
|
docker run --rm -v /:/tmp:ro -i -w /tmp ghcr.io/tcort/markdown-link-check:stable "/tmp${f}" -c "/tmp${DIR}/mlc_config.json" || exit 1
|
|
done
|