2 Gitbook Plugin Summary

Gitbook 插件:自动生成 summary.md 文件内容,如果有很多md文件,这个插件可以帮助你生成初始版本。

$ npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help init` for definitive documentation on these fields
and exactly what they do.

Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
package name: (git-in-action) 
version: (1.0.0) 
description: This is a book about git、github、gitlab and gitbook.
entry point: (index.js) 
test command: 
git repository: 
keywords: 
author: 
license: (ISC) 
About to write to /root/github/git-in-action/package.json:

{
  "name": "git-in-action",
  "version": "1.0.0",
  "description": "This is a book about git、github、gitlab and gitbook.",
  "main": "index.js",
  "dependencies": {
    "gitbook-plugin-summary": "^1.1.0",
    "gitbook-plugin-theme-comscore": "^0.0.3"
  },
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}


Is this OK? (yes) yes

安装 gitbook-plugin-summary

注意:如果没有命令book,执行

Last updated