From c523cf5693dda9b0327da98e7553de1f6e369412 Mon Sep 17 00:00:00 2001 From: Futago-za Ryuu Date: Sun, 29 Sep 2019 05:07:17 +0100 Subject: [PATCH] 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' --- docs/.vuepress/config.js | 10 +++++++++- docs/.vuepress/public/favicon.ico | Bin 0 -> 318 bytes docs/package.json | 9 +++++++++ package.json | 1 + 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 docs/.vuepress/public/favicon.ico create mode 100644 docs/package.json 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 0000000000000000000000000000000000000000..4872223c9996058c2fba4183f204fd1bef3991d5 GIT binary patch literal 318 zcmah@K@NZ*3@gM3bQjM=FMP(A_z8cGT_A?bq@)biQ3@n2lG-=a1ndB+NU@0Ck8ocn vT5FNK>>mr1?vOtt!kCoI6pso^>SSJZ*OU!?JSe^9=o^nd^O5BrT%YG(e2g5O literal 0 HcmV?d00001 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"