]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Vuepress HTML redirect for samples folder (#8785)
authorEvert Timberg <evert.timberg+github@gmail.com>
Fri, 2 Apr 2021 17:33:56 +0000 (13:33 -0400)
committerGitHub <noreply@github.com>
Fri, 2 Apr 2021 17:33:56 +0000 (20:33 +0300)
* HTML redirect using vuepress plugin

* Add other needed redirects

Co-authored-by: Evert Timberg <--global>
docs/.vuepress/config.js
docs/.vuepress/redirects [new file with mode: 0644]
package-lock.json
package.json

index 2ca263834046bf592337bc02b9d07dc1576f640f..813dcd509c0c5e7efc694aaac9110791afdf1b76 100644 (file)
@@ -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 (file)
index 0000000..a92ceb6
--- /dev/null
@@ -0,0 +1,3 @@
+/charts/ /charts/line
+/general/ /general/data-structures
+/samples/ /samples/bar/vertical
\ No newline at end of file
index 640e3615a15b4f41a7b1fbcbd935481621748539..4f3f11db1eab7936053e07d2a65d7b586c25d901 100644 (file)
       "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",
index 163b56f56f65452cb36baa139102cb6d4470b3d7..df82e53e2ba81766aa6de04aa451d759e6e27d26 100644 (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",