Skip to content

Commit

Permalink
Vuepress HTML redirect for samples folder (#8785)
Browse files Browse the repository at this point in the history
* HTML redirect using vuepress plugin

* Add other needed redirects

Co-authored-by: Evert Timberg <--global>
  • Loading branch information
etimberg committed Apr 2, 2021
1 parent 69fae1a commit 6789746
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/.vuepress/config.js
Expand Up @@ -14,6 +14,9 @@ module.exports = {
plugins: [
'tabs',
['flexsearch'],
['@vuepress/html-redirect', {
duration: 0,
}],
[
'@vuepress/google-analytics',
{
Expand Down
3 changes: 3 additions & 0 deletions docs/.vuepress/redirects
@@ -0,0 +1,3 @@
/charts/ /charts/line
/general/ /general/data-structures
/samples/ /samples/bar/vertical
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -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",
Expand Down

0 comments on commit 6789746

Please sign in to comment.