Skip to content

Commit b394100

Browse files
renovate[bot]danez
andauthored
chore(deps): update nextra monorepo to v4 (major) (#968)
* chore(deps): update nextra monorepo to v4 * Upgrade * fixes * fix lint --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Tschinder <[email protected]>
1 parent 2fe8174 commit b394100

File tree

64 files changed

+746
-996
lines changed

Some content is hidden

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

64 files changed

+746
-996
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/eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const compat = new FlatCompat({
1212
});
1313

1414
export default tseslint.config([
15-
globalIgnores(['**/.next/']),
15+
globalIgnores(['**/.next/', 'next-env.d.ts', '**/_pagefind/']),
1616
...baseConfig,
1717
...compat.config({
1818
extends: ['next/core-web-vitals'],

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: 11 additions & 6 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,20 +16,21 @@
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",
24-
"nextra": "3.3.1",
25-
"nextra-theme-docs": "3.3.1",
26+
"nextra": "4.6.1",
27+
"nextra-theme-docs": "4.6.1",
2628
"postcss": "8.5.6",
2729
"postcss-lightningcss": "1.0.2",
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: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ export default {
22
index: {
33
title: 'Home',
44
type: 'page',
5+
theme: {
6+
copyPage: false,
7+
sidebar: false,
8+
toc: false,
9+
timestamp: false,
10+
},
511
},
612
docs: {
713
title: 'Docs',
@@ -10,22 +16,27 @@ export default {
1016
playground: {
1117
title: 'Playground',
1218
type: 'page',
13-
theme: {
14-
layout: 'raw',
15-
},
1619
},
1720
users: {
1821
title: 'Users',
1922
type: 'page',
2023
theme: {
2124
typesetting: 'article',
25+
copyPage: false,
26+
sidebar: false,
27+
toc: false,
28+
timestamp: false,
2229
},
2330
},
2431
about: {
2532
title: 'About',
2633
type: 'page',
2734
theme: {
2835
typesetting: 'article',
36+
copyPage: false,
37+
sidebar: false,
38+
toc: false,
39+
timestamp: false,
2940
},
3041
},
3142
};
File renamed without changes.

0 commit comments

Comments
 (0)