-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
docs: upgrade to nextra v3 #3549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 }, | ||
}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
"build": "next build", | ||
"start": "next start" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just noticed that |
||
}, | ||
"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" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default { | ||
index: 'Welcome', | ||
announcements: 'Announcements', | ||
apis: 'API', | ||
} |
This file was deleted.
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', | ||
} |
This file was deleted.
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', | ||
} |
This file was deleted.
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', | ||
} |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
README.md
fordocs
has instructions to run thedev
command, so I movednext dev
to use that command instead ofstart
.