From d0e52164b8ae0f66014f7f1465284ea04903a97d Mon Sep 17 00:00:00 2001 From: Howie Zhao Date: Sat, 20 Jul 2019 00:10:46 +0800 Subject: [PATCH] Update docs (#978) --- docs/LEANCLOUD-COUNTER-SECURITY.md | 2 ++ docs/UPDATE-FROM-5.1.X.md | 7 ++++++- docs/zh-CN/LEANCLOUD-COUNTER-SECURITY.md | 2 ++ docs/zh-CN/UPDATE-FROM-5.1.X.md | 6 +++--- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/LEANCLOUD-COUNTER-SECURITY.md b/docs/LEANCLOUD-COUNTER-SECURITY.md index 9a6c8a0dd7..b92bc6020a 100644 --- a/docs/LEANCLOUD-COUNTER-SECURITY.md +++ b/docs/LEANCLOUD-COUNTER-SECURITY.md @@ -1,3 +1,5 @@ +

Fix Leancloud Counter Plugin Security Vulnerability

+ 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** diff --git a/docs/UPDATE-FROM-5.1.X.md b/docs/UPDATE-FROM-5.1.X.md index 93ae14ec04..15d5474e63 100644 --- a/docs/UPDATE-FROM-5.1.X.md +++ b/docs/UPDATE-FROM-5.1.X.md @@ -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). diff --git a/docs/zh-CN/LEANCLOUD-COUNTER-SECURITY.md b/docs/zh-CN/LEANCLOUD-COUNTER-SECURITY.md index 39fee3462f..a28349f7a8 100644 --- a/docs/zh-CN/LEANCLOUD-COUNTER-SECURITY.md +++ b/docs/zh-CN/LEANCLOUD-COUNTER-SECURITY.md @@ -1,3 +1,5 @@ +

修复 Leancloud 统计插件安全漏洞

+ 在配置前,请升级NexT至**v6.0.6**以上。 在配置过程中请注意**博客配置文件**和**主题配置文件**的区别。 diff --git a/docs/zh-CN/UPDATE-FROM-5.1.X.md b/docs/zh-CN/UPDATE-FROM-5.1.X.md index ab097eac16..679c97d0ca 100644 --- a/docs/zh-CN/UPDATE-FROM-5.1.X.md +++ b/docs/zh-CN/UPDATE-FROM-5.1.X.md @@ -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. 任何其它可能的附加自定义内容;为了定位它们,你可以通过某些工具在仓库间比较。 @@ -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#插件)。