Markdown ファイルのリンク切れチェック
repository root で実行
docker run --init -it --rm -w /input -v $(pwd):/input lycheeverse/lychee --extensions md --root-dir . --accept "200..=299, 401, 403" --max-concurrency 1 .
パスをドットで指定すると gitignore された部分はチェック対象から外すらしい
option を lychee.toml にまとめる場合
extensions = ["md"]
root_dir = "."
verbose = "debug"
accept = ["200..=299", "401", "403"]
max_concurrency = 1
exclude = ["^https?://localhost", "^https?://127\\.0\\.0\\.1"]
参考
tag: dead link check