-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a74b9d7
commit 6e0a06d
Showing
21 changed files
with
1,643 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# install | ||
|
||
```sh | ||
gbook install -h | ||
NAME: | ||
gbook install - install plugin | ||
`install`: install all plugins from gitbook | ||
`install [plugins...]`: install plugin you want, eg: `gbook install code ga` | ||
|
||
USAGE: | ||
gbook install [command options] [arguments...] | ||
|
||
OPTIONS: | ||
--help, -h show help | ||
``` | ||
|
||
- `gbook install [plugins...]` 会默认调用 `gbook ready` 和 `gbook sync2`命令,确保依赖正常后才会继续安装依赖。 | ||
- 使用前请确保设置好 npm 加速源 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ OPTIONS: | |
|
||
``` | ||
|
||
拉取 gitbook 引擎到 | ||
拉取 gitbook 引擎,因为包含`node_modules`,可能很慢,建议使用`sync2` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# sync | ||
|
||
```sh | ||
gbook sync2 -h | ||
NAME: | ||
gbook sync2 - sync2 gitbook, 不包含node_modules, suggest | ||
|
||
USAGE: | ||
gbook sync2 [command options] [arguments...] | ||
|
||
OPTIONS: | ||
--source value gitbook数据源 (default: "https://github.com/gofulljs/gitbook/archive/refs/tags/3.2.3.tar.gz") | ||
--proxy1 value 自定义加速源(前缀+source), 不传采用以下\n[https://ghps.cc/ https://gh.api.99988866.xyz/ https://github.abskoop.workers.dev/] | ||
--proxy2 value 自定义加速源(替换https://github.com前缀) | ||
--help, -h show help | ||
|
||
``` | ||
|
||
拉取 gitbook 引擎,拉取完成后会自动调用 `npm install` 安装依赖 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,33 @@ | ||
hello world | ||
# 命令概览 | ||
|
||
```sh | ||
$ gbook -h | ||
NAME: | ||
gbook - uniswap tick update, other command will forward gitbook * | ||
|
||
USAGE: | ||
gbook [global options] command [command options] [arguments...] | ||
|
||
VERSION: | ||
v1.0.0 | ||
|
||
COMMANDS: | ||
ready check env is ready | ||
sync sync gitbook | ||
sync2 sync2 gitbook, 不包含node_modules, suggest | ||
install, i install plugin | ||
`install`: install all plugins from gitbook | ||
`install [plugins...]`: install plugin you want, eg: `gbook install code ga` | ||
help, h Shows a list of commands or help for one command | ||
|
||
GLOBAL OPTIONS: | ||
--bookVersion value, --bv value (default: "3.2.3") [%BOOK_VERSION%] | ||
--bookHome value, --bh value gitbook path, default is $HOME/.gitbook/versions/ | ||
--nodePath value nodejs home, if not specified, use current node [%BOOK_NODE_HOME%] | ||
--help, -h show help | ||
--version, -v print the version | ||
``` | ||
- `bookVersion`: 默认使用 gitbook 引擎为 3.2.3 | ||
- `bookHome`: 默认 gitbook 引擎存放位置 | ||
- `nodePath`: `gbook` 使用指定路径的 node 版本,建议将`BOOK_NODE_HOME`配置到环境变量中,这样切换 node 版本不将影响到`gbook` |
Oops, something went wrong.