提交 7291a9cd 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

docs: Add contribute doc & delete extra images

上级 59f6229d
......@@ -121,4 +121,4 @@ $ git pull
## :handshake: 开源协议
[MIT](https://github.com/liuyib/hexo-theme-stun/blob/master/LICENSE) Copyright (c) 2019 liuyib
[MIT](https://github.com/liuyib/hexo-theme-stun/blob/master/LICENSE) Copyright (c) 2020 liuyib
......@@ -15,13 +15,13 @@ module.exports = {
},
},
head: [
['link', { rel: 'icon', href: `/stun-logo.ico` }],
['link', { rel: 'icon', href: `/icons/favicon-32x32.png` }],
['link', { rel: 'manifest', href: '/manifest.json' }],
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }],
['link', { rel: 'apple-touch-icon', href: `/icons/apple-touch-icon-152x152.png` }],
['meta', { name: 'msapplication-TileImage', content: '/icons/msapplication-icon-144x144.png' }],
['meta', { name: 'msapplication-TileColor', content: '#000000' }]
['link', { rel: 'apple-touch-icon', href: `/icons/favicon-180x180.png` }],
['meta', { name: 'msapplication-TileImage', content: '/icons/favicon-144x144.png' }],
['meta', { name: 'msapplication-TileColor', content: '#000000' }],
],
serviceWorker: true,
themeConfig: {
......@@ -44,7 +44,7 @@ module.exports = {
}
},
sidebar: {
'/': getEnSidebar('guide'),
'/': getEnSidebar('Guide'),
},
nav: [
{
......@@ -81,6 +81,10 @@ module.exports = {
},
],
},
{
text: 'Contribute',
link: '/contribute/',
},
],
},
'/zh-CN/': {
......@@ -95,11 +99,11 @@ module.exports = {
}
},
sidebar: {
'/zh-CN/': getZhSidebar('指南'),
'/zh-CN/': getZhSidebar('配置指南'),
},
nav: [
{
text: '指南',
text: '配置指南',
items: [
{
text: '快速开始',
......@@ -132,6 +136,10 @@ module.exports = {
},
],
},
{
text: '贡献代码',
link: '/zh-CN/contribute/',
},
],
},
},
......@@ -150,6 +158,7 @@ function getEnSidebar(title) {
'/advanced/third-part',
'/advanced/assist',
'/advanced/optimize',
'/contribute/',
],
},
];
......@@ -167,6 +176,7 @@ function getZhSidebar(title) {
'/zh-CN/advanced/third-part',
'/zh-CN/advanced/assist',
'/zh-CN/advanced/optimize',
'/zh-CN/contribute/',
],
},
];
......
......@@ -3,14 +3,9 @@
"short_name": "hexo-theme-stun",
"icons": [
{
"src": "/hexo-theme-stun/icons/android-chrome-192x192.png",
"src": "/hexo-theme-stun/icons/favicon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/hexo-theme-stun/icons/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": "/hexo-theme-stun/",
......
---
home: true
heroImage: /logo.png
heroImage: /icons/favicon-192x192.png
actionText: Quick Started →
actionLink: /guide/quick-start
# features:
......
## Contribute
Please follow the workflow below to contribute:
- Fork the repository to your Github and clone it.
- Switch to `dev` branch to develop (direct development on the `master` branch is prohibited).
- Submit changes locally.
- Push the commit to the repository of fork.
- Create a Pull request to the dev branch of the Stun theme repository.
## 贡献代码
请按照以下工作流参与贡献:
- 将仓库 fork 到你的 Github,并 clone 到本地
- 切换到 dev 分支上开发(禁止直接在 master 分支上开发)
- 在本地提交修改
- 将提交 push 到 fork 的仓库下
- 创建一个 Pull request 到 Stun 主题仓库的 dev 分支
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册