Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/components/alert.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Callout } from 'nextra-theme-docs'
import { Callout } from 'nextra/components'

export const Alert = ({ children }) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion docs/components/info.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Callout } from 'nextra-theme-docs'
import { Callout } from 'nextra/components'

export const Info = ({ children }) => {
return <Callout emoji="ℹ️">{children}</Callout>
Expand Down
11 changes: 7 additions & 4 deletions docs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// next.config.js
const withNextra = require('nextra')({
import nextra from 'nextra'

const withNextra = nextra({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.js',
// optional: add `unstable_staticImage: true` to enable Nextra's auto image import
})

module.exports = withNextra()
export default withNextra({
output: 'export',
images: { unoptimized: true },
})
16 changes: 9 additions & 7 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@
"version": "1.0.0",
"description": "",
"main": "next.config.js",
"type": "module",
"scripts": {
"start": "next dev",
"build": "next build && next export"
"dev": "next dev",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README.md for docs has instructions to run the dev command, so I moved next dev to use that command instead of start.

"build": "next build",
"start": "next start"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noticed that next start doesn't work with the output: 'export' configuration. This line can probably be removed.

},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"next": "^12.3.1",
"nextra": "2.0.0-beta.29",
"nextra-theme-docs": "2.0.0-beta.29",
"react": "^17.0.1",
"react-dom": "^17.0.1"
"next": "^13.5.11",
"nextra": "^3.3.1",
"nextra-theme-docs": "^3.3.1",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}
}
5 changes: 5 additions & 0 deletions docs/pages/_meta.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
index: 'Welcome',
announcements: 'Announcements',
apis: 'API',
}
5 changes: 0 additions & 5 deletions docs/pages/_meta.json

This file was deleted.

8 changes: 8 additions & 0 deletions docs/pages/apis/_meta.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
client: 'pg.Client',
pool: 'pg.Pool',
result: 'pg.Result',
types: 'pg.Types',
cursor: 'Cursor',
utilities: 'Utilities',
}
8 changes: 0 additions & 8 deletions docs/pages/apis/_meta.json

This file was deleted.

11 changes: 11 additions & 0 deletions docs/pages/features/_meta.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default {
connecting: 'Connecting',
queries: 'Queries',
pooling: 'Pooling',
transactions: 'Transactions',
types: 'Data Types',
ssl: 'SSL',
native: 'Native',
esm: 'ESM',
callbacks: 'Callbacks',
}
11 changes: 0 additions & 11 deletions docs/pages/features/_meta.json

This file was deleted.

6 changes: 6 additions & 0 deletions docs/pages/guides/_meta.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
'project-structure': 'Suggested Code Structure',
'async-express': 'Express with Async/Await',
'pool-sizing': 'Pool Sizing',
upgrading: 'Upgrading',
}
6 changes: 0 additions & 6 deletions docs/pages/guides/_meta.json

This file was deleted.

Loading