diff --git a/_posts/newspaper/2016-03-15-contribute.markdown b/_posts/newspaper/2016-03-15-contribute.markdown new file mode 100644 index 0000000..a310a13 --- /dev/null +++ b/_posts/newspaper/2016-03-15-contribute.markdown @@ -0,0 +1,39 @@ +--- +author: YiZi +comments: true +date: 2016-03-15 10:40:30 +0800 +layout: post +slug: contribute0315 +title: 关于贡献文章的说明 +categories: [行] +tags: +- 投稿 +- 教程 +--- +对于熟悉使用Github操作的读者,我们建议使用标准的Pull-Request方法提交稿件,大致流程如下(如果无法看懂,说明你应该选择其他稿件提供方法)。 + +## 使用PR贡献文章 + +Fork 我们的[源码库](https://github.com/WhyHow/whyhow.github.io),一般在页面右上角找到如下图的按钮按一下就可以开始Fork了, +![](/public/images/contribute/1.png) + +如果你没有登录Github账号,你会被要求登录;如果没有Github账号,则可以点最下方的Create an account,注册一个账号。 +![](/public/images/contribute/2.png) + +然后您就会在您账号下面找到一个我们源码库的拷贝,那个拷贝您是可以任意修改的。建议你为每篇文章建立一个新的Branch,您把您的文章内容按照现有的目录结构上传到您新建的Branch中(这个需要一个Git的客户端或者通过命令行提交,如果您觉得太复杂可以考虑其他投稿方式。)。 + +最后,您需要做的是将您的拷贝以Pull request的方式提交到我们的源码库,具体的操作是点击您的代码库的左上角的New pull request,如下图中的那个绿色按钮。 +![](/public/images/contribute/3.png) + +如果您新建了Branch会直接在您提交Commit后提示你提交Pull request.(注意到一个Branch的PR不需要重复提交,你之后的Commit会自动更新。) +![](/public/images/contribute/4.png) + +然后填写一下内容描述,提交Pull request就可以了。 + +注意: Fork源码库只需要做一次,你下一次投稿仅需要新建一个Branch,然后新开一个Pull Request就可以了。(你可能会想先同步一下我们新的源码库,这个网上教程很多,大家可以搜索学习一下Github的标准代码管理流程) + +## 通过其他投稿 +以上方式适合于对Github比较熟练的用户,也是我们比较倾向的一种方式,这样的稿件记录在系统里可以追踪到。但是,如果您确实不希望通过这一方式投稿,您可以以**任意方式**将稿件内容传递给我们。如果我们觉得您的稿件合适的话,我们会替您上传。同时,您最好将您的Github账号一并提供给我们,这样我们可以将您加入到网站的**荣誉作者**列表。 + + + diff --git a/public/images/contribute/1.png b/public/images/contribute/1.png new file mode 100644 index 0000000..12626ac Binary files /dev/null and b/public/images/contribute/1.png differ diff --git a/public/images/contribute/2.png b/public/images/contribute/2.png new file mode 100644 index 0000000..ae66e7f Binary files /dev/null and b/public/images/contribute/2.png differ diff --git a/public/images/contribute/3.png b/public/images/contribute/3.png new file mode 100644 index 0000000..188f290 Binary files /dev/null and b/public/images/contribute/3.png differ diff --git a/public/images/contribute/4.png b/public/images/contribute/4.png new file mode 100644 index 0000000..d741c84 Binary files /dev/null and b/public/images/contribute/4.png differ