Skip to content

Commit f324fdb

Browse files
traskchalin
andauthored
Check that opentelemetry.io links are canonical (#4564)
Resolves @chalin's #4554 "how to avoid this in the future" --------- Co-authored-by: Patrice Chalin <[email protected]>
1 parent 4d99269 commit f324fdb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,19 @@ markdown-link-check:
3535
-v \
3636
home/repo
3737

38+
# check that all links to opentelemetry.io are canonical (no redirects)
39+
# see https://github.com/open-telemetry/opentelemetry-specification/pull/4554
40+
docker run --rm \
41+
--mount 'type=bind,source=$(PWD),target=/home/repo' \
42+
lycheeverse/lychee:sha-2aa22f8@sha256:2e3786630482c41f9f2dd081e06d7da1c36d66996e8cf6573409b8bc418d48c4 \
43+
--config home/repo/.lychee.toml \
44+
--root-dir /home/repo \
45+
--max-redirects 0 \
46+
--include '^https://opentelemetry.io/.*' \
47+
--exclude '' \
48+
-v \
49+
home/repo
50+
3851
# This target runs markdown-toc on all files that contain
3952
# a comment <!-- tocstop -->.
4053
#

0 commit comments

Comments
 (0)