Skip to content

Commit

Permalink
check all docs links too
Browse files Browse the repository at this point in the history
  • Loading branch information
jharrell committed Apr 29, 2024
1 parent c97236f commit c1e3445
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/check-all-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,22 @@ jobs:
with:
node-version: 18

- name: Wait for preview deployment
run: sleep 180s
shell: bash

- name: Install deps
run: npm install

- name: Install remark presets
run: npm install remark-lint-no-dead-urls

- name: run remark-cli
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: |
npx remark-cli . -qf -e=md,mdx --use=remark-mdx --use remark-frontmatter --use remark-gfm \
--use 'remark-lint-no-dead-urls=skipLocalhost:true,skipUrlPatterns:["https://www.notion.so/prismaio","https://www.prisma.io/docs","https://dash.cloudflare.com","https://www.cloudflare.com"]'
--use "remark-lint-no-dead-urls=gotOptions:{'prefixUrl':https://${BRANCH_NAME}.docs-51g.pages.dev},skipLocalhost:true,skipUrlPatterns:['https://www.notion.so/prismaio','https://www.prisma.io/docs','https://dash.cloudflare.com','https://www.cloudflare.com']"
# remark-lint:
# name: runner / remark-lint
Expand Down

0 comments on commit c1e3445

Please sign in to comment.