Add Zooming plugin (#296)

This commit is contained in:
Soitora 2020-08-15 11:36:22 +02:00 committed by GitHub
parent 0aae98202e
commit 8e3ae1171f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 3 deletions

15
package-lock.json generated
View File

@ -14174,6 +14174,15 @@
"smoothscroll-polyfill": "^0.4.3" "smoothscroll-polyfill": "^0.4.3"
} }
}, },
"vuepress-plugin-zooming": {
"version": "1.1.7",
"resolved": "https://registry.npmjs.org/vuepress-plugin-zooming/-/vuepress-plugin-zooming-1.1.7.tgz",
"integrity": "sha512-4n65OpjEJh9epJYygaHpni+YDLDZlEmHPVzTEkXz4JilBarWG4xF8g8vv4k/RnSf9W3TvrI/61KCQf2JNKI1HA==",
"dev": true,
"requires": {
"zooming": "^2.1.1"
}
},
"vuex": { "vuex": {
"version": "3.5.1", "version": "3.5.1",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.5.1.tgz", "resolved": "https://registry.npmjs.org/vuex/-/vuex-3.5.1.tgz",
@ -15065,6 +15074,12 @@
"resolved": "https://registry.npmjs.org/zepto/-/zepto-1.2.0.tgz", "resolved": "https://registry.npmjs.org/zepto/-/zepto-1.2.0.tgz",
"integrity": "sha1-4Se9nmb9hGvl6rSME5SIL3wOT5g=", "integrity": "sha1-4Se9nmb9hGvl6rSME5SIL3wOT5g=",
"dev": true "dev": true
},
"zooming": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/zooming/-/zooming-2.1.1.tgz",
"integrity": "sha512-Z38dkZRQsFNBE67+xDBQLNKMs5J1Gc+s3/zO6iezTrC24VYLJV7YPBdBDJmiLhff5qa6Awxv4wsjqx3oYz2MYA==",
"dev": true
} }
} }
} }

View File

@ -29,7 +29,8 @@
"sass-loader": "^9.0.3", "sass-loader": "^9.0.3",
"vuepress": "^1.5.3", "vuepress": "^1.5.3",
"vuepress-plugin-clean-urls": "^1.1.1", "vuepress-plugin-clean-urls": "^1.1.1",
"vuepress-plugin-container": "^2.1.4" "vuepress-plugin-container": "^2.1.4",
"vuepress-plugin-zooming": "^1.1.7"
}, },
"dependencies": { "dependencies": {
"axios": "^0.19.2", "axios": "^0.19.2",

View File

@ -1,5 +1,15 @@
module.exports = [ module.exports = [
["@vuepress/back-to-top"], ["@vuepress/back-to-top"],
[
"vuepress-plugin-zooming",
{
delay: 1000,
options: {
bgColor: "black",
bgOpacity: "0.8",
},
},
],
[ [
"clean-urls", "clean-urls",
{ {
@ -23,8 +33,7 @@ module.exports = [
"vuepress-plugin-container", "vuepress-plugin-container",
{ {
type: "expander", type: "expander",
before: (info) => before: (info) => `<details class="expander"><summary class="expansion">${info}</summary>`,
`<details class="expander"><summary class="expansion">${info}</summary>`,
after: "</details>", after: "</details>",
}, },
], ],