Skip to content

Commit

Permalink
docs: Improve the translation (#312)
Browse files Browse the repository at this point in the history
* docs:Improve the translation

docs:Improve the translation

* docs:Improve the translation

docs:Improve the translation

* Update configuration.md

* Update deploy.md

* Update helpers.md
  • Loading branch information
demopark authored and QingWei-Li committed Nov 24, 2017
1 parent 9bed441 commit bc3ef52
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions docs/zh-cn/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ window.$docsify = {

## format-updated

我们可以显示文档更新日期通过 **{docsify-updated<span>}</span>** 变量. 并且格式化日期通过 `formatUpdated`.
我们可以显示文档更新日期通过 **{docsify-updated<span>}</span>** 变量. 并且格式化日期通过 `formatUpdated`
参考 https://github.com/lukeed/tinydate#patterns
```js
window.$docsify = {
Expand All @@ -345,7 +345,7 @@ window.$docsify = {

## external-link-target

Currently it defaults to _blank, would be nice if configurable:
当前默认为 _blank, 配置一下就可以:

```js
window.$docsify = {
Expand All @@ -356,10 +356,10 @@ window.$docsify = {

## noCompileLinks

- type: `Array`
- 类型: `Array`


Sometimes we do not want docsify to handle our links. See [#203](https://github.com/QingWei-Li/docsify/issues/203)
有时我们不希望 docsify 处理我们的链接。 参考 [#203](https://github.com/QingWei-Li/docsify/issues/203)


```js
Expand Down
6 changes: 3 additions & 3 deletions docs/zh-cn/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ GitHub Pages 支持从三个地方读取文件

## GitLab Pages

If you are deploying your master branch, include `.gitlab-ci.yml` with the following script:
如果你正在部署你的主分支, 在 `.gitlab-ci.yml` 中包含以下脚本:

?> The `.public` workaround is so `cp` doesn't also copy `public/` to itself in an infinite loop.
?> `.public` 的解决方法是这样的,`cp` 不会无限循环的将 `public/` 复制到自身。

``` YAML
pages:
Expand All @@ -36,7 +36,7 @@ pages:
- master
```
!> You can replace script with `- cp -r docs/. public`, if `./docs` is your Docsify subfolder.
!> 你可以用 `- cp -r docs/. public` 替换脚本, 如果 `./docs` 是你的 docsify 子文件夹。


## VPS
Expand Down
14 changes: 7 additions & 7 deletions docs/zh-cn/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ docsify 扩展了一些 Markdown 语法,可以让文档更易读。
?> *TODO* 完善示例


## Ignore to compile link
## 忽略编译链接

Some time we will put some other relative path to the link, you have to need to tell docsify you don't need to compile this link. For example
有时候我们会把其他一些相对路径放到链接上,你必须告诉 docsify 你不需要编译这个链接。 例如:

```md
[link](/demo/)
```


It will be compiled to `<a href="/#/demo/">link</a>` and will be loaded `/demo/README.md`. Maybe you want to jump to `/demo/index.html`.
它将被编译为 `<a href="/#/demo/">link</a>` 并将加载 `/demo/README.md`. 可能你想跳转到 `/demo/index.html`

Now you can do that
现在你可以做到这一点

```md
[link](/demo/ ":ignore")
```
You will get `<a href="/demo/">link</a>`html. Do not worry, you can still set title for link.
即将会得到 `<a href="/demo/">link</a>` html 代码。不要担心,你仍然可以为链接设置标题。

```md
[link](/demo/ ":ignore title")
Expand All @@ -50,15 +50,15 @@ You will get `<a href="/demo/">link</a>`html. Do not worry, you can still set ti
```


## Set target attribute for link
## 设置链接的 target 属性

```md
[link](/demo ":target=_blank")
[link](/demo2 ":target=_self")
```


## Github Task Lists
## Github 任务列表

```md

Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ window.$docsify = {
```


## Supports mermaid
## 支持 mermaid

```js
// Import mermaid
Expand Down
6 changes: 3 additions & 3 deletions docs/zh-cn/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ Medium's 风格的图片缩放插件. 基于 [medium-zoom](https://github.com/fr



## Edit on github
## 在 Github 上编辑

Add `Edit on github` button on every pages. provided by 3rd party, check [document](https://github.com/njleonzhang/docsify-edit-on-github)
在每一页上添加 `Edit on github` 按钮. 由第三方库提供, 查看 [document](https://github.com/njleonzhang/docsify-edit-on-github)


## CodeSponsor

See https://codesponsor.io
参考 https://codesponsor.io


```html
Expand Down

0 comments on commit bc3ef52

Please sign in to comment.