Skip to content

Commit

Permalink
Fix internal links.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Shih authored and Jack Shih committed Jan 12, 2016
1 parent 6313dae commit b352e22
Show file tree
Hide file tree
Showing 14 changed files with 39 additions and 39 deletions.
6 changes: 3 additions & 3 deletions source/api/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Here is a list of filters used by Hexo.

### before_post_render

Executed before a post is rendered. Refer to [post rendering](posts.html#Render) to learn the execution steps.
Executed before a post is rendered. Refer to [post rendering](api/posts.html#Render) to learn the execution steps.

For example, to transform the title to lower case:

Expand All @@ -76,7 +76,7 @@ hexo.extend.filter.register('before_post_render', function(data){

### after_post_render

Executed after a post is rendered. Refer to [post rendering](posts.html#Render) to learn the execution steps.
Executed after a post is rendered. Refer to [post rendering](api/posts.html#Render) to learn the execution steps.

For example, to replace `@username` with a link to a Twitter profile:

Expand Down Expand Up @@ -162,7 +162,7 @@ hexo.extend.filter.register('post_permalink', function(data){

### after_render

Executed after rendering finishes. You can see [rendering](rendering.html#after_render_Filters) for more info.
Executed after rendering finishes. You can see [rendering](api/rendering.html#after_render_Filters) for more info.

### server_middleware

Expand Down
4 changes: 2 additions & 2 deletions source/docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Initializes a website. If no `folder` is provided, Hexo will set up the website
$ hexo new [layout] <title>
```

Creates a new article. If no `layout` is provided, Hexo will use the `default_layout` from [_config.yml](configuration.html). If the `title` contains spaces, surround it with quotation marks.
Creates a new article. If no `layout` is provided, Hexo will use the `default_layout` from [_config.yml](docs/configuration.html). If the `title` contains spaces, surround it with quotation marks.

## generate

Expand Down Expand Up @@ -81,7 +81,7 @@ Option | Description
$ hexo migrate <type>
```

[Migrates](migration.html) content from other blog systems.
[Migrates](docs/migration.html) content from other blog systems.

## clean

Expand Down
4 changes: 2 additions & 2 deletions source/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Setting | Description | Default
--- | --- | ---
`url` | The URL of your website |
`root` | The root directory of your website |
`permalink` | The [permalink](permalinks.html) format of articles | `:year/:month/:day/:title/`
`permalink` | The [permalink](docs/permalinks.html) format of articles | `:year/:month/:day/:title/`
`permalink_default` | Default values of each segment in permalink |

{% note info Website in subdirectory %}
Expand Down Expand Up @@ -49,7 +49,7 @@ Setting | Description | Default
`external_link` | Open external links in new tab? | `true`
`filename_case` | Transform filenames to `1` lower case; `2` upper case | `0`
`render_drafts` | Display drafts? | `false`
`post_asset_folder` | Enable the [Asset Folder](asset-folders.html)? | `false`
`post_asset_folder` | Enable the [Asset Folder](docs/asset-folders.html)? | `false`
`relative_link` | Make links relative to the root folder? | `false`
`future` | Display future posts? | `true`
`highlight` | Code block settings |
Expand Down
14 changes: 7 additions & 7 deletions source/docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ Please follow the coding style:
{% code %}
$ git checkout -b new_feature
{% endcode %}

4. Start hacking.
5. Push the branch:

{% code %}
$ git push origin new_feature
{% endcode %}

6. Create a pull request and describe the change.

### Notice
Expand All @@ -50,7 +50,7 @@ Please follow the coding style:

## Updating Documentation

The Hexo documentation is open source and you can find the source code on [hexojs/site].
The Hexo documentation is open source and you can find the source code on [hexojs/site].

### Workflow

Expand All @@ -62,13 +62,13 @@ The Hexo documentation is open source and you can find the source code on [hexoj
$ cd site
$ npm install
{% endcode %}

3. Start editing the documentation. You can start the server for live previewing.

{% code %}
$ hexo server
{% endcode %}

4. Push the branch.
5. Create a pull request and describe the change.

Expand All @@ -81,11 +81,11 @@ The Hexo documentation is open source and you can find the source code on [hexoj

## Reporting Issues

When you encounter some problems when using Hexo, you can find the solutions in [Troubleshooting](troubleshooting.html) or ask me on [GitHub](https://github.com/hexojs/hexo/issues) or [Google Group](https://groups.google.com/group/hexo). If you can't find the answer, please report it on GitHub.
When you encounter some problems when using Hexo, you can find the solutions in [Troubleshooting](docs/troubleshooting.html) or ask me on [GitHub](https://github.com/hexojs/hexo/issues) or [Google Group](https://groups.google.com/group/hexo). If you can't find the answer, please report it on GitHub.

1. Represent the problem in [debug mode](commands.html#Debug_mode).
2. Run `hexo version` and check the version info.
3. Post both debug message and version info on GitHub.

[hexojs/hexo]: https://github.com/hexojs/hexo
[hexojs/site]: https://github.com/hexojs/site
[hexojs/site]: https://github.com/hexojs/site
2 changes: 1 addition & 1 deletion source/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title: Documentation
---
Welcome to the Hexo documentation. If you encounter any problems when using Hexo, have a look at the [troubleshooting guide](troubleshooting.html), raise an issue on [GitHub](https://github.com/hexojs/hexo/issues) or start a topic on the [Google Group](https://groups.google.com/group/hexo).
Welcome to the Hexo documentation. If you encounter any problems when using Hexo, have a look at the [troubleshooting guide](docs/troubleshooting.html), raise an issue on [GitHub](https://github.com/hexojs/hexo/issues) or start a topic on the [Google Group](https://groups.google.com/group/hexo).

## What is Hexo?

Expand Down
2 changes: 1 addition & 1 deletion source/docs/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ You can make use of the official tools provided by Hexo to accelerate developmen

### Publishing

When your plugin is ready, you may consider publishing it to the [plugin list](/plugins) to invite other people to start using it. Publishing your own plugins is very similar to [updating documentation](contributing.html#Updating_Documentation).
When your plugin is ready, you may consider publishing it to the [plugin list](/plugins) to invite other people to start using it. Publishing your own plugins is very similar to [updating documentation](docs/contributing.html#Updating_Documentation).

1. Fork [hexojs/site]
2. Clone the repository to your computer and install dependencies.
Expand Down
4 changes: 2 additions & 2 deletions source/docs/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Theme configuration file. Modifying this doesn't require a server restart.

### languages

Language folder. See [internationalization (i18n)](internationalization.html) for more info.
Language folder. See [internationalization (i18n)](docs/internationalization.html) for more info.

### layout

Expand All @@ -32,7 +32,7 @@ See [templates](templates.html) for more info.

### scripts

Script folder. Hexo will automatically load all JavaScript files in this folder during initialization. For more info, see [plugins](plugins.html).
Script folder. Hexo will automatically load all JavaScript files in this folder during initialization. For more info, see [plugins](docs/plugins.html).

### source

Expand Down
10 changes: 5 additions & 5 deletions source/zh-tw/api/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ hexo.extend.filter.register('test', function(data, arg1, arg2){
// data === 'some data'
// arg1 === 'foo'
// arg2 === 'bar'

return 'something';
});

Expand Down Expand Up @@ -63,7 +63,7 @@ hexo.extend.filter.unregister(type, filter);

### before_post_render

在文章開始渲染前執行。您可參考 [文章渲染](posts.html#渲染) 以瞭解執行順序。
在文章開始渲染前執行。您可參考 [文章渲染](api/posts.html#渲染) 以瞭解執行順序。

舉例來說,把標題轉為小寫:

Expand All @@ -76,7 +76,7 @@ hexo.extend.filter.register('before_post_render', function(data){

### after_post_render

在文章渲染完成後執行。您可參考 [文章渲染](posts.html#渲染) 以瞭解執行順序。
在文章渲染完成後執行。您可參考 [文章渲染](api/posts.html#渲染) 以瞭解執行順序。

舉例來說,把 `@username` 取代為 Twitter 的使用者連結。

Expand Down Expand Up @@ -162,7 +162,7 @@ hexo.extend.filter.register('post_permalink', function(data){

### after_render

在渲染後執行,您可參考 [渲染](rendering.html#after_render_過濾器) 以瞭解更多資訊。
在渲染後執行,您可參考 [渲染](api/rendering.html#after_render_過濾器) 以瞭解更多資訊。

### server_middleware

Expand All @@ -179,4 +179,4 @@ hexo.extend.filter.register('server_middleware', function(app){
});
```

[Connect]: https://github.com/senchalabs/connect
[Connect]: https://github.com/senchalabs/connect
4 changes: 2 additions & 2 deletions source/zh-tw/docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $ hexo init [folder]
$ hexo new [layout] <title>
```

建立一篇新的文章。如果沒有設定 `layout` 的話,則會使用 [_config.yml](configuration.html) 中的 `default_layout` 設定代替。如果標題包含空格的話,請使用引號括起來。
建立一篇新的文章。如果沒有設定 `layout` 的話,則會使用 [_config.yml](docs/configuration.html) 中的 `default_layout` 設定代替。如果標題包含空格的話,請使用引號括起來。

## generate

Expand Down Expand Up @@ -81,7 +81,7 @@ $ hexo render <file> ...
$ hexo migrate <type>
```

從其他系統 [轉移內容](migration.html)
從其他系統 [轉移內容](docs/migration.html)

## clean

Expand Down
8 changes: 4 additions & 4 deletions source/zh-tw/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ title: 配置
--- | --- | ---
`url` | 網站的網址 |
`root` | 網站的根目錄 |
`permalink` | 文章 [永久連結](permalinks.html) 的格式 | :year/:month/:day/:title/
`permalink` | 文章 [永久連結](docs/permalinks.html) 的格式 | :year/:month/:day/:title/
`permalink_default` | 永久連結中各區段的預設值 |

{% note info 網站存放在子目錄 %}
如果您的網站存放在子目錄中,例如 `http://yoursite.com/blog`,則請將您的 `url` 設為 `http://yoursite.com/blog` 並把 `root` 設為 `/blog/`
{% endnote %}

### 目錄
### 目錄

設定 | 描述 | 預設值
--- | --- | ---
Expand All @@ -50,7 +50,7 @@ title: 配置
`external_link` | 在新頁籤中開啟連結 | true
`filename_case` | 把檔案名稱轉換為 (1) 小寫或 (2) 大寫 | 0
`render_drafts` | 顯示草稿 | false
`post_asset_folder` | 啟動 [Asset 資料夾](asset-folders.html) | false
`post_asset_folder` | 啟動 [Asset 資料夾](docs/asset-folders.html) | false
`relative_link` | 把連結改為與根目錄的相對位址 | false
`future` | 顯示未來的文章 | true
`highlight` | 程式碼區塊的設定 |
Expand Down Expand Up @@ -84,4 +84,4 @@ Hexo 使用 [Moment.js](http://momentjs.com/) 來解析和顯示時間。
設定 | 描述
--- | ---
`theme` | 目前主題
`deploy` | 佈署設定
`deploy` | 佈署設定
6 changes: 3 additions & 3 deletions source/zh-tw/docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ Hexo 文件開放原始碼,您可以在 [hexojs/site] 找到原始碼。

## 回報問題

當您在使用 Hexo 時遭遇問題,您可試著在 [解決問題](troubleshooting.html) 中尋找解答,或是在 [GitHub](https://github.com/hexojs/hexo/issues)[Google Group](https://groups.google.com/group/hexo) 詢問。詢問時請務必附上以下資訊:
當您在使用 Hexo 時遭遇問題,您可試著在 [解決問題](docs/troubleshooting.html) 中尋找解答,或是在 [GitHub](https://github.com/hexojs/hexo/issues)[Google Group](https://groups.google.com/group/hexo) 詢問。詢問時請務必附上以下資訊:

1.[除錯模式](commands.html#除錯模式) 再執行一次。
1.[除錯模式](docs/commands.html#除錯模式) 再執行一次。
2. 執行 `hexo vesion` 並檢查版本資訊。
3. 把除錯資訊和版本資訊都貼到 GitHub。

[hexojs/hexo]: https://github.com/hexojs/hexo
[hexojs/site]: https://github.com/hexojs/site
[hexojs/site]: https://github.com/hexojs/site
4 changes: 2 additions & 2 deletions source/zh-tw/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title: 文件
---
歡迎使用 Hexo,此文件將幫助您快速開始使用。如果您在使用途中遇到任何問題,您可以在 [解決問題](troubleshooting.html) 中找到解答,或者也可以在 [GitHub](https://github.com/hexojs/hexo/issues)[Google Group](https://groups.google.com/group/hexo) 上詢問。
歡迎使用 Hexo,此文件將幫助您快速開始使用。如果您在使用途中遇到任何問題,您可以在 [解決問題](docs/troubleshooting.html) 中找到解答,或者也可以在 [GitHub](https://github.com/hexojs/hexo/issues)[Google Group](https://groups.google.com/group/hexo) 上詢問。

## 什麼是 Hexo?

Expand Down Expand Up @@ -66,4 +66,4 @@ $ nvm install 4

``` bash
$ npm install -g hexo-cli
```
```
2 changes: 1 addition & 1 deletion source/zh-tw/docs/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Hexo 有強大的外掛系統,使您能輕鬆擴展功能而不用修改核心

### 發佈

當您完成外掛後,可以考慮將它發佈到 [外掛列表](/plugins),讓更多人能夠使用您的外掛。發佈外掛的步驟和 [更新文件](contributing.html#更新文件) 非常類似。
當您完成外掛後,可以考慮將它發佈到 [外掛列表](/plugins),讓更多人能夠使用您的外掛。發佈外掛的步驟和 [更新文件](docs/contributing.html#更新文件) 非常類似。

1. Fork [hexojs/site]
2. 把檔案庫(repository)複製到電腦上,並安裝相依套件。
Expand Down
8 changes: 4 additions & 4 deletions source/zh-tw/docs/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ title: 主題

### languages

語言資料夾。請參見 [本地化 (i18n)](localization.html)
語言資料夾。請參見 [本地化 (i18n)](docs/localization.html)

### layout

Expand All @@ -28,11 +28,11 @@ EJS: layout.ejs
Swig: layout.swig
```

您可參考 [模板](templates.html) 以獲得更多資訊。
您可參考 [模板](docs/templates.html) 以獲得更多資訊。

### scripts

腳本資料夾。在啟動時,Hexo 會載入此資料夾內的 JavaScript 檔案,請參見 [外掛](plugins.html) 以獲得更多資訊。
腳本資料夾。在啟動時,Hexo 會載入此資料夾內的 JavaScript 檔案,請參見 [外掛](docs/plugins.html) 以獲得更多資訊。

### source

Expand Down Expand Up @@ -76,4 +76,4 @@ Swig: layout.swig
[Swig]: http://paularmstrong.github.com/swig/
[Haml]: https://github.com/hexojs/hexo-renderer-haml
[Jade]: https://github.com/hexojs/hexo-renderer-jade
[hexojs/site]: https://github.com/hexojs/site
[hexojs/site]: https://github.com/hexojs/site

0 comments on commit b352e22

Please sign in to comment.