Skip to content

Commit

Permalink
Update docs (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
howiezhao authored and stevenjoezhang committed Jul 19, 2019
1 parent 183e5b1 commit d0e5216
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/LEANCLOUD-COUNTER-SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<h1 align="center">Fix Leancloud Counter Plugin Security Vulnerability</h1>

Before you make the config, please upgrade your NexT version to v6.0.6 or greater.

Please note the difference between **site config file** and **theme config file**
Expand Down
7 changes: 6 additions & 1 deletion docs/UPDATE-FROM-5.1.X.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ There are no hard breaking changes between 5.1.x and 6.0.x versions. It's change
So, i suggest to update from version 5 to version 6 in this way:

1. You don't touch old `next` dir and just do some copies of NexT files:\
1.1. `config.yml` or `next.yml` (if you used [data-files](DATA-FILES.md)).\
1.1. `_config.yml` or `next.yml` (if you used [data-files](DATA-FILES.md)).\
1.2. Custom CSS styles what placed in `next/source/css/_custom/*` and `next/source/css/_variables/*` directories.\
1.3. Custom layout styles what placed in `next/layout/_custom/*`.\
1.4. Any another possible custom additions which can be finded by compare tools between repos.
2. Clone new v6.x repo to any another directory instead of `next`. For example, in `next-reloaded` directory: `git clone https://github.com/theme-next/hexo-theme-next themes/next-reloaded`. So, you don't touch your old NexT 5.1.x directory and can work with new `next-reloaded` dir.
3. Go to Hexo main config and set theme parameter: `theme: next-reloaded`. So, your `next-reloaded` directory must loading with your generation. If you may see any bugs or you simply not like this version, you anytime can switch for 5.1.x version back.
4. Update language configuration (For Chinese)

Since v6.0.3, `zh-Hans` has been renamed to `zh-CN`: https://github.com/theme-next/hexo-theme-next/releases/tag/v6.0.3

Users upgrading to v6.0.3 and later need to explicitly modify the `language` configuration in the Hexo main config file `_config.yml`, otherwise the language display is incorrect.

And how to enable 3rd-party libraries see [here](https://github.com/theme-next/hexo-theme-next/blob/master/docs/INSTALLATION.md#plugins).
2 changes: 2 additions & 0 deletions docs/zh-CN/LEANCLOUD-COUNTER-SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<h1 align="center">修复 Leancloud 统计插件安全漏洞</h1>

在配置前,请升级NexT至**v6.0.6**以上。

在配置过程中请注意**博客配置文件****主题配置文件**的区别。
Expand Down
6 changes: 3 additions & 3 deletions docs/zh-CN/UPDATE-FROM-5.1.X.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
推荐通过如下步骤从 v5 升级到 v6:

1. 并不修改原有的 `next` 目录,而只是复制部分 NexT 文件:
1. `config.yml``next.yml`(如果你使用了[数据文件](DATA-FILES.md))。
1. `_config.yml``next.yml`(如果你使用了[数据文件](DATA-FILES.md))。
2. 自定义的 CSS 配置,它们应在 `next/source/css/_custom/*``next/source/css/_variables/*` 中。
3. 自定义的排布配置,它们应在 `next/layout/_custom/*` 中。
4. 任何其它可能的附加自定义内容;为了定位它们,你可以通过某些工具在仓库间比较。
Expand All @@ -28,8 +28,8 @@

4. 更新语言配置

从 v6.0.3版本起`zh-Hans`改名为`zh-CN`:https://github.com/theme-next/hexo-theme-next/releases/tag/v6.0.3
从 v6.0.3 版本起`zh-Hans`改名为`zh-CN`:https://github.com/theme-next/hexo-theme-next/releases/tag/v6.0.3

升级到v6.0.3及以后版本的用户,需要显式修改`_config.xml`里的language配置,否则语言显示不正确。
升级到 v6.0.3 及以后版本的用户,需要显式修改 Hexo 主配置文件`_config.yml`里的`language`配置,否则语言显示不正确。

关于第三方库的启用,参见[这里](https://github.com/theme-next/hexo-theme-next/blob/master/docs/zh-CN/INSTALLATION.md#插件)。

0 comments on commit d0e5216

Please sign in to comment.