Skip to content

Commit bf12ad5

Browse files
committed
refactor: update nextra to the newest version
1 parent 8b93c00 commit bf12ad5

15 files changed

Lines changed: 1675 additions & 1192 deletions

File tree

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
enable-pre-post-scripts=true
1+
enable-pre-post-scripts=true
2+
auto-install-peers=true

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 = {
8+
export default {
79
...withNextra(),
810
rewrites: null,
911
output: "export",

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@
1919
},
2020
"homepage": "https://github.com/shuding/nextra-docs-template#readme",
2121
"dependencies": {
22-
"@next/third-parties": "^14.2.5",
23-
"next": "^13.0.6",
22+
"@next/third-parties": "^14.2.16",
23+
"next": "^13.5.7",
2424
"next-sitemap": "^4.2.3",
25-
"nextra": "latest",
26-
"nextra-theme-docs": "latest",
27-
"react": "^18.2.0",
28-
"react-dom": "^18.2.0"
25+
"nextra": "^3.1.2",
26+
"nextra-theme-docs": "^3.1.2",
27+
"react": "^18.3.1",
28+
"react-dom": "^18.3.1"
2929
},
3030
"devDependencies": {
3131
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
3232
"@types/node": "18.11.10",
33-
"autoprefixer": "^10.4.19",
34-
"postcss": "^8.4.40",
33+
"autoprefixer": "^10.4.20",
34+
"postcss": "^8.4.47",
3535
"prettier": "^3.3.3",
36-
"prettier-plugin-tailwindcss": "^0.6.5",
37-
"tailwindcss": "^3.4.7",
38-
"typescript": "^4.9.3"
36+
"prettier-plugin-tailwindcss": "^0.6.8",
37+
"tailwindcss": "^3.4.14",
38+
"typescript": "^4.9.5"
3939
}
4040
}
File renamed without changes.

pages/_meta.json

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

pages/_meta.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default {
2+
index: "Introduction",
3+
"vzn-notify": "VZN Notify",
4+
"vzn-cleanerjob": "VZN Cleanerjob",
5+
};

pages/vzn-cleanerjob.mdx

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

33
# VZN-CLEANERJOB
44

pages/vzn-cleanerjob/_meta.json

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

pages/vzn-cleanerjob/_meta.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default {
2+
config: "Configuration",
3+
framework: "Framework",
4+
};

pages/vzn-notify.mdx

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

33
# VZN-NOTIFY
44

0 commit comments

Comments
 (0)