hexo-auto-toc 1.0.7 → 1.0.8

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 +6 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,18 +4,18 @@
4
4
 
5
5
  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. It can also automatically choose to be on the left or on the right.
6
6
 
7
- - Requirement 必须具备
8
-
9
- `npm install cheerio --save`
10
-
11
7
  - Getting Started
12
8
 
13
9
  1. Installation
14
10
 
15
11
  ```bash
16
12
  npm install hexo-auto-toc
13
+ cd hexo-auto-toc
14
+ npm install
17
15
  ```
18
16
 
17
+ Requirement cheerio:``npm install` above replaces `npm install cheerio --save`
18
+
19
19
  2. The plugin will automatically parse all content within the `<article>` tag and generate a table of contents.
20
20
  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.
21
21
  3. check the effects: `hexo clean&&hexo g&&hexo s`
@@ -26,6 +26,8 @@ npm install hexo-auto-toc
26
26
 
27
27
  ```bash
28
28
  npm install hexo-auto-toc
29
+ cd hexo-auto-toc
30
+ npm install
29
31
  ```
30
32
 
31
33
  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.7",
3
+ "version": "1.0.8",
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",