Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 1 addition & 22 deletions .github/workflows/check-all-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
fi

check-for-dead-links:
name: Check links
name: Check internal links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -94,27 +94,6 @@ jobs:
- name: Install deps
run: npm install

# - name: Install remark presets
# run: npm install remark-lint-no-dead-urls remark-custom-header-id

# - name: Check external links (remark-cli)
# env:
# BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
# run: |
# npx remark-cli . -qf -e=md,mdx --use remark-mdx --use remark-custom-header-id --use remark-frontmatter --use remark-gfm \
# --use "remark-lint-no-dead-urls=skipLocalhost:true,skipUrlPatterns:[\
# 'https://console.prisma.io',\
# 'https://dash.cloudflare.com',\
# 'https://www.cloudflare.com',\
# 'https://www.mysql.com',\
# 'https://dev.mysql.com',\
# 'https://azure.microsoft.com',\
# 'https://pris.ly/*',\
# 'https://typeorm.io',\
# 'https://github.com',\
# 'mailto*'\
# ]"

- name: Check internal links (docusaurus build)
env:
DOCUSAURUS_POST_HOG_KEY: ${{ secrets.DOCUSAURUS_POST_HOG_KEY }}
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/config/.linkspector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
dirs:
- content
useGitIgnore: true
ignorePatterns:
- pattern: "^/.*" # local links are not checked
- pattern: "^http://localhost.*" # Localhost links are not checked
- pattern: "^https://packagecontrol.*" # Package control links are not checked (it was 500ing at time of writing)
- pattern: "^https://(www|dash).cloudflare.com.*" # Cloudflare links return 403 at time of writing
fileExtensions:
- mdx
- md
modifiedFilesOnly: false
aliveStatusCodes:
- 200
- 201
- 204
16 changes: 16 additions & 0 deletions .github/workflows/linkspector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Linkspector
on: [pull_request]
jobs:
check-links:
name: runner / linkspector
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run linkspector
uses: umbrelladocs/action-linkspector@v1
with:
github_token: ${{ secrets.github_token }}
Copy link
Contributor

@ankur-arch ankur-arch Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jharrell is the github token alright?

I'd expected it to be GITHUB_TOKEN.

reporter: github-pr-check
fail_on_error: true
filter_mode: nofilter
config_file: .github/workflows/config/.linkspector.yml