init
This commit is contained in:
parent
50618d23e4
commit
5e788d435d
|
|
@ -17,9 +17,9 @@ Github Aciton
|
||||||
|
|
||||||
1. 克隆项目后进入
|
1. 克隆项目后进入
|
||||||
|
|
||||||
`git clone https://github.com/Rackar/codingyang`
|
`git clone https://github.com/xugaoyi/evanblog`
|
||||||
|
|
||||||
`cd codingyang`
|
`cd evanblog`
|
||||||
|
|
||||||
2. 安装依赖并运行开发服务:
|
2. 安装依赖并运行开发服务:
|
||||||
|
|
||||||
|
|
@ -47,7 +47,7 @@ yarn built
|
||||||
|
|
||||||
5. 或者利用自动持续集成发布到 github page
|
5. 或者利用自动持续集成发布到 github page
|
||||||
|
|
||||||
这里需要:开启项目 action,开启 page,设置 secret,修改脚本中的/codingyang/为自己的项目名。然后 git push 就好,CI 脚本自动发布。
|
这里需要:开启项目 action,开启 page,设置 secret,修改脚本中的/evanblog/为自己的项目名。然后 git push 就好,CI 脚本自动发布。
|
||||||
|
|
||||||
## 小提示
|
## 小提示
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ module.exports = {
|
||||||
markdown: {
|
markdown: {
|
||||||
lineNumbers: true // 代码行号
|
lineNumbers: true // 代码行号
|
||||||
},
|
},
|
||||||
plugins: ['@vuepress/back-to-top','@vuepress/medium-zoom'], // 插件
|
plugins: ['@vuepress/back-to-top', '@vuepress/medium-zoom'], // 插件
|
||||||
themeConfig: { // 主题配置
|
themeConfig: { // 主题配置
|
||||||
logo: '/img/logo.png', // 导航栏logo
|
logo: '/img/logo.png', // 导航栏logo
|
||||||
nav: nav,
|
nav: nav,
|
||||||
|
|
@ -41,10 +41,19 @@ module.exports = {
|
||||||
// },
|
// },
|
||||||
plugins: [ // 插件
|
plugins: [ // 插件
|
||||||
'vuepress-plugin-baidu-autopush',
|
'vuepress-plugin-baidu-autopush',
|
||||||
|
'@vuepress/back-to-top', // 返回顶部
|
||||||
|
[
|
||||||
|
'@vuepress/medium-zoom',
|
||||||
|
{
|
||||||
|
options: {
|
||||||
|
background: 'rgba(0,0,0,0.8)'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
], // 缩放图片
|
||||||
[
|
[
|
||||||
'vuepress-plugin-baidu-tongji',
|
'vuepress-plugin-baidu-tongji',
|
||||||
{
|
{
|
||||||
hm: '19a1f669e77c8a8c0bf92f95cca4c782'
|
hm: '8a59017a97d9fc47d607481723b7815d'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,5 @@
|
||||||
|
|
||||||
- **Github**: <https://github.com/xugaoyi>
|
- **Github**: <https://github.com/xugaoyi>
|
||||||
- **Email**: <a href="mailto:894072666@qq.com">894072666@qq.com</a>
|
- **Email**: <a href="mailto:894072666@qq.com">894072666@qq.com</a>
|
||||||
- **QQ**: 8940726696
|
- **QQ**: <a>8940726696</a>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,6 @@ footer: Copyright © 2019-present evanblog
|
||||||
|
|
||||||
- **Github**: <https://github.com/xugaoyi>
|
- **Github**: <https://github.com/xugaoyi>
|
||||||
- **Email**: <a href="mailto:894072666@qq.com">894072666@qq.com</a>
|
- **Email**: <a href="mailto:894072666@qq.com">894072666@qq.com</a>
|
||||||
- **QQ**: 8940726696
|
- **QQ**: <a>8940726696</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1113,6 +1113,15 @@
|
||||||
"lodash.debounce": "^4.0.8"
|
"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": {
|
"@vuepress/plugin-last-updated": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npm.taobao.org/@vuepress/plugin-last-updated/download/@vuepress/plugin-last-updated-1.2.0.tgz",
|
"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"
|
"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": {
|
"@vuepress/plugin-nprogress": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npm.taobao.org/@vuepress/plugin-nprogress/download/@vuepress/plugin-nprogress-1.2.0.tgz",
|
"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=",
|
"integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=",
|
||||||
"dev": true
|
"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": {
|
"mem": {
|
||||||
"version": "4.3.0",
|
"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",
|
"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",
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@vuepress/plugin-back-to-top": "^1.2.0",
|
||||||
|
"@vuepress/plugin-medium-zoom": "^1.2.0",
|
||||||
"push-dir": "^0.4.1",
|
"push-dir": "^0.4.1",
|
||||||
"vuepress": "^1.1.0",
|
"vuepress": "^1.1.0",
|
||||||
"vuepress-plugin-baidu-autopush": "^1.0.1",
|
"vuepress-plugin-baidu-autopush": "^1.0.1",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue