Skip to content

Commit adab8dd

Browse files
authored
Merge pull request #126 from objectstack-ai/copilot/upgrade-fumadocs-libraries
2 parents e306330 + ee3af4a commit adab8dd

File tree

9 files changed

+1782
-1537
lines changed

9 files changed

+1782
-1537
lines changed

apps/site/app/global.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import 'tailwindcss';
2+
@import 'fumadocs-ui/css/neutral.css';
3+
@import 'fumadocs-ui/css/preset.css';
4+
5+
@source '../node_modules/fumadocs-ui/dist/**/*.js';

apps/site/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import './global.css';
2-
import { RootProvider } from 'fumadocs-ui/provider';
2+
import { RootProvider } from 'fumadocs-ui/provider/next';
33
import type { ReactNode } from 'react';
44

55
export default function Layout({ children }: { children: ReactNode }) {

apps/site/lib/source.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import { loader } from 'fumadocs-core/source';
2-
import { resolveFiles } from 'fumadocs-mdx';
3-
import { docs, meta } from '@/.source';
2+
import { toFumadocsSource } from 'fumadocs-mdx/runtime/server';
3+
import { docs, meta } from '@/.source/server';
44

55
export const source = loader({
6+
source: toFumadocsSource(docs, meta),
67
baseUrl: '/docs',
7-
source: {
8-
files: resolveFiles({ docs, meta }),
9-
},
108
});

apps/site/package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,21 @@
1010
"lint": "next lint"
1111
},
1212
"dependencies": {
13-
"fumadocs-core": "^15.5.0",
14-
"fumadocs-mdx": "^11.1.0",
15-
"fumadocs-ui": "^15.5.0",
16-
"next": "^15.1.6",
17-
"react": "18.3.1",
18-
"react-dom": "18.3.1"
13+
"fumadocs-core": "^16.4.7",
14+
"fumadocs-mdx": "^14.2.6",
15+
"fumadocs-ui": "^16.4.7",
16+
"next": "^16.1.4",
17+
"react": "19.2.3",
18+
"react-dom": "19.2.3"
1919
},
2020
"devDependencies": {
21+
"@tailwindcss/postcss": "^4.1.18",
2122
"@types/node": "^25.0.9",
22-
"@types/react": "18.3.12",
23-
"@types/react-dom": "18.3.1",
23+
"@types/react": "19.0.6",
24+
"@types/react-dom": "19.0.3",
2425
"autoprefixer": "^10.4.23",
2526
"postcss": "^8.4.49",
26-
"tailwindcss": "^3.4.17",
27+
"tailwindcss": "^4.1.18",
2728
"typescript": "^5.9.3"
2829
}
2930
}

apps/site/postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
plugins: {
3-
tailwindcss: {},
3+
'@tailwindcss/postcss': {},
44
autoprefixer: {},
55
},
66
}

apps/site/tailwind.config.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

apps/site/tsconfig.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22
"compilerOptions": {
33
"target": "ES2020",
44
"useDefineForClassFields": true,
5-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
5+
"lib": [
6+
"ES2020",
7+
"DOM",
8+
"DOM.Iterable"
9+
],
610
"module": "ESNext",
711
"skipLibCheck": true,
812
"moduleResolution": "bundler",
913
"allowImportingTsExtensions": true,
1014
"resolveJsonModule": true,
1115
"isolatedModules": true,
1216
"noEmit": true,
13-
"jsx": "preserve",
17+
"jsx": "react-jsx",
1418
"strict": true,
1519
"noUnusedLocals": true,
1620
"noUnusedParameters": true,
@@ -25,14 +29,19 @@
2529
}
2630
],
2731
"paths": {
28-
"@/*": ["./*"]
32+
"@/*": [
33+
"./*"
34+
]
2935
}
3036
},
3137
"include": [
3238
"next-env.d.ts",
3339
"**/*.ts",
3440
"**/*.tsx",
35-
".next/types/**/*.ts"
41+
".next/types/**/*.ts",
42+
".next/dev/types/**/*.ts"
3643
],
37-
"exclude": ["node_modules"]
44+
"exclude": [
45+
"node_modules"
46+
]
3847
}

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
"@testing-library/react": "^16.3.1",
5353
"@testing-library/user-event": "^14.6.1",
5454
"@types/node": "^25.0.9",
55-
"@types/react": "18.3.12",
56-
"@types/react-dom": "18.3.1",
55+
"@types/react": "19.0.6",
56+
"@types/react-dom": "19.0.3",
5757
"@vitest/coverage-v8": "^4.0.17",
5858
"@vitest/ui": "^4.0.17",
5959
"autoprefixer": "^10.4.23",
@@ -64,10 +64,10 @@
6464
"happy-dom": "^20.3.3",
6565
"jsdom": "^27.4.0",
6666
"prettier": "^3.8.0",
67-
"react": "18.3.1",
68-
"react-dom": "18.3.1",
67+
"react": "19.2.3",
68+
"react-dom": "19.2.3",
6969
"react-router-dom": "^7.12.0",
70-
"tailwindcss": "^3.0.0",
70+
"tailwindcss": "^4.1.18",
7171
"tslib": "^2.6.0",
7272
"turbo": "^2.7.5",
7373
"typescript": "^5.9.3",
@@ -76,10 +76,10 @@
7676
},
7777
"pnpm": {
7878
"overrides": {
79-
"react": "18.3.1",
80-
"react-dom": "18.3.1",
81-
"@types/react": "18.3.12",
82-
"@types/react-dom": "18.3.1"
79+
"react": "19.2.3",
80+
"react-dom": "19.2.3",
81+
"@types/react": "19.0.6",
82+
"@types/react-dom": "19.0.3"
8383
}
8484
},
8585
"dependencies": {

0 commit comments

Comments
 (0)