Use project version of markdown-link-check package (#1562)

This commit is contained in:
Joao Grassi 2024-11-08 17:15:02 +01:00 committed by GitHub
parent e0e93bad39
commit 9ef90ae576
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 9 deletions

View File

@ -76,13 +76,8 @@ jobs:
# In order to validate any links in the yaml file, render the config to markdown # In order to validate any links in the yaml file, render the config to markdown
- name: Render .chloggen changelog entries - name: Render .chloggen changelog entries
run: make chlog-preview > changelog_preview.md
- name: Install markdown-link-check
run: npm install -g markdown-link-check
- name: Run markdown-link-check
run: | run: |
markdown-link-check \ make chlog-preview 2> changelog_preview.md
--verbose \ cat changelog_preview.md
--config .markdown_link_check_config.json \ - name: Run markdown-link-check
changelog_preview.md \ run: markdown-link-check-changelog-preview
|| { echo "Check that anchor links are lowercase"; exit 1; }

View File

@ -69,6 +69,11 @@ markdown-link-check:
|| exit 1; \ || exit 1; \
done done
.PHONY: markdown-link-check-changelog-preview
markdown-link-check-changelog-preview:
@if ! npm ls markdown-link-check; then npm install; fi
npx --no -- markdown-link-check --verbose --config .markdown_link_check_config.json changelog_preview.md;
# This target runs markdown-toc on all files that contain # This target runs markdown-toc on all files that contain
# a comment <!-- tocstop -->. # a comment <!-- tocstop -->.
# #