diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 2ca26383404..813dcd509c0 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -14,6 +14,9 @@ module.exports = { plugins: [ 'tabs', ['flexsearch'], + ['@vuepress/html-redirect', { + duration: 0, + }], [ '@vuepress/google-analytics', { diff --git a/docs/.vuepress/redirects b/docs/.vuepress/redirects new file mode 100644 index 00000000000..a92ceb629c8 --- /dev/null +++ b/docs/.vuepress/redirects @@ -0,0 +1,3 @@ +/charts/ /charts/line +/general/ /general/data-structures +/samples/ /samples/bar/vertical \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 640e3615a15..4f3f11db1ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3854,6 +3854,12 @@ "integrity": "sha512-BMFayLzT2BvXmnhM9mDHw0UPU7J0pH1X9gQA4HmZxOf7f3+atK5eJGsc1Ia/+1FTG2ESvhFLUU/CC3h5arjEJw==", "dev": true }, + "@vuepress/plugin-html-redirect": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@vuepress/plugin-html-redirect/-/plugin-html-redirect-0.1.2.tgz", + "integrity": "sha512-5UIWO6+s/pAXysauYDbLAJg1Jv9eSYjRsQqVPZaLmS666R1ExPmfYiCjsD4vqju+jjlPCngJ8yB7zcHrCTqXEQ==", + "dev": true + }, "@vuepress/plugin-last-updated": { "version": "1.8.2", "resolved": "https://registry.npmjs.org/@vuepress/plugin-last-updated/-/plugin-last-updated-1.8.2.tgz", diff --git a/package.json b/package.json index 163b56f56f6..df82e53e2ba 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "@rollup/plugin-node-resolve": "^11.2.0", "@typescript-eslint/eslint-plugin": "^4.18.0", "@typescript-eslint/parser": "^4.18.0", + "@vuepress/plugin-html-redirect": "^0.1.2", "@vuepress/plugin-google-analytics": "1.8.2", "chartjs-adapter-luxon": "^1.0.0-beta.2", "chartjs-adapter-moment": "^0.1.2",