diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index f6ad4f6..6b6fe1f 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -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" ), diff --git a/docs/.vuepress/public/favicon.ico b/docs/.vuepress/public/favicon.ico new file mode 100644 index 0000000..4872223 Binary files /dev/null and b/docs/.vuepress/public/favicon.ico differ diff --git a/docs/package.json b/docs/package.json new file mode 100644 index 0000000..d0a8a75 --- /dev/null +++ b/docs/package.json @@ -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" + } +} diff --git a/package.json b/package.json index 5e997dd..c3b899f 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "pegjs-dev", "private": true, "workspaces": [ + "docs", "packages/*", "tools/*", "test"