Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ruanyf/document-style-guide
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Aug 27, 2017
2 parents ea40e3e + b3e03c3 commit 38a1adb
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
1. [段落](docs/paragraph.md)
1. [数值](docs/number.md)
1. [标点符号](docs/marks.md)
1. [章节结构](docs/structure.md)
1. [文档体系](docs/structure.md)
1. [参考链接](docs/reference.md)

## License

Public domain
公共领域(public domain
4 changes: 2 additions & 2 deletions docs/number.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ $1,000
带有单位或百分号时,两个数字都要加上单位或百分号,不能只加后面一个。

```
正确:132kg~234kg
错误:132~234kg
正确:132kg~234kg
正确:67%~89%
错误:67~89%
正确:67%~89%
```

## 变化程度的表示法
Expand Down
7 changes: 4 additions & 3 deletions docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
- [产品手册中文写作规范](http://wenku.baidu.com/view/23cc1a6527d3240c8447efbf.html), by 华为
- [写作规范和格式规范](http://docs.daocloud.io/write-docs/format), by DaoCloud
- [技术写作技巧在日汉翻译中的应用](http://www.hitachi-tc.co.jp/company/thesis/thesis.pdf), by 刘方
- [简体中文规范指南](https://www.lengoo.de/documents/styleguides/lengoo_styleguide_ZH.pdf)by lengoo
- [简体中文规范指南](https://www.lengoo.de/documents/styleguides/lengoo_styleguide_ZH.pdf), by lengoo
- [文档风格指南](https://open.leancloud.cn/copywriting-style-guide.html), by LeanCloud
- [豌豆荚文案风格指南](https://docs.google.com/document/d/1R8lMCPf6zCD5KEA8ekZ5knK77iw9J-vJ6vEopPemqZM/edit), by 豌豆荚
- [中文文案排版指北](https://github.com/sparanoid/chinese-copywriting-guidelines),by sparanoid
- [中文排版需求](http://w3c.github.io/clreq/),by W3C
- [中文文案排版指北](https://github.com/sparanoid/chinese-copywriting-guidelines), by sparanoid
- [中文排版需求](http://w3c.github.io/clreq/), by W3C
- [为什么文件名要小写?](http://www.ruanyifeng.com/blog/2017/02/filename-should-be-lowercase.html), by 阮一峰
38 changes: 35 additions & 3 deletions docs/structure.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# 章节结构
# 文档体系

## 结构

软件手册是一部完整的书,建议采用下面的结构。

Expand All @@ -9,7 +11,7 @@
- **安装**(Installation):[可选] [文件] 软件的安装方法
- **设置**(Configuration):[必备] [文件] 软件的设置
- **进阶篇**(Advanced):[可选] [目录] 又称”开发篇“,提供中高级的开发教程
- **API**(Reference):[可选] [目录|文件] 软件API的逐一介绍
- **API**(Reference):[可选] [目录|文件] 软件 API 的逐一介绍
- **FAQ**[可选] [文件] 常见问题解答
- **附录**(Appendix):[可选] [目录] 不属于教程本身、但对阅读教程有帮助的内容
- **Glossary**[可选] [文件] 名词解释
Expand All @@ -18,7 +20,37 @@
- **ChangeLog**[可选] [文件] 版本说明
- **Feedback**[可选] [文件] 反馈方式

**范例**
下面是两个真实范例,可参考。

- [Redux 手册](http://redux.js.org/index.html)
- [Atom 手册](http://flight-manual.atom.io/)

## 文件名

文档的文件名不得含有空格。

文件名必须使用半角字符,不得使用全角字符。这也意味着,中文不能用于文件名。

```
错误: 名词解释.md
正确: glossary.md
```

文件名建议只使用小写字母,不使用大写字母。

```
错误:TroubleShooting.md
正确:troubleshooting.md
```

为了醒目,某些说明文件的文件名,可以使用大写字母,比如`README``LICENSE`

文件名包含多个单词时,单词之间建议使用半角的连词线(`-`)分隔。

```
不佳:advanced_usage.md
正确:advanced-usage.md
```
2 changes: 1 addition & 1 deletion docs/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
正确:从管理系统可以监视两个系统:中继系统和受中继系统直接控制的分配系统。
```

名词前不要使用过多的形式词
名词前不要使用过多的形容词

```
错误:此设备的使用必须在接受过本公司举办的正式的设备培训的技师的指导下进行。
Expand Down

0 comments on commit 38a1adb

Please sign in to comment.