Skip to content

Commit 6dd9faa

Browse files
committed
Upgrade
1 parent a7d99d3 commit 6dd9faa

File tree

63 files changed

+565
-803
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+565
-803
lines changed

packages/website/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.next
22
.netlify
3+
_pagefind/

packages/website/next-env.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
import "./.next/types/routes.d.ts";
34

45
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
6+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

packages/website/next.config.mjs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import nextra from 'nextra';
22

3-
const withNextra = nextra({
4-
theme: 'nextra-theme-docs',
5-
themeConfig: './src/theme.config.tsx',
6-
});
3+
const withNextra = nextra({});
74

85
export default withNextra({
96
webpack: (config) => {
@@ -14,4 +11,13 @@ export default withNextra({
1411

1512
return config;
1613
},
14+
turbopack: {
15+
resolveAlias: {
16+
fs: {
17+
browser: './src/empty.ts',
18+
},
19+
'@babel/preset-typescript/package.json': './src/empty.ts',
20+
'next-mdx-import-source-file': './src/mdx-components.tsx',
21+
},
22+
},
1723
});

packages/website/package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"description": "react-docgen website",
66
"scripts": {
77
"dev": "nx exec -- next dev",
8-
"build": "NODE_ENV=production nx exec -- next build",
9-
"start": "nx exec -- next start"
8+
"build": "NODE_ENV=production nx exec -- next build --webpack",
9+
"start": "nx exec -- next start",
10+
"postbuild": "pagefind --site .next/server/app --output-path public/_pagefind"
1011
},
1112
"author": "Daniel Tschinder (http://github.com/danez)",
1213
"license": "MIT",
@@ -15,11 +16,12 @@
1516
"@codemirror/lang-json": "6.0.2",
1617
"@codemirror/view": "6.39.8",
1718
"@headlessui/react": "2.2.9",
19+
"@tailwindcss/postcss": "4.1.18",
1820
"@types/react": "19.2.7",
1921
"@types/react-dom": "19.2.3",
2022
"@uiw/react-codemirror": "4.25.4",
2123
"clsx": "2.1.1",
22-
"next": "15.5.9",
24+
"next": "16.1.1",
2325
"next-themes": "0.4.6",
2426
"nextra": "4.6.1",
2527
"nextra-theme-docs": "4.6.1",
@@ -28,7 +30,7 @@
2830
"react": "19.2.3",
2931
"react-docgen": "workspace:8.0.2",
3032
"react-dom": "19.2.3",
31-
"tailwindcss": "3.4.19"
33+
"tailwindcss": "4.1.18"
3234
},
3335
"browserslist": [
3436
"chrome 64",
@@ -58,5 +60,8 @@
5860
]
5961
}
6062
}
63+
},
64+
"devDependencies": {
65+
"pagefind": "^1.4.0"
6166
}
6267
}

packages/website/postcss.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/** @type {import('postcss').Postcss} */
22
module.exports = {
33
plugins: {
4-
tailwindcss: {},
5-
'postcss-lightningcss': {},
4+
'@tailwindcss/postcss': {},
65
},
76
};
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,27 @@ export default {
1010
playground: {
1111
title: 'Playground',
1212
type: 'page',
13-
theme: {
14-
layout: 'raw',
15-
},
1613
},
1714
users: {
1815
title: 'Users',
1916
type: 'page',
2017
theme: {
2118
typesetting: 'article',
19+
copyPage: false,
20+
sidebar: false,
21+
toc: false,
22+
timestamp: false,
2223
},
2324
},
2425
about: {
2526
title: 'About',
2627
type: 'page',
2728
theme: {
2829
typesetting: 'article',
30+
copyPage: false,
31+
sidebar: false,
32+
toc: false,
33+
timestamp: false,
2934
},
3035
},
3136
};
File renamed without changes.

packages/website/src/pages/docs/extending/architecture.mdx renamed to packages/website/src/app/docs/extending/architecture/page.mdx

0 commit comments

Comments
 (0)