Skip to content
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

feat: upgrade to Next.js 15 and Nextra 3 #90

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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 next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
8 changes: 5 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const withNextra = require('nextra')({
import nextra from 'nextra'

const withNextra = nextra({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx',
themeConfig: './theme.config.tsx'
})

module.exports = withNextra()
export default withNextra()
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "nextra-docs-template",
"type": "module",
"version": "0.0.1",
"description": "Nextra docs template",
"scripts": {
Expand All @@ -18,9 +19,9 @@
},
"homepage": "https://github.com/shuding/nextra-docs-template#readme",
"dependencies": {
"next": "^13.0.6",
"nextra": "latest",
"nextra-theme-docs": "latest",
"next": "^15.0.0",
"nextra": "^3.0.0",
"nextra-theme-docs": "^3.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
5 changes: 5 additions & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import type { AppProps } from 'next/app'

export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
}
15 changes: 0 additions & 15 deletions pages/_meta.json

This file was deleted.

15 changes: 15 additions & 0 deletions pages/_meta.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export default {
index: "Introduction",
another: "Another Page",
advanced: "Advanced (A Folder)",
about: {
title: "About",
type: "page"
},
contact: {
title: "Contact ↗",
type: "page",
href: "https://twitter.com/shuding_",
newWindow: true
}
}
Loading