Update config for next.pegjs.org

- Enable 'smoothScroll' option
- Use '@vuepress/plugin-back-to-top'
- Use '@vuepress/plugin-google-analytics'
- Add 'docs/.vuepress/favicon.ico'
master
Futago-za Ryuu 5 years ago
parent 6484145542
commit c523cf5693

@ -13,7 +13,7 @@ module.exports = {
],
dest: "dist",
ga: "UA-100728112-1",
themeConfig: {
nav: require( "./config/nav.js" ),
@ -34,9 +34,17 @@ module.exports = {
docsDir: "docs",
editLinks: true,
evergreen: false,
smoothScroll: true,
},
plugins: [
[ '@vuepress/back-to-top', true ],
[ '@vuepress/google-analytics', {
ga: 'UA-100728112-1'
} ],
],
extraWatchFiles: [
require.resolve( "./config/nav.js" ),
require.resolve( "./config/sidebar.js" ),

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

@ -0,0 +1,9 @@
{
"name": "@pegjs/website",
"version": "2.0.0-wip",
"private": true,
"dependencies": {
"@vuepress/plugin-back-to-top": "1.1.0",
"@vuepress/plugin-google-analytics": "1.1.0"
}
}

@ -2,6 +2,7 @@
"name": "pegjs-dev",
"private": true,
"workspaces": [
"docs",
"packages/*",
"tools/*",
"test"

Loading…
Cancel
Save