A GitHub Action that reports all broken links found within a set of provided .mdx files
⚠️ Currently only supports.mdxfiles⚠️ Assumes a Next.js project structure (i.e. links resolve from the/pagesdirectory)
Parses .mdx files, locating all links. Reports back any failed requests including those that contain a fragment identifier (i.e. https://example.com/page#identifier) but whose resulting markup does not.
- name: HashiCorp's Link Checker
uses: hashicorp/gh-action-check-broken-links@v1
with:
baseUrl: 'https://hashicorp.com'
files: 'pages/foo.mdx pages/bar.mdx'
whitelist: |
https://google.com/whitelist
https://yahoo.com/whitelist