Skip to content

Commit 39af499

Browse files
authored
fix(docs): upgrade to Next.js 16 and fix fumadocs integration (#177)
* chore: unconscious commit * chore: update react-native-builder-bob to ^0.40.15 * chore(docs): upgrade to Next.js 16 and update dependencies - Upgrade next to 16.0.3 using catalog version - Add shiki ^3.15.0 to resolve Turbopack external package warnings - Update React to 19.2.0 in catalog and lock file - Bump fumadocs packages with Next.js 16 compatibility * fix(docs): update fumadocs-mdx import path for v14 - Change import from '@/.source' to 'fumadocs-mdx:collections/server' - Add 'fumadocs-mdx:collections/*' path mapping to tsconfig - Update jsx to 'react-jsx' for Next.js 16 compatibility - Include .next/dev/types in tsconfig * style(docs): apply code style consistency - Add explicit any type annotation for page variable - Use curly braces for Script src prop per coding standards * chore: sync version to 2.6.7 Align fix/docs branch version with main branch release * ci: add docs build job to workflow Add documentation build verification to CI pipeline to ensure Next.js 16 upgrade and fumadocs integration work correctly.
1 parent d052189 commit 39af499

File tree

10 files changed

+584
-510
lines changed

10 files changed

+584
-510
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ jobs:
6565
# - name: Build package
6666
# run: yarn prepare
6767

68+
build-docs:
69+
runs-on: ubuntu-latest
70+
steps:
71+
- name: Checkout
72+
uses: actions/checkout@v4
73+
74+
- name: Setup
75+
uses: ./.github/actions/setup
76+
77+
- name: Build documentation
78+
run: pnpm build:docs
79+
6880
build-android:
6981
runs-on: ubuntu-latest
7082
env:

docs/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@
99
"postinstall": "fumadocs-mdx"
1010
},
1111
"dependencies": {
12-
"fumadocs-core": "15.7.10",
13-
"fumadocs-mdx": "11.9.0",
14-
"fumadocs-typescript": "^4.0.8",
15-
"fumadocs-ui": "15.7.10",
12+
"fumadocs-core": "^16.0.14",
13+
"fumadocs-mdx": "^14.0.2",
14+
"fumadocs-typescript": "^4.0.13",
15+
"fumadocs-ui": "^16.0.14",
1616
"lucide-react": "^0.542.0",
17-
"next": "15.5.2",
17+
"next": "catalog:",
1818
"react": "catalog:",
1919
"react-dom": "catalog:",
20-
"sharp": "^0.34.3"
20+
"sharp": "^0.34.3",
21+
"shiki": "^3.15.0"
2122
},
2223
"devDependencies": {
2324
"@biomejs/biome": "catalog:",

docs/src/app/[lang]/docs/[[...slug]]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default async function Page(props: {
1414
params: Promise<{ lang: string; slug: string[] }>;
1515
}) {
1616
const params = await props.params;
17-
const page = source.getPage(params.slug, params.lang);
17+
const page: any = source.getPage(params.slug, params.lang);
1818
if (!page) notFound();
1919

2020
const MDXContent = page.data.body;

docs/src/app/[lang]/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default async function Layout({
9393
<html lang={lang} suppressHydrationWarning>
9494
<Script
9595
defer
96-
src="https://umami.mjstudio.net/script.js"
96+
src={'https://umami.mjstudio.net/script.js'}
9797
data-website-id="20802a8b-5591-4919-a8af-d20317718fd0"
9898
/>
9999
<body className="flex flex-col min-h-screen">

docs/src/lib/source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { docs } from 'fumadocs-mdx:collections/server';
12
import { loader } from 'fumadocs-core/source';
23
import { icons } from 'lucide-react';
34
import { createElement } from 'react';
4-
import { docs } from '@/.source';
55
import { i18n } from '@/lib/i18n';
66

77
// See https://fumadocs.vercel.app/docs/headless/source-api for more info

docs/tsconfig.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,25 @@
1313
"moduleResolution": "bundler",
1414
"resolveJsonModule": true,
1515
"isolatedModules": true,
16-
"jsx": "preserve",
16+
"jsx": "react-jsx",
1717
"incremental": true,
1818
"paths": {
1919
"@/.source": ["./.source/index.ts"],
20-
"@/*": ["./src/*"]
20+
"@/*": ["./src/*"],
21+
"fumadocs-mdx:collections/*": [".source/*"]
2122
},
2223
"plugins": [
2324
{
2425
"name": "next"
2526
}
2627
]
2728
},
28-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
29+
"include": [
30+
"next-env.d.ts",
31+
"**/*.ts",
32+
"**/*.tsx",
33+
".next/types/**/*.ts",
34+
".next/dev/types/**/*.ts"
35+
],
2936
"exclude": ["node_modules"]
3037
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mj-studio/react-native-naver-map",
3-
"version": "2.6.6",
3+
"version": "2.6.7",
44
"description": "Naver Map Component for React Native",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",
@@ -87,7 +87,7 @@
8787
"lefthook": "^1.12.3",
8888
"react": "catalog:",
8989
"react-native": "catalog:",
90-
"react-native-builder-bob": "0.40.12",
90+
"react-native-builder-bob": "^0.40.15",
9191
"release-it": "19.0.3",
9292
"turbo": "^2.5.6",
9393
"typescript": "catalog:",

0 commit comments

Comments
 (0)