惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
L
LINUX DO - 最新话题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Forbes - Security
Forbes - Security
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
W
WeLiveSecurity
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
N
News and Events Feed by Topic
V
V2EX
Stack Overflow Blog
Stack Overflow Blog
Engineering at Meta
Engineering at Meta
PCI Perspectives
PCI Perspectives
Martin Fowler
Martin Fowler
T
The Exploit Database - CXSecurity.com
F
Full Disclosure
WordPress大学
WordPress大学
S
Security Affairs
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
SegmentFault 最新的问题
P
Privacy International News Feed
IT之家
IT之家
M
MIT News - Artificial intelligence
G
GRAHAM CLULEY
Hacker News: Ask HN
Hacker News: Ask HN
D
DataBreaches.Net
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
C
Check Point Blog
美团技术团队
Security Latest
Security Latest
Cyberwarzone
Cyberwarzone
N
News and Events Feed by Topic
MyScale Blog
MyScale Blog
H
Help Net Security
宝玉的分享
宝玉的分享
The Hacker News
The Hacker News
The Last Watchdog
The Last Watchdog
The Cloudflare Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
爱范儿
爱范儿
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
I
Intezer
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
AI
AI
I
InfoQ
N
News | PayPal Newsroom
TaoSecurity Blog
TaoSecurity Blog

博客园 - 中国的Amadeus

【A】SQLServer 数据库变成单个用户后无法访问问题的解决方法.170323 - 中国的Amadeus A-GFS安装使用.220124 - 中国的Amadeus A-ollama发布Deepseek API并调用.250304 【A】OpenEuler同时安装docker-engine和containerd产生冲突.250212 A-通过sqlserver添加修改系统管理员账号.120510 A-AD中域用户密码策略不生效的解决方案.100301 A-BAT批处理文件语法.061024 - 中国的Amadeus 【A】欧拉OpenEuler基于Kubeasz部署k8s.v2.250120 - 中国的Amadeus A-查询SQL Server更改记录的语句-170315 【A】域控从域无法同步的解决方法.24011 - 中国的Amadeus 【A】SQL-按自定义格式进行编号的SQL自定义函数.090119 【A】SQL-select时,一个栏位按123进行编号的方法.090121 A-windows安装tomcat10.240108 A-SQL-update多条Select出来的数据.090205 A-Excel中,日期和时间用连接后格式不正确的解决方法.170306 A-挖矿病毒的终极解决方法.201010 A-docker里查找程序源代码路径 上传本地文件.210521 A-查找Tomcat路径并重启.210525 - 中国的Amadeus A-docker里面网站的port端口映射修改.210601 A-Gitbook的docker安装配置.210603 A-Desk-群晖关闭局域网发现.210607 vscode+evernote印象笔记+markdown写在线笔记--OK 【Amadeus原创】苹果电脑升级系统无法开机的终极解决办法 【Amadeus原创】苹果下,idea手动maven jar包的方法 【Amadeus原创】VMware下centOS yum报错cannot find a valid baseurl or repo:base 解决方法 【Amadeus原创】SQLServer2008防小人利器:审核/审计功能 【20180111】【物流FM专访】贝业新兄弟李济宏:我们是如何做到大件家居B2C物流第一的? 【20171123】【GITC精华演讲】贝业新兄弟李济宏:如何做到企业信息化建设的加减乘除 存货控制中的ABC分类释义 对员工宽容的公司 都死掉了 小型互联网公司的IT系统建设思路 第三方物流是什么 伟哥对RTO & RPO的通俗理解 【20170506】贝业新兄弟IT总监李济宏:第三方家居物流的IT架构探索 【Amadeus原创】VirtualBox扩容、分割的整体方案 【Amadeus原创】SQL Server 只安装客户端的方法 IT? 挨踢 64位Windows无法打开会声会影X5的解决方法 小型IT部门建设之我见 要熟练掌握的七个人生工具 一个小公司老板的日常管理 o2o的关健在于线下!
A-Gitbook在Docker中安装插件的方法.210603
中国的Amadeus · 2025-01-17 · via 博客园 - 中国的Amadeus

别光在那百度,什么先book.json添加plugin,然后在install?
哥,你现在用的是docker哎,docker都启动不了,你如何gitbook install呢?
乖乖听我的,按我的方法来!

1. docker中使用npm安装插件

[root@it gitbook]# docker exec gitbook npm install gitbook-plugin-back-to-top-button
npm info it worked if it ends with ok
npm info using npm@3.10.3 npm info using node@v6.3.0 npm info attempt registry request try #1 at 8:09:11 AM
npm http request GET https://registry.npmjs.org/gitbook-plugin-back-to-top-button
npm http 304 https://registry.npmjs.org/gitbook-plugin-back-to-top-button
npm info addNameTag [ 'gitbook-plugin-back-to-top-button', 'latest' ]
npm info lifecycle gitbook-plugin-back-to-top-button@0.1.4~preinstall: gitbook-plugin-back-to-top-button@0.1.4 npm info linkStuff gitbook-plugin-back-to-top-button@0.1.4 npm info lifecycle gitbook-plugin-back-to-top-button@0.1.4~install: gitbook-plugin-back-to-top-button@0.1.4 npm info lifecycle gitbook-plugin-back-to-top-button@0.1.4~postinstall: gitbook-plugin-back-to-top-button@0.1.4
/srv/gitbook
`-- gitbook-plugin-back-to-top-button@0.1.4 npm WARN enoent ENOENT: no such file or directory, open '/srv/gitbook/package.json' npm WARN gitbook No description
npm WARN gitbook No repository field.
npm WARN gitbook No README data
npm WARN gitbook No license field.
npm info ok

ps:进入docker,有两种方式,
一种是:
docker exec -it 54dca0894540 sh
另一种是:
docker exec gitbook gitbook –V
第一种方式,是进入docker容器里面 ,第二种方式,是在外面直接exec容器里的东东。
第一种方式,用containner-id, 第二种方式,用names

2. book.json中,加入plugin内容

{
 "language" : "zh-hans", "plugins": [ "back-to-top-button" ]
}

3. docker ps,看一下进程是否在,不在立马docker logs 看报错信息

[root@it gitbook]# docker logs gitbook
...
Restart after change in file node_modules/gitbook-plugin-back-to-top-button/README.md

Stopping server info: 8 plugins are installed info: loading plugin "back-to-top-button"... OK info: loading plugin "livereload"... 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-default"... OK info: found 1 pages info: found 0 asset files info:  generation finished with success in 0.9s ! Starting server ...
Serving book on [http:](http://localhost:4000)//localhost:4000

PS

插件么,网上一堆的,按照需要去下载安装即可,谨记以上的操作步骤,gitbook路上不迷路~~~

以下为我的book.json (需要自建)

{ "language" : "zh-hans", "plugins": [ "back-to-top-button", "chapter-fold", "-lunr", "-search", "search-pro", "splitter" ], "styles": { "website": "styles/website.css" }
}

我的/styles/website.css

.gitbook-link {
         display: none !important;
        }
h1 , h2{
    border-bottom: 1px solid #EFEAEA;
}