Skip to content

Commit

Permalink
docs: remove about plugins option (#1569)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang authored Dec 3, 2020
1 parent 64a68e9 commit 2a4086a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 79 deletions.
15 changes: 1 addition & 14 deletions source/docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,20 +218,7 @@ Sometimes when running the command `$ hexo generate` it returns an error:
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: (unknown path)
```
It means that there are some unrecognizable words in your file, e.g. invisible zero width characters. There are two possibilities One is your new page/post, and the other one is `_config.yml`.
In `_config.yml`, don't forget add whitespace before a list in hash. There is the wiki page about [YAML](https://en.wikipedia.org/wiki/YAML).
The error one:
```
plugins:
- hexo-generator-feed
- hexo-generator-sitemap
```
The correct one:
```
plugins:
- hexo-generator-feed
- hexo-generator-sitemap
```
One possible reason is that there are some unrecognizable words in your file, e.g. invisible zero width characters.

[Warehouse]: https://github.com/hexojs/warehouse
[Swig]: http://paularmstrong.github.io/swig/
Expand Down
16 changes: 1 addition & 15 deletions source/pt-br/docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,21 +204,7 @@ Este é [um problema no BashOnWindows conhecido](https://github.com/Microsoft/Ba
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: (unknown path)
```
Isso significa que existem algumas palavras irreconhecíveis no seu arquivo. Existem duas possibilidades, uma é seu novo page/post, a outra é o `_config.yml`.
Em `_config.yml`, não esqueça de adicionar espaços em branco antes de uma lista no hash. Existe uma página wiki sobre [YAML](https://en.wikipedia.org/wiki/YAML).

Forma errada:
```
plugins:
- hexo-generator-feed
- hexo-generator-sitemap
```
Forma correta:
```
plugins:
- hexo-generator-feed
- hexo-generator-sitemap
```
One possible reason is that there are some unrecognizable words in your file, e.g. invisible zero width characters.

[Warehouse]: https://github.com/hexojs/warehouse
[Swig]: http://paularmstrong.github.io/swig/
Expand Down
17 changes: 1 addition & 16 deletions source/th/docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,22 +247,7 @@ $ hexo server -s
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: (unknown path)
```
ถ้าเป็นอย่างนี้ หมายความว่ามีคำบางคำท่ีอ่านไม่ออกในไฟล์ เหตุผลท่ีก่อให้เกิดเรื่องนี้คือสองอย่าง อย่างแรกคือ page/post ใหม่ของคุณ อย่างท่ีสองคือ `_config.yml` ในไฟล์ `_config.yml` อย่่าลืมเพิ่ม whitespace ก่อนไฟล์ท่ีเป็น hash ท่ีนี่มีเพจวิกิเกี่ยวกับ [YAML](https://en.wikipedia.org/wiki/YAML)



ตัวท่ีผิดพลาด:
```
plugins:
- hexo-generator-feed
- hexo-generator-sitemap
```
ตัวท่ีถูกต้อง:
```
plugins:
- hexo-generator-feed
- hexo-generator-sitemap
```
One possible reason is that there are some unrecognizable words in your file, e.g. invisible zero width characters.

[Warehouse]: https://github.com/hexojs/warehouse
[Swig]: http://paularmstrong.github.io/swig/
Expand Down
20 changes: 1 addition & 19 deletions source/zh-cn/docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,25 +210,7 @@ FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/do
Template render error: (unknown path)
```

这表明你的文件中存在一些不可被识别的字符,比如不可见的零宽度字符。有可能你的新文章存在这个问题,或者你在修改配置文件时导致了这个错误。

检查你的 `_config.yml` 文件中是否漏掉了列表前的空格。你可以查阅 Wikipedia 中 [YAML](https://zh.wikipedia.org/wiki/YAML) 相关页面来学习 YAML 语法。

这个是错误的:

```yaml
plugins:
- hexo-generator-feed
- hexo-generator-sitemap
```
正确的应该是这样:
```yaml
plugins:
- hexo-generator-feed
- hexo-generator-sitemap
```
一种可能的原因是你的文件中存在一些不可被识别的字符,比如不可见的零宽度字符。

[Warehouse]: https://github.com/hexojs/warehouse
[Swig]: http://paularmstrong.github.io/swig/
Expand Down
17 changes: 2 additions & 15 deletions source/zh-tw/docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,21 +162,8 @@ Sometimes when running the command `$ hexo generate` it returns an error:
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: (unknown path)
```
It means that there are some unrecognizable words in your file, e.g. invisible zero width characters. There are two possibilities One is your new page/post, and the other one is `_config.yml`.
In `_config.yml`, don't forget add whitespace before a list in hash. There is the wiki page about [YAML](https://en.wikipedia.org/wiki/YAML).
The error one:
```
plugins:
- hexo-generator-feed
- hexo-generator-sitemap
```
The correct one:
```
plugins:
- hexo-generator-feed
- hexo-generator-sitemap
```
One possible reason is that there are some unrecognizable words in your file, e.g. invisible zero width characters.

[Warehouse]: https://github.com/hexojs/warehouse
[Swig]: http://paularmstrong.github.io/swig/
[Nunjucks]: http://mozilla.github.io/nunjucks/
[Nunjucks]: http://mozilla.github.io/nunjucks/

0 comments on commit 2a4086a

Please sign in to comment.