phper-linux-gitbook/CONTRIBUTING.md
2019-04-26 17:24:41 +08:00

65 lines
2.1 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 贡献指南
非常感谢您关注 PHPer 必知必会的 Linux 命令项目,在提交您的贡献之前,请务必认真阅读以下准则。
- [问题反馈](#Issue)
- [开发指南](#develop)
- [常用脚本命令npm scripts](#npm-scripts)
- [项目结构](#dir-spec)
- [提交请求pull request](#pull-request)
- [文档说明](#docs-spec)
<a id="Issue"></a>
## 问题反馈
- 请避免提交重复的 Issue在提交之前搜索现有的 Issue 。
- 请确定 Issue 的类型,并在 Issue 内容描述清晰,我们将根据内容对 Issue 打上对应的 label 。
<a id="develop"></a>
## 开发设置
项目依赖 [GitBook](https://github.com/GitbookIO/gitbook) ,需要安装 [Node.js](https://nodejs.org/) 版本8+ ,下载项目到本地后安装依赖 `gitbook install`
<a id="npm-scripts"></a>
### 常用脚本命令
``` bash
# 启动本地 HTTP 服务器用来本地预览
$ gitbook serve
# 编译 markdown 文档为 html 文件
$ gitbook build
```
<a id="dir-spec"></a>
### 项目结构
```
phper-linux-gitbook
├── images # 文档图片
├── node_modules # 第三方依赖库
├── styles # 样式文件
├── README.md # 文档首页
├── .gitattributes # git 配置文件,可以设计导出时忽略文件等
├── .gitignore # git 忽略文件配置列表
├── book.json # gitbook 配置
└── ... # 内容文件
```
<a id="pull-request"></a>
### 提交请求pull request
1. fork [Nick233333/phper-linux-gitbook](https://github.com/Nick233333/phper-linux-gitbook)
1. 把个人仓库repository克隆到电脑上并安装所依赖的插件。
1. 开始编辑文件,可以通过命令 `gitbook serve` 预览编辑的效果。
1. 推送push分支。
1. 建立一个新的合并申请pull request并描述变动。
<a id="docs-spec"></a>
## 文档说明
- 文档基于 Markdown 格式编写。
- 使用中文半角标点符号。
- 名词区分大小写。
- 英文、代码、链接前后添加空格。
- 新增文档需要添加文档对应的目录配置