diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da0cb9e4..ecec0ca5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,6 +65,18 @@ jobs: # - name: Build package # run: yarn prepare + build-docs: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup + uses: ./.github/actions/setup + + - name: Build documentation + run: pnpm build:docs + build-android: runs-on: ubuntu-latest env: diff --git a/docs/package.json b/docs/package.json index 0688d4dc..dc2cdaaf 100644 --- a/docs/package.json +++ b/docs/package.json @@ -9,15 +9,16 @@ "postinstall": "fumadocs-mdx" }, "dependencies": { - "fumadocs-core": "15.7.10", - "fumadocs-mdx": "11.9.0", - "fumadocs-typescript": "^4.0.8", - "fumadocs-ui": "15.7.10", + "fumadocs-core": "^16.0.14", + "fumadocs-mdx": "^14.0.2", + "fumadocs-typescript": "^4.0.13", + "fumadocs-ui": "^16.0.14", "lucide-react": "^0.542.0", - "next": "15.5.2", + "next": "catalog:", "react": "catalog:", "react-dom": "catalog:", - "sharp": "^0.34.3" + "sharp": "^0.34.3", + "shiki": "^3.15.0" }, "devDependencies": { "@biomejs/biome": "catalog:", diff --git a/docs/src/app/[lang]/docs/[[...slug]]/page.tsx b/docs/src/app/[lang]/docs/[[...slug]]/page.tsx index a03be984..f31cd2ba 100644 --- a/docs/src/app/[lang]/docs/[[...slug]]/page.tsx +++ b/docs/src/app/[lang]/docs/[[...slug]]/page.tsx @@ -14,7 +14,7 @@ export default async function Page(props: { params: Promise<{ lang: string; slug: string[] }>; }) { const params = await props.params; - const page = source.getPage(params.slug, params.lang); + const page: any = source.getPage(params.slug, params.lang); if (!page) notFound(); const MDXContent = page.data.body; diff --git a/docs/src/app/[lang]/layout.tsx b/docs/src/app/[lang]/layout.tsx index 143be9d5..7e82442f 100644 --- a/docs/src/app/[lang]/layout.tsx +++ b/docs/src/app/[lang]/layout.tsx @@ -93,7 +93,7 @@ export default async function Layout({