redirect old doc links to new doc links

This commit is contained in:
radiorambo
2025-12-23 19:58:14 +05:30
parent 770adf33f3
commit cf932bd66c
3 changed files with 26 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
import { defineConfig } from "vitepress";
import { routex } from "@itznotabug/routex";
// https://vitepress.dev/reference/site-config
export default defineConfig({
@@ -87,4 +88,20 @@ export default defineConfig({
provider: "local",
},
},
vite: {
plugins: [
routex({
"/Documentation/Advanced.md": "/docs/advanced/advanced",
"/Documentation/AudioFileFormats.md": "/docs/features/audio-file-formats",
"/Documentation/Docker.md": "/docs/installation/docker",
"/Documentation/FrequentlyAskedQuestions.md": "/docs/frequently-asked-questions",
"/Documentation/GettingStarted.md": "/docs/getting-started",
"/Documentation/InstallOnLinux.md": "/docs/installation/linux",
"/Documentation/InstallOnMac.md": "/docs/installation/mac",
"/Documentation/LinuxDevelopmentSetupUsingNix.md": "/docs/advanced/linux-development-setup-using-nix",
"/Documentation/NamingTemplates.md": "/docs/features/naming-templates",
"/Documentation/SearchingAndFiltering.md": "/docs/features/searching-and-filtering",
}),
],
},
});

13
package-lock.json generated
View File

@@ -8,6 +8,7 @@
"name": "libation",
"version": "1.0.0",
"devDependencies": {
"@itznotabug/routex": "^0.0.3",
"vitepress": "^1.6.4"
}
},
@@ -172,7 +173,6 @@
"integrity": "sha512-22SHEEVNjZfFWkFks3P6HilkR3rS7a6GjnCIqR22Zz4HNxdfT0FG+RE7efTcFVfLUkTTMQQybvaUcwMrHXYa7Q==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"@algolia/client-common": "5.46.0",
"@algolia/requester-browser-xhr": "5.46.0",
@@ -779,6 +779,13 @@
"dev": true,
"license": "MIT"
},
"node_modules/@itznotabug/routex": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/@itznotabug/routex/-/routex-0.0.3.tgz",
"integrity": "sha512-mIQyIt+doIVS4eBfvC8cyeMXj9F6jDrMPQZIsqs7jLwND40g2tulDS78AyqVgN8bqrVe+mrt+JzA1Hdv85DfGw==",
"dev": true,
"license": "Apache-2.0"
},
"node_modules/@jridgewell/sourcemap-codec": {
"version": "1.5.5",
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
@@ -1525,7 +1532,6 @@
"integrity": "sha512-7ML6fa2K93FIfifG3GMWhDEwT5qQzPTmoHKCTvhzGEwdbQ4n0yYUWZlLYT75WllTGJCJtNUI0C1ybN4BCegqvg==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"@algolia/abtesting": "1.12.0",
"@algolia/client-abtesting": "5.46.0",
@@ -1719,7 +1725,6 @@
"integrity": "sha512-v/Z8bvMCajtx4mEXmOo7QEsIzlIOqRXTIwgUfsFOF9gEsespdbD0AkPIka1bSXZ8Y8oZ+2IVDQZePkTfEHZl7Q==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"tabbable": "^6.3.0"
}
@@ -2338,7 +2343,6 @@
"integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"esbuild": "^0.21.3",
"postcss": "^8.4.43",
@@ -2441,7 +2445,6 @@
"integrity": "sha512-YLVdgv2K13WJ6n+kD5owehKtEXwdwXuj2TTyJMsO7pSeKw2bfRNZGjhB7YzrpbMYj5b5QsUebHpOqR3R3ziy/g==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"@vue/compiler-dom": "3.5.25",
"@vue/compiler-sfc": "3.5.25",

View File

@@ -10,6 +10,7 @@
"docs:preview": "vitepress preview"
},
"devDependencies": {
"@itznotabug/routex": "^0.0.3",
"vitepress": "^1.6.4"
}
}