Skip to content

Commit f62c9bb

Browse files
committed
feat: update nextra to v3
1 parent d6b530c commit f62c9bb

File tree

26 files changed

+98
-90
lines changed

26 files changed

+98
-90
lines changed

bun.lockb

53.2 KB
Binary file not shown.

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.

next.config.js renamed to next.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
const withNextra = require('nextra')({
1+
import nextra from 'nextra'
2+
3+
const withNextra = nextra({
24
theme: 'nextra-theme-docs',
35
themeConfig: './theme.config.tsx',
46
});
57

6-
module.exports = withNextra({
8+
export default withNextra({
79
output: 'export',
810
images: {
911
unoptimized: true,

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
"format": "prettier . --write"
88
},
99
"dependencies": {
10-
"next": "^13.0.6",
11-
"nextra": "latest",
12-
"nextra-theme-docs": "latest",
13-
"react": "^18.2.0",
14-
"react-dom": "^18.2.0"
10+
"next": "^15.0.4",
11+
"nextra": "^3.2.4",
12+
"nextra-theme-docs": "^3.2.4",
13+
"react": "^19.0.0",
14+
"react-dom": "^19.0.0"
1515
},
1616
"devDependencies": {
17-
"@types/node": "18.11.10",
18-
"prettier": "^3.2.5",
19-
"typescript": "^4.9.3"
17+
"@types/node": "22.10.1",
18+
"prettier": "^3.4.2",
19+
"typescript": "^5.7.2"
2020
}
2121
}

pages/_app.js

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

pages/_app.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import type { AppProps } from 'next/app'
2+
import '../index.css';
3+
4+
export default function MyApp({ Component, pageProps }: AppProps) {
5+
return <Component {...pageProps} />
6+
}

pages/_meta.json

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

pages/_meta.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export default {
2+
index: 'Home',
3+
radio: 'AC Radio',
4+
scoreboard: 'AC Scoreboard',
5+
documents: 'AC Documents',
6+
gifts: 'AC Gifts',
7+
link_tebex: {
8+
title: 'Tebex',
9+
href: 'https://store.acscripts.dev/',
10+
type: 'page',
11+
newWindow: true
12+
},
13+
link_kofi: {
14+
title: 'Support us',
15+
href: 'https://ko-fi.com/antond',
16+
type: 'page',
17+
newWindow: true
18+
}
19+
}

pages/documents/_meta.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default {
2+
index: 'Introduction',
3+
presets: 'Creating presets',
4+
bridge: 'Bridge',
5+
'exports-and-events': 'Exports and events',
6+
config: 'Configuration',
7+
issues: 'Common issues',
8+
}

pages/documents/_meta.json

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

0 commit comments

Comments
 (0)