gitbook 【插件】gitbook-summary

简介: gitbook 【插件】gitbook-summary

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

$ npm install gitbook-plugin-summary
$ npm install -g gitbook-summary  #生成book命令
$ book sm
$ cat SUMMARY.md 
# GitBook Handbook
- Git
  * [1 Git Introduce](git/1_git_introduce.md)
  * [2 Git Command](git/2_git_command.md)
  * [3 Git Reset](git/3_git_reset.md)
  * [4 Git Ssh Login Without Secret](git/4_git_ssh_login_without_secret.md)
- Github
  * [1 Github Introduce](github/1_github_introduce.md)
  * [2 Github Local Pull Github](github/2_github_local_pull_github.md)
  * [3 Github Action](github/3_github_action.md)
  * [4 Github Page](github/4_github_page.md)
- Gitlab
  * [1 Gitlab Deploy](gitlab/1_gitlab_deploy.md)
  * [2 Gitlab Runner Deploy](gitlab/2_gitlab_runner_deploy.md)
  * [3 Gitlab Config](gitlab/3_gitlab_config.md)
  * [4 Gitlab Pipline](gitlab/4_gitlab_pipline.md)
  * [5 Gitlab Ci Config](gitlab/5_gitlab_ci_config.md)
* [Information](information.md)

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

ln -s /usr/local/node-v10.24.0-linux-x64/bin/book /usr/local/bin/

如果我们要重新生成SUMMARY.md

$ gitbook build
info: 9 plugins are installed 
info: 8 explicitly listed 
info: loading plugin "summary"... OK 
info: loading plugin "highlight"... OK 
info: loading plugin "search"... OK 
info: loading plugin "lunr"... OK 
info: loading plugin "sharing"... OK 
info: loading plugin "fontsettings"... OK 
info: loading plugin "theme-comscore"... OK 
info: loading plugin "theme-default"... OK 
info: found 16 pages 
info: found 4 asset files 
gitbook-plugin-summary: SUMMARY.md generated successfully.
init!
finish!
info: >> generation finished with success in 2.3s ! 
相关文章
|
Python
matplotlib 按指定的时间间隔生成坐标轴
matplotlib 提供了自定义生成时间轴的库,而当我们需要按照自己定义的时间间隔去生成时间轴时,时间轴并没有正常显示,只是按照一个时间跨度更大的方式显示,本文强制 matplotlib 严格按照要求自定义的时间间隔来坐标轴,并对每一行代码做了详细的说明。
7979 0
matplotlib 按指定的时间间隔生成坐标轴
|
Linux
如何查找 Linux 操作系统的安装日期和时间?
如何查找 Linux 操作系统的安装日期和时间?
10643 1
如何查找 Linux 操作系统的安装日期和时间?
|
5月前
|
Java 应用服务中间件 数据库连接
Spring Boot这5个配置项默认值就是错的,高并发第1天就502
Spring Boot上线前5项关键配置必查:Tomcat线程数(建议≥500)、HikariCP连接池(单实例≤30)、Actuator端点最小暴露(禁用env/heapdump)、生产日志分级(业务INFO+第三方WARN)、强制激活prod profile。缺一即可能导致502、超时或安全风险。
|
6月前
|
定位技术 Android开发 Kotlin
Service 与前台服务:让任务在后台持续运行
Android Service 是无UI后台组件,专用于长期任务。自8.0起,需用前台服务(带常驻通知)保障运行;核心要点:5秒内调`startForeground`、耗时操作移出主线程、任务完成及时`stopSelf`。
634 0
|
6月前
|
JavaScript 安全 Java
【日常小问】Spring Cloud Gateway 5.x 跨域和路由配置踩坑实录
Spring Cloud Gateway 升级 5.x 后,配置前缀改为 spring.cloud.gateway.server.webflux,依赖坐标改名为 spring-cloud-starter-gateway-server-webflux,CORS 需网关统一处理,避免下游服务重复设置导致浏览器拒绝。
909 1
|
6月前
|
安全 测试技术 容器
K-460D 无白化瞬干胶技术解析:低挥发单体配方与外观件粘接应用
K-460D是一款甲氧基丙烯酸酯无白化瞬干胶,蒸汽压<0.3 mmHg,实现0级无白化与低气味(VOC<50 g/L);对ABS/PC等达基材破坏级粘接,透光率≥92%,适用于消费电子、光学及医疗器械外观件精密粘接。
600 0
|
7月前
|
人工智能 自然语言处理 安全
OpenClaw v2.3.12 保姆级安装教程,本地自动化办公必备
OpenClaw(小龙虾)是2026年热门开源本地AI智能体,支持Win11一键部署,无需联网、付费或编程基础。自动执行文件整理、浏览器操控等任务,数据全留本地,隐私安全可靠。(239字)
|
11月前
|
机器学习/深度学习 人工智能 自然语言处理
Claude Cowork:当AI走出聊天框,成为你的"数字同事"
Anthropic 于 2026 年 1 月发布 Claude Cowork,定位为可执行任务的“数字同事”。该产品支持直接操作本地文件,并通过沙箱隔离与子代理协作机制,在文件管理等实际场景中展现出明显优势。
2361 2
Claude Cowork:当AI走出聊天框,成为你的"数字同事"
|
前端开发 开发工具 iOS开发
原创Electron38.2+Vite7+Vue3+Pinia3+ArcoDesign客户端os管理系统模板
2025最新版原创研发Electron38.2+Vite7+Vue3 setup+ArcoDesign+Echarts仿MacOS/Wins风格桌面客户端OS系统解决方案。
691 10

热门文章

最新文章