Skip to content
This repository was archived by the owner on Aug 15, 2020. It is now read-only.

Commit 4cf9340

Browse files
committed
Adjust vuepress config
1 parent 6f82da9 commit 4cf9340

File tree

5 files changed

+36
-5
lines changed

5 files changed

+36
-5
lines changed

.vuepress/config.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,18 @@ module.exports = {
1616
['meta', { name: 'msapplication-TileImage', content: '/icons/mstile-150x150.png' }],
1717
['meta', { name: 'msapplication-TileColor', content: '#00aba9' }]
1818
],
19-
ga: 'UA-115509121-3',
20-
plugins: [
21-
['container', {
19+
plugins: {
20+
'container': {
2221
type: 'tree',
2322
before: '<pre class="tree-container"><code>',
2423
after: '</code></pre>'
25-
}],
26-
],
24+
},
25+
'@vuepress/google-analytics': {
26+
'ga': 'UA-115509121-3'
27+
},
28+
'@vuepress/back-to-top': true,
29+
'@vuepress/medium-zoom': true,
30+
},
2731
themeConfig: {
2832
logo: '/logo.png',
2933
repo: 'cqmoe/cqcppsdk',
-3.93 KB
Loading
-4.61 KB
Loading

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"devDependencies": {
3+
"@vuepress/plugin-back-to-top": "^1.2.0",
4+
"@vuepress/plugin-google-analytics": "^1.2.0",
5+
"@vuepress/plugin-medium-zoom": "^1.2.0",
36
"vuepress": "^1.2.0"
47
}
58
}

yarn.lock

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,13 +886,32 @@
886886
dependencies:
887887
lodash.debounce "^4.0.8"
888888

889+
"@vuepress/plugin-back-to-top@^1.2.0":
890+
version "1.2.0"
891+
resolved "https://registry.yarnpkg.com/@vuepress/plugin-back-to-top/-/plugin-back-to-top-1.2.0.tgz#f6bb2f57317e94a6b0b6854719f3088481f2c0dd"
892+
integrity sha512-QGFT5llXnqs/nrUmNql4jZuqo5VTKx/hsK9j1uNRdGBkyiqMs6h+brSpwTKtUqh/XwsCGn7FGPZLaYNkw7Oi8w==
893+
dependencies:
894+
lodash.debounce "^4.0.8"
895+
896+
"@vuepress/plugin-google-analytics@^1.2.0":
897+
version "1.2.0"
898+
resolved "https://registry.yarnpkg.com/@vuepress/plugin-google-analytics/-/plugin-google-analytics-1.2.0.tgz#54555fd14f01a032c5acff04ecbbe0911577d7d0"
899+
integrity sha512-0zol5D4Efb5GKel7ADO/s65MLtKSLnOEGkeWzuipkWomSQPzP7TJ3+/RcYBnGdyBFHd1BSpTUHGK0b/IGwM3UA==
900+
889901
"@vuepress/plugin-last-updated@^1.2.0":
890902
version "1.2.0"
891903
resolved "https://registry.yarnpkg.com/@vuepress/plugin-last-updated/-/plugin-last-updated-1.2.0.tgz#7b34065b793848b0482a222b7a6f1b7df3668cdc"
892904
integrity sha512-j4uZb/MXDyG+v9QCG3T/rkiaOhC/ib7NKCt1cjn3GOwvWTDmB5UZm9EBhUpbDNrBgxW+SaHOe3kMVNO8bGOTGw==
893905
dependencies:
894906
cross-spawn "^6.0.5"
895907

908+
"@vuepress/plugin-medium-zoom@^1.2.0":
909+
version "1.2.0"
910+
resolved "https://registry.yarnpkg.com/@vuepress/plugin-medium-zoom/-/plugin-medium-zoom-1.2.0.tgz#de2bb3299f8a0b721d5b281968f4e1588e3fcfd0"
911+
integrity sha512-d12oFOcJAlC1sh0AOFnaUhdCaS3GY29f+BkvqUiyV+oxaPGCqlg+8GKcaOF7/nNAOPr/Z3DneZKpppRrRp8aqw==
912+
dependencies:
913+
medium-zoom "^1.0.4"
914+
896915
"@vuepress/plugin-nprogress@^1.2.0":
897916
version "1.2.0"
898917
resolved "https://registry.yarnpkg.com/@vuepress/plugin-nprogress/-/plugin-nprogress-1.2.0.tgz#ff6166946a0b118a39a562acb57983529afce4d2"
@@ -4299,6 +4318,11 @@ [email protected]:
42994318
resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
43004319
integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=
43014320

4321+
medium-zoom@^1.0.4:
4322+
version "1.0.5"
4323+
resolved "https://registry.yarnpkg.com/medium-zoom/-/medium-zoom-1.0.5.tgz#81413dda20ccdd857141ff420cfab788dd32e20e"
4324+
integrity sha512-aLGa6WlTuFKWvH88bqTrY5ztJMN+D0hd8UX6BYc4YSoPayppzETjZUcdVcksgaoQEMg4cZSmXPg846fTp2rjRQ==
4325+
43024326
mem@^4.0.0:
43034327
version "4.3.0"
43044328
resolved "https://registry.yarnpkg.com/mem/-/mem-4.3.0.tgz#461af497bc4ae09608cdb2e60eefb69bff744178"

0 commit comments

Comments
 (0)