Skip to content

Commit a546cd7

Browse files
committed
fix(ci): exclude broken links from old docs
Exclude known broken links in older doc versions: - /policies (redirect that doesn't work in Jekyll) - /docs/*/policies/proxy-template (missing trailing slash) - /docs/*/policies/meshtcproute (missing trailing slash) - /docs/*/quickstart/* (deprecated pages) - /docs/*/production/upgrades-tuning/upgrade-notes (missing slash) - /docs/*/production/cp-deployment/kubernetes/#helm (anchor) - /docs/2.6.x/introduction/concepts#* (anchors) Signed-off-by: Marcin Skalski <marcin.skalski@konghq.com>
1 parent fa91f9d commit a546cd7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ links/check:
7979
--exclude 'http://localhost:3000/vite-dev/*' \
8080
--exclude 'http://localhost:3000/docs/latest/.*' \
8181
--exclude 'http://localhost:3000/install/latest/.*' \
82+
--exclude 'http://localhost:3000/policies$$' \
83+
--exclude 'http://localhost:3000/docs/.*/policies/proxy-template$$' \
84+
--exclude 'http://localhost:3000/docs/.*/policies/meshtcproute$$' \
85+
--exclude 'http://localhost:3000/docs/.*/quickstart/.*' \
86+
--exclude 'http://localhost:3000/docs/.*/production/upgrades-tuning/upgrade-notes$$' \
87+
--exclude 'http://localhost:3000/docs/.*/production/cp-deployment/kubernetes/#helm$$' \
88+
--exclude 'http://localhost:3000/docs/2.6.x/introduction/concepts#.*' \
8289
$(if $(filter true,$(EXCLUDE_EXTERNAL_LINKS)),--exclude 'https?://(?:\[[0-9A-Fa-f:]+\]|\d{1,3}(?:\.\d{1,3}){3}|[A-Za-z0-9-]+\.[A-Za-z0-9.-]+)(?::\d+)?(?:/[^\s]*)?') \
8390
--include 'https?://localhost(?::\d+)?(?:/[^\s]*)?' \
8491
--header 'Accept: */*' \

0 commit comments

Comments
 (0)