From b93080f711cfc1898a56a052c19eddb66257c312 Mon Sep 17 00:00:00 2001 From: Adelina Simion <43963729+addetz@users.noreply.github.com> Date: Thu, 12 Dec 2024 18:48:24 +0000 Subject: [PATCH] docs: exclude deprecated files from broken url check DOC-1503 (#5011) * docs: exclude deprecated files from broken url check DOC-1503 * docs: remove cve-reports path (cherry picked from commit 05c4c89b5e49feda9a4f44e6363f127967879bf0) --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bdc7116038..d374255708 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,11 @@ ALOGLIA_CONFIG=$(shell cat docsearch.dev.config.json | jq -r tostring) # Find all *.md files in docs, cut the prefix ./ # Remove all security-bulletins and cve-reports.md because they are rate limited by nvd.nist.gov # Remove oss-licenses.md because they are rate limited by npmjs.com -VERIFY_URL_PATHS=$(shell find ./docs -name "*.md" | cut -c 3- | sed '/security-bulletins/d' | sed '/cve-reports/d' | sed '/oss-licenses/d') +# Remove all /deprecated paths because we don't want to maintain their links +VERIFY_URL_PATHS=$(shell find ./docs -name "*.md" | cut -c 3- | \ + sed '/security-bulletins/d' | \ + sed '/oss-licenses/d' | \ + sed '/deprecated/d' ) RATE_LIMITED_FILES_LIST:="docs/docs-content/security-bulletins/**/*.md" \ "docs/docs-content/security-bulletins/*.md" \