hexo-auto-toc 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -10,11 +10,9 @@ Automatically generates a responsive table of contents that fixes to the side of
10
10
 
11
11
  ```bash
12
12
  npm install hexo-auto-toc
13
- cd hexo-auto-toc
14
- npm install
15
13
  ```
16
14
 
17
- Requirement cheerio:`npm install` above replaces `npm install cheerio --save`
15
+ Requirement cheerio:auto install it replacing `npm install cheerio --save`
18
16
 
19
17
  2. The plugin will automatically parse all content within the `<article>` tag and generate a table of contents.
20
18
  If your article page structure does not wrap the content inside an `<article>` element, contents in`<body>` will be parsed. Or you can add `<article>` manually — typically in the `index.html` file under your `blog` folder, but this is not necessary.
@@ -22,12 +20,10 @@ Requirement cheerio:`npm install` above replaces `npm install cheerio --save`
22
20
 
23
21
  - 使用
24
22
 
25
- 1. 安装
23
+ 1. 安装(自动安装依赖cheerio)
26
24
 
27
25
  ```bash
28
26
  npm install hexo-auto-toc
29
- cd hexo-auto-toc
30
- npm install
31
27
  ```
32
28
 
33
29
  2. 插件会自动对`<article>`包含下的所有内容进行解析,自动生成目录。如果你的文章页面结构中内容没被`<article>`包裹,将会解析`<body>`下的所有内容;你可以自行添加`<article>`(即blog文件夹下的index.html),但不是必须的。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-auto-toc",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Automatically generates a responsive table of contents that fixes to the side of the article page or above the articles, depending on the user's device.",
5
5
  "keywords": [
6
6
  "toc",