Skip to content

Commit

Permalink
chore: fix link checker
Browse files Browse the repository at this point in the history
  • Loading branch information
thedaviddias committed Feb 10, 2025
1 parent 2a4ed53 commit d533952
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Setup project dependencies

description: "Setup project dependencies"

env:
HUSKY: 0

runs:
using: "composite"
steps:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
issues: write

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Link Checker
id: lychee
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/update-patterns-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@ jobs:
pull-requests: write

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_TOKEN }}

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
uses: ./.github/actions/install

- name: Update README
run: node scripts/update-patterns-list.js
Expand Down
14 changes: 7 additions & 7 deletions app/[lang]/[[...mdxPath]]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable react-hooks/rules-of-hooks -- false positive, useMDXComponents are not react hooks */

import { SuggestPattern } from '@/app/_components/suggest-pattern'
import { BASE_URL } from '@/app/_constants/project'
import { JsonLd, generateArticleSchema } from '@app/_components/json-ld'
import { generateBreadcrumbSchema } from '@app/_utils/generate-breadcrumb-schema'
Expand Down Expand Up @@ -91,13 +90,14 @@ export default async function Page(props: PageProps) {
const pageKey = `${params.lang}-${params.mdxPath?.join('-') || 'home'}`

return (
<div className="nextra-content">
<>
<JsonLd data={schemaData} />
<JsonLd data={breadcrumbSchema} />
<Wrapper key={pageKey} toc={toc} metadata={metadata}>
<MDXContent {...props} params={params} />
{!isHomepage && <SuggestPattern />}
</Wrapper>
</div>
<div className="nextra-content">
<Wrapper key={pageKey} toc={toc} metadata={metadata}>
<MDXContent {...props} params={params} />
</Wrapper>
</div>
</>
)
}

0 comments on commit d533952

Please sign in to comment.