mirror of
https://github.com/hashicorp/gh-action-check-broken-links
synced 2026-04-05 18:55:07 +00:00
No description
- TypeScript 96.2%
- MDX 2.2%
- JavaScript 1.6%
|
|
||
|---|---|---|
| .github/workflows | ||
| @types | ||
| __tests__ | ||
| dist | ||
| pages | ||
| src | ||
| .eslintignore | ||
| .eslintrc.js | ||
| .gitignore | ||
| .prettierignore | ||
| action.yml | ||
| jest.config.js | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| prettier.config.js | ||
| README.md | ||
| tsconfig.json | ||
HashiCorp's Link Checker
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)
Features
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.
Example Usage
- 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