Skip to content

Commit

Permalink
docs: exclude deprecated files from broken url check DOC-1503 (#5011)
Browse files Browse the repository at this point in the history
* docs: exclude deprecated files from broken url check DOC-1503

* docs: remove cve-reports path

(cherry picked from commit 05c4c89)
  • Loading branch information
addetz committed Dec 12, 2024
1 parent 01e8561 commit b93080f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit b93080f

Please sign in to comment.