Vuepress HTML redirect for samples folder (#8785)

* HTML redirect using vuepress plugin

* Add other needed redirects

Co-authored-by: Evert Timberg <--global>
This commit is contained in:
Evert Timberg 2021-04-02 13:33:56 -04:00 committed by GitHub
parent 69fae1a1e7
commit 678974654b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 0 deletions

View File

@ -14,6 +14,9 @@ module.exports = {
plugins: [
'tabs',
['flexsearch'],
['@vuepress/html-redirect', {
duration: 0,
}],
[
'@vuepress/google-analytics',
{

3
docs/.vuepress/redirects Normal file
View File

@ -0,0 +1,3 @@
/charts/ /charts/line
/general/ /general/data-structures
/samples/ /samples/bar/vertical

6
package-lock.json generated
View File

@ -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",

View File

@ -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",