Skip to content

Commit

Permalink
chore: add ga analysis for umijs.org
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Oct 12, 2019
1 parent 6f27bb1 commit 8a85f61
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ tmp
/packages/umi-ui/client/node_modules
/packages/**/.leagcy-dist
/examples/*/node_modules
package-lock.json
/package-lock.json
/website/dist
/website/yarn.lock
/packages/umi-test/examples/*/node_modules
/packages/umi-plugin-locale/examples/*/node_modules
/packages/umi-plugin-react/test/*/node_modules
Expand Down
8 changes: 8 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,12 @@ module.exports = {
},
},
},
plugins: [
[
'@vuepress/google-analytics',
{
ga: 'UA-149864185-1',
},
],
],
};
3 changes: 2 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"build": "vuepress build ../docs --dest ./dist"
},
"devDependencies": {
"vuepress": "^0.14.8"
"@vuepress/plugin-google-analytics": "^1.2.0",
"vuepress": "^1.2.0"
},
"engines": {
"node": "10.x"
Expand Down

0 comments on commit 8a85f61

Please sign in to comment.