From 5e788d435d0afab93bb45597068b25c6afe651dc Mon Sep 17 00:00:00 2001 From: xugaoyi <894072666@qq.com> Date: Wed, 4 Dec 2019 13:17:50 +0800 Subject: [PATCH] init --- README.MD | 6 +++--- docs/.vuepress/config.js | 13 +++++++++++-- docs/about/readme.md | 3 ++- docs/readme.md | 2 +- package-lock.json | 24 ++++++++++++++++++++++++ package.json | 2 ++ 6 files changed, 43 insertions(+), 7 deletions(-) diff --git a/README.MD b/README.MD index b3fbeac..2351170 100644 --- a/README.MD +++ b/README.MD @@ -17,9 +17,9 @@ Github Aciton 1. 克隆项目后进入 -`git clone https://github.com/Rackar/codingyang` +`git clone https://github.com/xugaoyi/evanblog` -`cd codingyang` +`cd evanblog` 2. 安装依赖并运行开发服务: @@ -47,7 +47,7 @@ yarn built 5. 或者利用自动持续集成发布到 github page -这里需要:开启项目 action,开启 page,设置 secret,修改脚本中的/codingyang/为自己的项目名。然后 git push 就好,CI 脚本自动发布。 +这里需要:开启项目 action,开启 page,设置 secret,修改脚本中的/evanblog/为自己的项目名。然后 git push 就好,CI 脚本自动发布。 ## 小提示 diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 6698131..af2f20f 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -11,7 +11,7 @@ module.exports = { markdown: { lineNumbers: true // 代码行号 }, - plugins: ['@vuepress/back-to-top','@vuepress/medium-zoom'], // 插件 + plugins: ['@vuepress/back-to-top', '@vuepress/medium-zoom'], // 插件 themeConfig: { // 主题配置 logo: '/img/logo.png', // 导航栏logo nav: nav, @@ -41,10 +41,19 @@ module.exports = { // }, plugins: [ // 插件 'vuepress-plugin-baidu-autopush', + '@vuepress/back-to-top', // 返回顶部 + [ + '@vuepress/medium-zoom', + { + options: { + background: 'rgba(0,0,0,0.8)' + } + } + ], // 缩放图片 [ 'vuepress-plugin-baidu-tongji', { - hm: '19a1f669e77c8a8c0bf92f95cca4c782' + hm: '8a59017a97d9fc47d607481723b7815d' } ] ], diff --git a/docs/about/readme.md b/docs/about/readme.md index 4e64ee8..1b91dcf 100644 --- a/docs/about/readme.md +++ b/docs/about/readme.md @@ -8,4 +8,5 @@ - **Github**: - **Email**: 894072666@qq.com -- **QQ**: 8940726696 \ No newline at end of file +- **QQ**: 8940726696 + diff --git a/docs/readme.md b/docs/readme.md index 1a2f7e0..fc75ead 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -26,6 +26,6 @@ footer: Copyright © 2019-present evanblog - **Github**: - **Email**: 894072666@qq.com -- **QQ**: 8940726696 +- **QQ**: 8940726696 diff --git a/package-lock.json b/package-lock.json index ac2e361..32b3181 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1113,6 +1113,15 @@ "lodash.debounce": "^4.0.8" } }, + "@vuepress/plugin-back-to-top": { + "version": "1.2.0", + "resolved": "https://registry.npm.taobao.org/@vuepress/plugin-back-to-top/download/@vuepress/plugin-back-to-top-1.2.0.tgz", + "integrity": "sha1-9rsvVzF+lKawtoVHGfMIhIHywN0=", + "dev": true, + "requires": { + "lodash.debounce": "^4.0.8" + } + }, "@vuepress/plugin-last-updated": { "version": "1.2.0", "resolved": "https://registry.npm.taobao.org/@vuepress/plugin-last-updated/download/@vuepress/plugin-last-updated-1.2.0.tgz", @@ -1122,6 +1131,15 @@ "cross-spawn": "^6.0.5" } }, + "@vuepress/plugin-medium-zoom": { + "version": "1.2.0", + "resolved": "https://registry.npm.taobao.org/@vuepress/plugin-medium-zoom/download/@vuepress/plugin-medium-zoom-1.2.0.tgz", + "integrity": "sha1-3iuzKZ+KC3IdWygZaPThWI4/z9A=", + "dev": true, + "requires": { + "medium-zoom": "^1.0.4" + } + }, "@vuepress/plugin-nprogress": { "version": "1.2.0", "resolved": "https://registry.npm.taobao.org/@vuepress/plugin-nprogress/download/@vuepress/plugin-nprogress-1.2.0.tgz", @@ -5915,6 +5933,12 @@ "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", "dev": true }, + "medium-zoom": { + "version": "1.0.4", + "resolved": "https://registry.npm.taobao.org/medium-zoom/download/medium-zoom-1.0.4.tgz", + "integrity": "sha1-sQYwk/gRUaGZiUiVie3yjmCQYww=", + "dev": true + }, "mem": { "version": "4.3.0", "resolved": "https://registry.npm.taobao.org/mem/download/mem-4.3.0.tgz?cache=0&sync_timestamp=1575034204913&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmem%2Fdownload%2Fmem-4.3.0.tgz", diff --git a/package.json b/package.json index 12cdbd4..0a7126c 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,8 @@ }, "license": "MIT", "devDependencies": { + "@vuepress/plugin-back-to-top": "^1.2.0", + "@vuepress/plugin-medium-zoom": "^1.2.0", "push-dir": "^0.4.1", "vuepress": "^1.1.0", "vuepress-plugin-baidu-autopush": "^1.0.1",