Skip to content

Commit 27e0309

Browse files
committed
docs: upgrade to nextra v3
1 parent 9174783 commit 27e0309

File tree

13 files changed

+3063
-1385
lines changed

13 files changed

+3063
-1385
lines changed

docs/components/alert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Callout } from 'nextra-theme-docs'
1+
import { Callout } from 'nextra/components'
22

33
export const Alert = ({ children }) => {
44
return (

docs/components/info.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Callout } from 'nextra-theme-docs'
1+
import { Callout } from 'nextra/components'
22

33
export const Info = ({ children }) => {
44
return <Callout emoji="ℹ️">{children}</Callout>

docs/next.config.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
// next.config.js
2-
const withNextra = require('nextra')({
1+
import nextra from 'nextra'
2+
3+
const withNextra = nextra({
34
theme: 'nextra-theme-docs',
45
themeConfig: './theme.config.js',
5-
// optional: add `unstable_staticImage: true` to enable Nextra's auto image import
66
})
77

8-
module.exports = withNextra()
8+
export default withNextra({
9+
output: 'export',
10+
images: { unoptimized: true },
11+
})

docs/package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,20 @@
33
"version": "1.0.0",
44
"description": "",
55
"main": "next.config.js",
6+
"type": "module",
67
"scripts": {
7-
"start": "next dev",
8-
"build": "next build && next export"
8+
"dev": "next dev",
9+
"build": "next build",
10+
"start": "next start"
911
},
1012
"keywords": [],
1113
"author": "",
1214
"license": "ISC",
1315
"dependencies": {
14-
"next": "^12.3.1",
15-
"nextra": "2.0.0-beta.29",
16-
"nextra-theme-docs": "2.0.0-beta.29",
17-
"react": "^17.0.1",
18-
"react-dom": "^17.0.1"
16+
"next": "^13.5.11",
17+
"nextra": "^3.3.1",
18+
"nextra-theme-docs": "^3.3.1",
19+
"react": "^18.3.1",
20+
"react-dom": "^18.3.1"
1921
}
2022
}

docs/pages/_meta.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default {
2+
index: 'Welcome',
3+
announcements: 'Announcements',
4+
apis: 'API',
5+
}

docs/pages/_meta.json

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

docs/pages/apis/_meta.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default {
2+
client: 'pg.Client',
3+
pool: 'pg.Pool',
4+
result: 'pg.Result',
5+
types: 'pg.Types',
6+
cursor: 'Cursor',
7+
utilities: 'Utilities',
8+
}

docs/pages/apis/_meta.json

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

docs/pages/features/_meta.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
connecting: 'Connecting',
3+
queries: 'Queries',
4+
pooling: 'Pooling',
5+
transactions: 'Transactions',
6+
types: 'Data Types',
7+
ssl: 'SSL',
8+
native: 'Native',
9+
esm: 'ESM',
10+
callbacks: 'Callbacks',
11+
}

docs/pages/features/_meta.json

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

0 commit comments

Comments
 (0)