diff --git a/content/zh/post/opengaussblog/figures/1-1.png b/content/zh/post/opengaussblog/figures/1-1.png new file mode 100644 index 0000000000000000000000000000000000000000..1884182b66aa169a6d6aaad1847738c278bde951 Binary files /dev/null and b/content/zh/post/opengaussblog/figures/1-1.png differ diff --git a/content/zh/post/opengaussblog/figures/1.png b/content/zh/post/opengaussblog/figures/1.png new file mode 100644 index 0000000000000000000000000000000000000000..7b3742bb56449cb166768dcc1a50628466dac19d Binary files /dev/null and b/content/zh/post/opengaussblog/figures/1.png differ diff --git a/content/zh/post/opengaussblog/figures/2-2.png b/content/zh/post/opengaussblog/figures/2-2.png new file mode 100644 index 0000000000000000000000000000000000000000..acc524e64f839725d84447695303aeab9dd38c28 Binary files /dev/null and b/content/zh/post/opengaussblog/figures/2-2.png differ diff --git a/content/zh/post/opengaussblog/figures/2.png b/content/zh/post/opengaussblog/figures/2.png new file mode 100644 index 0000000000000000000000000000000000000000..4d5285ff4ebd8eccffd26b75e3b954c6cc94bd2b Binary files /dev/null and b/content/zh/post/opengaussblog/figures/2.png differ diff --git a/content/zh/post/opengaussblog/figures/20201209-095220(WeLinkPC).png b/content/zh/post/opengaussblog/figures/20201209-095220(WeLinkPC).png new file mode 100644 index 0000000000000000000000000000000000000000..d40f3e58567a16a32ddc580b6bedfce273f520c3 Binary files /dev/null and b/content/zh/post/opengaussblog/figures/20201209-095220(WeLinkPC).png differ diff --git a/content/zh/post/opengaussblog/figures/3-3.png b/content/zh/post/opengaussblog/figures/3-3.png new file mode 100644 index 0000000000000000000000000000000000000000..70a143ed0e6d1d4baa0dca4e8d7681c9b7f32daf Binary files /dev/null and b/content/zh/post/opengaussblog/figures/3-3.png differ diff --git a/content/zh/post/opengaussblog/figures/3.png b/content/zh/post/opengaussblog/figures/3.png new file mode 100644 index 0000000000000000000000000000000000000000..9e875f424e197ecfd5983e440b00cc6d69db7e81 Binary files /dev/null and b/content/zh/post/opengaussblog/figures/3.png differ diff --git a/content/zh/post/opengaussblog/figures/4-4.png b/content/zh/post/opengaussblog/figures/4-4.png new file mode 100644 index 0000000000000000000000000000000000000000..1f26108c9c2638e4952d06e3646c510f46539321 Binary files /dev/null and b/content/zh/post/opengaussblog/figures/4-4.png differ diff --git a/content/zh/post/opengaussblog/figures/4.png b/content/zh/post/opengaussblog/figures/4.png new file mode 100644 index 0000000000000000000000000000000000000000..1a03f2d4772c72cada9ec060b9c8ebf536ad24fa Binary files /dev/null and b/content/zh/post/opengaussblog/figures/4.png differ diff --git a/content/zh/post/opengaussblog/figures/5-5.png b/content/zh/post/opengaussblog/figures/5-5.png new file mode 100644 index 0000000000000000000000000000000000000000..edf02981de1bca34d8c679c54a5fc1fcc4e2f2a6 Binary files /dev/null and b/content/zh/post/opengaussblog/figures/5-5.png differ diff --git a/content/zh/post/opengaussblog/figures/5.png b/content/zh/post/opengaussblog/figures/5.png new file mode 100644 index 0000000000000000000000000000000000000000..4ce5c110fbb48d7244247555bfa9f14c45b273b5 Binary files /dev/null and b/content/zh/post/opengaussblog/figures/5.png differ diff --git a/content/zh/post/opengaussblog/figures/6.png b/content/zh/post/opengaussblog/figures/6.png new file mode 100644 index 0000000000000000000000000000000000000000..df76d92c608d78579798917ab94f062ee7b9c42f Binary files /dev/null and b/content/zh/post/opengaussblog/figures/6.png differ diff --git a/content/zh/post/opengaussblog/figures/640-0.png b/content/zh/post/opengaussblog/figures/640-0.png new file mode 100644 index 0000000000000000000000000000000000000000..a7b5a62b39af940fe00d1ad3a7e2ce631bcc4d3b Binary files /dev/null and b/content/zh/post/opengaussblog/figures/640-0.png differ diff --git a/content/zh/post/opengaussblog/figures/640.png b/content/zh/post/opengaussblog/figures/640.png new file mode 100644 index 0000000000000000000000000000000000000000..2735ce594271d4773fb268e39d4bbaf8a3db02e5 Binary files /dev/null and b/content/zh/post/opengaussblog/figures/640.png differ diff --git a/content/zh/post/opengaussblog/figures/7.png b/content/zh/post/opengaussblog/figures/7.png new file mode 100644 index 0000000000000000000000000000000000000000..11c415be07d06eb55681b19c9e3ec27cbecaf717 Binary files /dev/null and b/content/zh/post/opengaussblog/figures/7.png differ diff --git a/content/zh/post/opengaussblog/figures/image_editor_5a583e27-f051-4523-977d-e5d12bdb33c4.png b/content/zh/post/opengaussblog/figures/image_editor_5a583e27-f051-4523-977d-e5d12bdb33c4.png new file mode 100644 index 0000000000000000000000000000000000000000..6bfb9f742cf2c79a376c5b5f30004ac3db18e8ce Binary files /dev/null and b/content/zh/post/opengaussblog/figures/image_editor_5a583e27-f051-4523-977d-e5d12bdb33c4.png differ diff --git a/content/zh/post/opengaussblog/title/title.png b/content/zh/post/opengaussblog/title/title.png new file mode 100644 index 0000000000000000000000000000000000000000..10afcf9d463077d41079dfd3cbaadfafbca587d7 Binary files /dev/null and b/content/zh/post/opengaussblog/title/title.png differ diff --git "a/content/zh/post/opengaussblog/\345\246\202\344\275\225\345\220\221openGauss\347\244\276\345\214\272\346\217\220\344\272\244\344\275\240\347\232\204\347\254\254\344\270\200\347\257\207\345\215\232\345\256\242.md" "b/content/zh/post/opengaussblog/\345\246\202\344\275\225\345\220\221openGauss\347\244\276\345\214\272\346\217\220\344\272\244\344\275\240\347\232\204\347\254\254\344\270\200\347\257\207\345\215\232\345\256\242.md" new file mode 100644 index 0000000000000000000000000000000000000000..c8d15f4fbf52f648869654113d9c6cb0d0fbd80c --- /dev/null +++ "b/content/zh/post/opengaussblog/\345\246\202\344\275\225\345\220\221openGauss\347\244\276\345\214\272\346\217\220\344\272\244\344\275\240\347\232\204\347\254\254\344\270\200\347\257\207\345\215\232\345\256\242.md" @@ -0,0 +1,144 @@ ++++ +title = "如何向openGauss社区提交你的第一篇博客" +date = "2020-12-09" +tags = ["openGauss社区开发入门"] +archives = "2020-12" +author = "openGauss" +summary = "如何向openGauss社区提交你的第一篇博客" +img = "/zh/post/opengaussblog/title/title.png" +times = "15:30" + ++++ +# 如何向openGauss社区提交你的第一篇博客 + +openGauss社区的博客板块对外完全开放,以方便参与者分享个人见解和技术经验。你可以将个人博客以Pull Request的方式提交到openGauss社区blog仓库, 在Pull Request合入blog仓库之后会自动同步到社区官网:https://opengauss.org/zh/blogs/blogs.html + +以下内容将详细描述如何向openGauss社区提交你的第一篇博客: + +## 注册Gitee账号 + +openGauss社区源代码以及官方网站和博客都托管在码云Gitee上面,组织仓库地址https://gitee.com/opengauss。 + +首先请参考http://git.mydoc.io/?t=179267,完成Gitee账号的注册,然后需要前往http://gitee.com/profile/emails绑定你的主邮箱。 + +## 签署贡献者协议CLA + +在正式提交博客前,你还需要签署openGauss社区贡献者许可协议(CLA)。CLA签署网址:https://opengauss.org/zh/cla.html + +在该过程中,你需要填写一个表单,其中邮箱需要填写你之前在码云上设置的主邮箱地址。 + +![](../figures/20201209-095220(WeLinkPC).png) + +## 提交你的博客 + +**Fork主干仓库到个人仓库** + +找到https://gitee.com/opengauss/blog仓库,点击右上角的Fork。 + +![](../figures/640.png) + +在弹窗中选择你的个人仓库,并点击 “确定(Confirm)”。 + +![](../figures/1.png) + +**将个人仓库Clone到本地** + +访问你个人账号的blog仓库:https://gitee.com/\(user\)/blog,点击“克隆或下载”按钮,复制HTTPS地址。 + +![](../figures/2.png) + +在你本地机器上进入你想要存放blog的路径,输入 + +git clone https://gitee.com/\(user\)/blog.git (地址即刚才复制的HTTPS地址) + +完成后即可在本地机器看到该仓库下的所有文件。 + +**完成你的博客** + +进入到存放blog的路径下,输入以下命令创建你自己的文件夹 + +``` +cd blog/content/zh/post +mkdir (Your author name) +``` + +进入到新建的文件夹Your author name中,新建你的博客。 + +``` +cd (Your author name) +vi (title of your blog).md +``` + +其中\(title of your blog\).md文件开头请参考如下模板。 + +``` ++++ +title = "openGauss社区入门(git使用基础)" +date = "2020-05-30" +tags = ["openGauss社区开发入门"] +archives = "2020-05" +author = "xingchen" +summary = "openGauss社区开发入门" +img = "/zh/post/xingchen/title/title.jpg" +times = "17:30" ++++ +(你的博客正文内容) +``` + +参数说明 + +title:博客标题。 + +date:博客完成写作并提交的日期,如2020-06-01。 + +tags:想给博客赋予的标签,这些标签会在官网博客界面中呈现,选择一个标签还可查看该标签下的所有博客。 + +archives:同一类博客的集合,目前我们按照年月来整理博客,例如输入2020-06即可。 + +author:对应你之前创建的文件夹Your author name; + +summary:这篇博客的简要概述。 + +img:博客的缩略图片,如/zh/post/xingchen/title/title.jpg。 + +times:完成时间,如“17:30” + +官方网站效果如下: + +![](../figures/3.png) + +**提交修改** + +为了避免多个分支之间的不一致,我们建议签出到新分支: + +``` +git checkout -b new_branch_name +``` + +在添加完成博客文件后输入: + +``` +git add . +git commit –m “add my blog” +git push –f origin new_branch_name +``` + +**提交Pull Request** + +![](../figures/640-0.png) + +回到码云的\(user\)/blog仓库中,在页签中找到Pull Request,点击新建一个Pull Request。 + +![](../figures/4.png) + +在创建界面将你的提交Commit的分支和openGauss blog master分支进行比较,完成创建Pull Request。 + +以上全部流程可参照下图。 + +![](../figures/5.png) + +**完成合入** + +Pull Request创建完成后,blog仓库的Maintainer会对提交的Pull Request进行检视,检视通过后会合入到blog的主干分支,后续会同步到openGauss的官方网站。https://opengauss.org/zh/blogs/blogs.html + +以上就是在openGauss社区提交个人博客的全部过程。欢迎你加入openGauss社区中来,发表你的个人观点和见解。