chore: update dependencies to latest versions and migrate Nextra configuration

This commit is contained in:
Dorian Niemiec 2024-11-28 18:52:39 +01:00
parent c5cabd8aec
commit f9b8f297b4
8 changed files with 2534 additions and 4316 deletions

6759
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -52,8 +52,8 @@
"next-mdx-remote": "^5.0.0", "next-mdx-remote": "^5.0.0",
"next-sanity": "^9.4.4", "next-sanity": "^9.4.4",
"next-themes": "^0.3.0", "next-themes": "^0.3.0",
"nextra": "^2.13.4", "nextra": "^3.2.4",
"nextra-theme-docs": "^2.13.4", "nextra-theme-docs": "^3.2.4",
"nodemailer": "^6.9.14", "nodemailer": "^6.9.14",
"prismjs": "^1.29.0", "prismjs": "^1.29.0",
"react": "^18", "react": "^18",
@ -72,7 +72,7 @@
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^19.4.1", "@commitlint/cli": "^19.4.1",
"@commitlint/config-conventional": "^19.4.1", "@commitlint/config-conventional": "^19.4.1",
"@swc/cli": "^0.4.0", "@swc/cli": "^0.5.1",
"@types/node": "^20", "@types/node": "^20",
"@types/react": "^18", "@types/react": "^18",
"@types/react-dom": "^18", "@types/react-dom": "^18",

View file

@ -1,7 +0,0 @@
{
"docs" : {
"title" : "SVR.JS documentation",
"type": "page",
"display" : "hidden"
}
}

6
pages/_meta.ts Normal file
View file

@ -0,0 +1,6 @@
export default {
docs: {
title: "SVR.JS documentation",
type: "page"
}
};

View file

@ -1,28 +0,0 @@
{
"index": "Introduction",
"requirements" : "System requirements",
"---": {
"type": "separator"
},
"getting-started": "Getting Started",
"seperator": {
"type": "separator"
},
"config": "Configuration",
"configseperator": {
"type": "separator"
},
"mods": "Mods",
"modseperator": {
"type": "separator"
},
"server-side-javascript": "Server-side JavaScript",
"ssjseperator": {
"type": "separator"
},
"api": "SVR.JS API",
"apiseperator": {
"type": "separator"
},
"mod-notes": "SVR.JS mod notes"
}

28
pages/docs/_meta.ts Normal file
View file

@ -0,0 +1,28 @@
export default {
index: "Introduction",
requirements: "System requirements",
"---": {
type: "separator"
},
"getting-started": "Getting Started",
gettingstartedseparator: {
type: "separator"
},
config: "Configuration",
configseparator: {
type: "separator"
},
mods: "Mods",
modseparator: {
type: "separator"
},
"server-side-javascript": "Server-side JavaScript",
ssjsseparator: {
type: "separator"
},
api: "SVR.JS API",
apiseparator: {
type: "separator"
},
"mod-notes": "SVR.JS mod notes"
};

View file

@ -74,14 +74,8 @@ export default {
footer: { footer: {
component: null component: null
}, },
useNextSeoProps() { color: {
const { asPath } = useRouter(); hue: 136,
if (asPath !== "/") { saturation: 75
return { }
titleTemplate: "%s SVR.JS"
};
}
},
primaryHue: 136,
primarySaturation: 75
}; };

View file

@ -36,6 +36,8 @@
"lib/Hoc/withAuth.jsx", "lib/Hoc/withAuth.jsx",
"**/*.mdx", "**/*.mdx",
"pages/_app.tsx", "pages/_app.tsx",
"pages/_meta.ts",
"pages/**/_meta.ts",
"hashedpass.s", "hashedpass.s",
"app/(root)/contact" "app/(root)/contact"
], ],