gitbook配置


gitbook配置

========================

首先请看我配置的gitbook,这里是搬了一个RxSwift的中文教程过来。

gitbook网址:https://3440217568.gitbook.io/rxswift/

使用的教程

解决“ cb.apply不是函数”错误

在安装gitbook时,由于mac上的node版本较新,出现了bug,根据下面的文章,我注释了三行代码,解决了这个问题。

为gitbook配置github仓库


绑定域名

我的域名之前绑定了博客,再绑定这个gitbook估计又得折腾一阵了,所以我暂时先用这个网址https://3440217568.gitbook.io/rxswift/,其实我觉得不一定非得自定义域名。

成果图

工作记录

Last login: Fri Mar 26 11:38:08 on ttys002
zhangsaidong@zhangsaidongs-MacBook-Pro ~ % gitbook -V
CLI version: 2.3.2
Installing GitBook 3.2.3
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
/usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287
      if (cb) cb.apply(this, arguments)
                 ^

TypeError: cb.apply is not a function
    at /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287:18
    at FSReqCallback.oncomplete (fs.js:184:5)
zhangsaidong@zhangsaidongs-MacBook-Pro ~ % open /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js
zhangsaidong@zhangsaidongs-MacBook-Pro ~ % gitbook -V
CLI version: 2.3.2
Installing GitBook 3.2.3
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
gitbook@3.2.3 ../../var/folders/6l/1l7ck2ln26l__7d011xpj3q00000gn/T/tmp-84437JZNGqeaPKI2p/node_modules/gitbook
├── escape-html@1.0.3
├── escape-string-regexp@1.0.5
├── destroy@1.0.4
├── ignore@3.1.2
├── bash-color@0.0.4
├── gitbook-plugin-livereload@0.0.1
├── graceful-fs@4.1.4
├── nunjucks-do@1.0.0
├── cp@0.2.0
├── github-slugid@1.0.1
├── direction@0.1.5
├── q@1.4.1
├── spawn-cmd@0.0.2
├── gitbook-plugin-fontsettings@2.0.0
├── open@0.0.5
├── is@3.3.0
├── object-path@0.9.2
├── extend@3.0.2
├── json-schema-defaults@0.1.1
├── gitbook-plugin-search@2.2.1
├── jsonschema@1.1.0
├── crc@3.4.0
├── semver@5.1.0
├── urijs@1.18.0
├── immutable@3.8.2
├── front-matter@2.3.0
├── omit-keys@0.1.0 (isobject@0.2.0, array-difference@0.0.1)
├── error@7.0.2 (xtend@4.0.2, string-template@0.2.1)
├── npmi@2.0.1 (semver@4.3.6)
├── tmp@0.0.28 (os-tmpdir@1.0.2)
├── send@0.13.2 (fresh@0.3.0, etag@1.7.0, range-parser@1.0.3, statuses@1.2.1, ms@0.7.1, depd@1.1.2, mime@1.3.4, debug@2.2.0, http-errors@1.3.1, on-finished@2.3.0)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── dom-serializer@0.1.0 (domelementtype@1.1.3, entities@1.1.2)
├── resolve@1.1.7
├── rmdir@1.2.0 (node.flow@1.2.3)
├── fresh-require@1.0.3 (is-require@0.0.1, shallow-copy@0.0.1, sleuth@0.1.1, astw@1.3.0, through2@0.6.5, escodegen@1.14.3, acorn@0.9.0)
├── cpr@1.1.1 (rimraf@2.4.5)
├── js-yaml@3.14.1 (esprima@4.0.1, argparse@1.0.10)
├── gitbook-plugin-theme-default@1.0.7
├── tiny-lr@0.2.1 (parseurl@1.3.3, livereload-js@2.4.0, qs@5.1.0, debug@2.2.0, body-parser@1.14.2, faye-websocket@0.10.0)
├── gitbook-plugin-lunr@1.2.0 (html-entities@1.2.0, lunr@0.5.12)
├── chokidar@1.5.0 (async-each@1.0.3, path-is-absolute@1.0.1, inherits@2.0.4, glob-parent@2.0.0, is-glob@2.0.1, is-binary-path@1.0.1, anymatch@1.3.2, fsevents@1.2.13, readdirp@2.2.1)
├── gitbook-plugin-highlight@2.0.2 (highlight.js@9.2.0)
├── moment@2.13.0
├── read-installed@4.0.3 (debuglog@1.0.1, util-extend@1.0.3, slide@1.1.6, readdir-scoped-modules@1.1.0, read-package-json@2.1.2)
├── gitbook-plugin-sharing@1.0.2 (lodash@3.10.1)
├── nunjucks@2.5.2 (asap@2.0.6, yargs@3.32.0, chokidar@1.7.0)
├── i18n-t@1.0.1 (lodash@4.17.21)
├── cheerio@0.20.0 (entities@1.1.2, css-select@1.2.0, htmlparser2@3.8.3, jsdom@7.2.2, lodash@4.17.21)
├── gitbook-asciidoc@1.2.2 (gitbook-html@1.3.3, asciidoctor.js@1.5.5-1, lodash@4.17.21)
├── gitbook-markdown@1.3.2 (kramed-text-renderer@0.2.1, gitbook-html@1.3.3, kramed@0.5.6, lodash@4.17.21)
├── request@2.72.0 (tunnel-agent@0.4.3, aws-sign2@0.6.0, forever-agent@0.6.1, oauth-sign@0.8.2, caseless@0.11.0, is-typedarray@1.0.0, stringstream@0.0.6, aws4@1.11.0, isstream@0.1.2, json-stringify-safe@5.0.1, tough-cookie@2.2.2, node-uuid@1.4.8, qs@6.1.2, combined-stream@1.0.8, mime-types@2.1.29, bl@1.1.2, hawk@3.1.3, har-validator@2.0.6, http-signature@1.1.1, form-data@1.0.1)
├── juice@2.0.0 (deep-extend@0.4.2, slick@1.12.2, batch@0.5.3, cssom@0.3.1, commander@2.9.0, cross-spawn-async@2.2.5, web-resource-inliner@2.0.0)
└── npm@3.9.2
GitBook version: 3.2.3
zhangsaidong@zhangsaidongs-MacBook-Pro ~ % cd /Users/zhangsaidong/Desktop/project/Self/BlogSource/gitbook
zhangsaidong@zhangsaidongs-MacBook-Pro gitbook % gitbook init
warn: no summary file in this book 
info: create README.md 
info: create SUMMARY.md 

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Promise
zhangsaidong@zhangsaidongs-MacBook-Pro gitbook % gitbook serve
Live reload server started on port: 35729
Press CTRL+C to quit ...

info: 7 plugins are installed 
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.3s ! 

Starting server ...
Serving book on http://localhost:4000
Restart after change in file book.json

Stopping server
info: 7 plugins are installed 
info: 21 explicitly listed 

Error: Couldn't locate plugins "jsbin, anchors, video, ga, toggle-chapters, editlink, include-codeblock, splitter, github-buttons, chart, todo, quiz, include-highlight, tonic", Run 'gitbook install' to install plugins from registry.
zhangsaidong@zhangsaidongs-MacBook-Pro gitbook % gitbook serve
Live reload server started on port: 35729
Press CTRL+C to quit ...

info: 7 plugins are installed 
info: 21 explicitly listed 

Error: Couldn't locate plugins "jsbin, anchors, video, ga, toggle-chapters, editlink, include-codeblock, splitter, github-buttons, chart, todo, quiz, include-highlight, tonic", Run 'gitbook install' to install plugins from registry.
zhangsaidong@zhangsaidongs-MacBook-Pro gitbook % gitbook install ./
info: installing 14 plugins using npm@3.9.2 
info:  
info: installing plugin "jsbin" 
info: install plugin "jsbin" (*) from NPM with version 0.0.12 
/Users/zhangsaidong/Desktop/project/Self/BlogSource/gitbook
└── gitbook-plugin-jsbin@0.0.12 

info: >> plugin "jsbin" installed with success 
info:  
info: installing plugin "anchors" 
runTopLevelLifecycles → 2 ▄ ╢███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░╟
/Users/zhangsaidong/Desktop/project/Self/BlogSource/gitbook
├─┬ gitbook-plugin-anchors@0.7.1 
│ ├─┬ cheerio@0.22.0 
│ │ ├─┬ css-select@1.2.0 
│ │ │ ├── boolbase@1.0.0 
│ │ │ ├── css-what@2.1.3 
│ │ │ ├── domutils@1.5.1 
│ │ │ └── nth-check@1.0.2 
│ │ ├─┬ dom-serializer@0.1.1 
│ │ │ └── domelementtype@1.3.1 
│ │ ├── entities@1.1.2 
│ │ ├─┬ htmlparser2@3.10.1 
│ │ │ ├── domhandler@2.4.2 
│ │ │ ├── inherits@2.0.4 
│ │ │ └─┬ readable-stream@3.6.0 
│ │ │   ├─┬ string_decoder@1.3.0 
│ │ │   │ └── safe-buffer@5.2.1 
│ │ │   └── util-deprecate@1.0.2 
│ │ ├── lodash.assignin@4.2.0 
│ │ ├── lodash.bind@4.2.1 
│ │ ├── lodash.defaults@4.2.0 
│ │ ├── lodash.filter@4.6.0 
│ │ ├── lodash.flatten@4.4.0 
│ │ ├── lodash.foreach@4.5.0 
│ │ ├── lodash.map@4.6.0 
│ │ ├── lodash.merge@4.6.2 
│ │ ├── lodash.pick@4.4.0 
│ │ ├── lodash.reduce@4.6.0 
│ │ ├── lodash.reject@4.6.0 
│ │ └── lodash.some@4.6.0 
│ └── github-slugid@1.0.1 
└── gitbook-plugin-jsbin@0.0.12 

info: >> plugin "anchors" installed with success 
info:  
info: installing plugin "video" 
runTopLevelLifecycles → 2 ▄ ╢███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░╟
/Users/zhangsaidong/Desktop/project/Self/BlogSource/gitbook
├── gitbook-plugin-anchors@0.7.1 
├── gitbook-plugin-jsbin@0.0.12 
└── gitbook-plugin-video@0.0.3 

info: >> plugin "video" installed with success 
info:  
info: installing plugin "ga" 
runTopLevelLifecycles → 2 ▀ ╢███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░╟
/Users/zhangsaidong/Desktop/project/Self/BlogSource/gitbook
├── gitbook-plugin-anchors@0.7.1 
├── gitbook-plugin-ga@1.0.1 
├── gitbook-plugin-jsbin@0.0.12 
└── gitbook-plugin-video@0.0.3 

info: >> plugin "ga" installed with success 
info:  
info: installing plugin "toggle-chapters" 
runTopLevelLifecycles → 2 ▌ ╢███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░╟
/Users/zhangsaidong/Desktop/project/Self/BlogSource/gitbook
├── gitbook-plugin-anchors@0.7.1 
├── gitbook-plugin-ga@1.0.1 
├── gitbook-plugin-jsbin@0.0.12 
├── gitbook-plugin-toggle-chapters@0.0.3 
└── gitbook-plugin-video@0.0.3 

info: >> plugin "toggle-chapters" installed with success 
info:  
info: installing plugin "editlink" 
runTopLevelLifecycles → 2 ▐ ╢███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░╟
/Users/zhangsaidong/Desktop/project/Self/BlogSource/gitbook
├── gitbook-plugin-anchors@0.7.1 
├── gitbook-plugin-editlink@1.0.2 
├── gitbook-plugin-ga@1.0.1 
├── gitbook-plugin-jsbin@0.0.12 
├── gitbook-plugin-toggle-chapters@0.0.3 
└── gitbook-plugin-video@0.0.3 

info: >> plugin "editlink" installed with success 
info:  
info: installing plugin "include-codeblock" 
runTopLevelLifecycles → 2 ▌ ╢███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░╟
/Users/zhangsaidong/Desktop/project/Self/BlogSource/gitbook
├── gitbook-plugin-anchors@0.7.1 
├── gitbook-plugin-editlink@1.0.2 
├── gitbook-plugin-ga@1.0.1 
├─┬ gitbook-plugin-include-codeblock@3.2.2 
│ ├─┬ handlebars@4.7.7 
│ │ ├── minimist@1.2.5 
│ │ ├── neo-async@2.6.2 
│ │ ├── source-map@0.6.1 
│ │ ├── uglify-js@3.13.2 
│ │ └── wordwrap@1.0.0 
│ ├── language-map@1.4.0 
│ ├─┬ meow@4.0.1 
│ │ ├─┬ camelcase-keys@4.2.0 
│ │ │ ├── camelcase@4.1.0 
│ │ │ ├── map-obj@2.0.0 
│ │ │ └── quick-lru@1.1.0 
│ │ ├─┬ decamelize-keys@1.1.0 
│ │ │ ├── decamelize@1.2.0 
│ │ │ └── map-obj@1.0.1 
│ │ ├─┬ loud-rejection@1.6.0 
│ │ │ ├─┬ currently-unhandled@0.4.1 
│ │ │ │ └── array-find-index@1.0.2 
│ │ │ └── signal-exit@3.0.3 
│ │ ├─┬ minimist-options@3.0.2 
│ │ │ ├── arrify@1.0.1 
│ │ │ └── is-plain-obj@1.1.0 
│ │ ├─┬ normalize-package-data@2.5.0 
│ │ │ ├── hosted-git-info@2.8.8 
│ │ │ ├─┬ resolve@1.20.0 
│ │ │ │ ├─┬ is-core-module@2.2.0 
│ │ │ │ │ └─┬ has@1.0.3 
│ │ │ │ │   └── function-bind@1.1.1 
│ │ │ │ └── path-parse@1.0.6 
│ │ │ ├── semver@5.7.1 
│ │ │ └─┬ validate-npm-package-license@3.0.4 
│ │ │   ├─┬ spdx-correct@3.1.1 
│ │ │   │ └── spdx-license-ids@3.0.7 
│ │ │   └─┬ spdx-expression-parse@3.0.1 
│ │ │     └── spdx-exceptions@2.3.0 
│ │ ├─┬ read-pkg-up@3.0.0 
│ │ │ ├─┬ find-up@2.1.0 
│ │ │ │ └─┬ locate-path@2.0.0 
│ │ │ │   ├─┬ p-locate@2.0.0 
│ │ │ │   │ └─┬ p-limit@1.3.0 
│ │ │ │   │   └── p-try@1.0.0 
│ │ │ │   └── path-exists@3.0.0 
│ │ │ └─┬ read-pkg@3.0.0 
│ │ │   ├─┬ load-json-file@4.0.0 
│ │ │   │ ├── graceful-fs@4.2.6 
│ │ │   │ ├─┬ parse-json@4.0.0 
│ │ │   │ │ ├─┬ error-ex@1.3.2 
│ │ │   │ │ │ └── is-arrayish@0.2.1 
│ │ │   │ │ └── json-parse-better-errors@1.0.2 
│ │ │   │ ├── pify@3.0.0 
│ │ │   │ └── strip-bom@3.0.0 
│ │ │   └── path-type@3.0.0 
│ │ ├─┬ redent@2.0.0 
│ │ │ ├── indent-string@3.2.0 
│ │ │ └── strip-indent@2.0.0 
│ │ └── trim-newlines@2.0.0 
│ └─┬ winston-color@1.0.0 
│   └─┬ winston@2.4.5 
│     ├── async@1.0.0 
│     ├── colors@1.0.3 
│     ├── cycle@1.0.3 
│     ├── eyes@0.1.8 
│     ├── isstream@0.1.2 
│     └── stack-trace@0.0.10 
├── gitbook-plugin-jsbin@0.0.12 
├── gitbook-plugin-toggle-chapters@0.0.3 
└── gitbook-plugin-video@0.0.3 

info: >> plugin "include-codeblock" installed with success 
info:  
info: installing plugin "splitter" 
runTopLevelLifecycles → 2 ▄ ╢███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░╟
/Users/zhangsaidong/Desktop/project/Self/BlogSource/gitbook
├── gitbook-plugin-anchors@0.7.1 
├── gitbook-plugin-editlink@1.0.2 
├── gitbook-plugin-ga@1.0.1 
├── gitbook-plugin-include-codeblock@3.2.2 
├── gitbook-plugin-jsbin@0.0.12 
├── gitbook-plugin-splitter@0.0.8 
├── gitbook-plugin-toggle-chapters@0.0.3 
└── gitbook-plugin-video@0.0.3 

info: >> plugin "splitter" installed with success 
info:  
info: installing plugin "github-buttons" 
runTopLevelLifecycles → 2 ▌ ╢███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░╟
/Users/zhangsaidong/Desktop/project/Self/BlogSource/gitbook
├── gitbook-plugin-anchors@0.7.1 
├── gitbook-plugin-editlink@1.0.2 
├── gitbook-plugin-ga@1.0.1 
├── gitbook-plugin-github-buttons@3.0.0 
├── gitbook-plugin-include-codeblock@3.2.2 
├── gitbook-plugin-jsbin@0.0.12 
├── gitbook-plugin-splitter@0.0.8 
├── gitbook-plugin-toggle-chapters@0.0.3 
└── gitbook-plugin-video@0.0.3 

info: >> plugin "github-buttons" installed with success 
info:  
info: installing plugin "chart" 
runTopLevelLifecycles → 2 ▄ ╢███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░╟
/Users/zhangsaidong/Desktop/project/Self/BlogSource/gitbook
├── gitbook-plugin-anchors@0.7.1 
├─┬ gitbook-plugin-chart@0.2.2 
│ └─┬ js-yaml@3.14.1 
│   ├─┬ argparse@1.0.10 
│   │ └── sprintf-js@1.0.3 
│   └── esprima@4.0.1 
├── gitbook-plugin-editlink@1.0.2 
├── gitbook-plugin-ga@1.0.1 
├── gitbook-plugin-github-buttons@3.0.0 
├── gitbook-plugin-include-codeblock@3.2.2 
├── gitbook-plugin-jsbin@0.0.12 
├── gitbook-plugin-splitter@0.0.8 
├── gitbook-plugin-toggle-chapters@0.0.3 
└── gitbook-plugin-video@0.0.3 

info: >> plugin "chart" installed with success 
info:  
info: installing plugin "todo" 
runTopLevelLifecycles → 2 ▄ ╢███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░╟
/Users/zhangsaidong/Desktop/project/Self/BlogSource/gitbook
├── gitbook-plugin-anchors@0.7.1 
├── gitbook-plugin-chart@0.2.2 
├── gitbook-plugin-editlink@1.0.2 
├── gitbook-plugin-ga@1.0.1 
├── gitbook-plugin-github-buttons@3.0.0 
├── gitbook-plugin-include-codeblock@3.2.2 
├── gitbook-plugin-jsbin@0.0.12 
├── gitbook-plugin-splitter@0.0.8 
├─┬ gitbook-plugin-todo@0.1.3 
│ ├─┬ cheerio@0.19.0 
│ │ ├─┬ css-select@1.0.0 
│ │ │ ├── css-what@1.0.0 
│ │ │ └── domutils@1.4.3 
│ │ ├─┬ htmlparser2@3.8.3 
│ │ │ ├── domhandler@2.3.0 
│ │ │ ├── domutils@1.5.1 
│ │ │ ├── entities@1.0.0 
│ │ │ └─┬ readable-stream@1.1.14 
│ │ │   ├── core-util-is@1.0.2 
│ │ │   ├── isarray@0.0.1 
│ │ │   └── string_decoder@0.10.31 
│ │ └── lodash@3.10.1 
│ └── underscore@1.12.1 
├── gitbook-plugin-toggle-chapters@0.0.3 
└── gitbook-plugin-video@0.0.3 

info: >> plugin "todo" installed with success 
info:  
info: installing plugin "quiz" 
runTopLevelLifecycles → 2 ▀ ╢███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░╟
/Users/zhangsaidong/Desktop/project/Self/BlogSource/gitbook
├── gitbook-plugin-anchors@0.7.1 
├── gitbook-plugin-chart@0.2.2 
├── gitbook-plugin-editlink@1.0.2 
├── gitbook-plugin-ga@1.0.1 
├── gitbook-plugin-github-buttons@3.0.0 
├── gitbook-plugin-include-codeblock@3.2.2 
├── gitbook-plugin-jsbin@0.0.12 
├─┬ gitbook-plugin-quiz@0.3.0 
│ └── jquery@2.2.4 
├── gitbook-plugin-splitter@0.0.8 
├─┬ gitbook-plugin-todo@0.1.3 
│ └─┬ cheerio@0.19.0
│   └─┬ htmlparser2@3.8.3
│     └── domutils@1.5.1 
├── gitbook-plugin-toggle-chapters@0.0.3 
└── gitbook-plugin-video@0.0.3 

info: >> plugin "quiz" installed with success 
info:  
info: installing plugin "include-highlight" 
runTopLevelLifecycles → 2 ▄ ╢███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░╟
/Users/zhangsaidong/Desktop/project/Self/BlogSource/gitbook
├── gitbook-plugin-anchors@0.7.1 
├── gitbook-plugin-chart@0.2.2 
├── gitbook-plugin-editlink@1.0.2 
├── gitbook-plugin-ga@1.0.1 
├── gitbook-plugin-github-buttons@3.0.0 
├── gitbook-plugin-include-codeblock@3.2.2 
├─┬ gitbook-plugin-include-highlight@0.2.1 
│ ├─┬ path@0.12.7 
│ │ ├── process@0.11.10 
│ │ └─┬ util@0.10.4 
│ │   └── inherits@2.0.3 
│ └── q@1.5.1 
├── gitbook-plugin-jsbin@0.0.12 
├── gitbook-plugin-quiz@0.3.0 
├── gitbook-plugin-splitter@0.0.8 
├─┬ gitbook-plugin-todo@0.1.3 
│ └─┬ cheerio@0.19.0
│   └─┬ htmlparser2@3.8.3
│     └── domutils@1.5.1 
├── gitbook-plugin-toggle-chapters@0.0.3 
└── gitbook-plugin-video@0.0.3 

info: >> plugin "include-highlight" installed with success 
info:  
info: installing plugin "tonic" 
runTopLevelLifecycles → 2 ▀ ╢███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░╟
/Users/zhangsaidong/Desktop/project/Self/BlogSource/gitbook
├── gitbook-plugin-anchors@0.7.1 
├── gitbook-plugin-chart@0.2.2 
├── gitbook-plugin-editlink@1.0.2 
├── gitbook-plugin-ga@1.0.1 
├── gitbook-plugin-github-buttons@3.0.0 
├── gitbook-plugin-include-codeblock@3.2.2 
├── gitbook-plugin-include-highlight@0.2.1 
├── gitbook-plugin-jsbin@0.0.12 
├── gitbook-plugin-quiz@0.3.0 
├── gitbook-plugin-splitter@0.0.8 
├─┬ gitbook-plugin-todo@0.1.3 
│ └─┬ cheerio@0.19.0
│   └─┬ htmlparser2@3.8.3
│     └── domutils@1.5.1 
├── gitbook-plugin-toggle-chapters@0.0.3 
├── gitbook-plugin-tonic@1.1.0 
└── gitbook-plugin-video@0.0.3 

info: >> plugin "tonic" installed with success 
zhangsaidong@zhangsaidongs-MacBook-Pro gitbook % git serve
git: 'serve' is not a git command. See 'git --help'.

The most similar command is
    merge
zhangsaidong@zhangsaidongs-MacBook-Pro gitbook % gitbook serve
Live reload server started on port: 35729
Press CTRL+C to quit ...

info: 21 plugins are installed 
info: loading plugin "jsbin"... OK 
info: loading plugin "anchors"... OK 
info: loading plugin "video"... OK 
info: loading plugin "ga"... OK 
info: loading plugin "toggle-chapters"... OK 
info: loading plugin "editlink"... OK 
info: loading plugin "include-codeblock"... 
warn: ace features disabled (`gitbook-plugin-ace` required)
OK 
info: loading plugin "splitter"... OK 
info: loading plugin "github-buttons"... OK 
info: loading plugin "chart"... OK 
info: loading plugin "todo"... OK 
info: loading plugin "quiz"... OK 
info: loading plugin "include-highlight"... OK 
info: loading plugin "tonic"... 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 108 pages 
info: found 181 asset files 
warn: "options" property is deprecated, use config.get(key) instead 
info: >> generation finished with success in 12.0s ! 

Starting server ...
Serving book on http://localhost:4000
(node:84994) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
^C
zhangsaidong@zhangsaidongs-MacBook-Pro gitbook % cd /Users/zhangsaidong/Desktop/project/Self/BlogSource 
zhangsaidong@zhangsaidongs-MacBook-Pro BlogSource % git clone https://git.gitbook.com/chengweiv5/test.git
Cloning into 'test'...
Username for 'https://git.gitbook.com': ^C
zhangsaidong@zhangsaidongs-MacBook-Pro BlogSource % git clone https://git.gitbook.com/3440217568/rxswift.git
Cloning into 'rxswift'...
Username for 'https://git.gitbook.com': 34402217568       
Password for 'https://34402217568@git.gitbook.com': 
remote: Book not found
fatal: repository 'https://git.gitbook.com/3440217568/rxswift.git/' not found
zhangsaidong@zhangsaidongs-MacBook-Pro BlogSource % git clone https://git.gitbook.com/3440217568/RxSwift.git
Cloning into 'RxSwift'...
Username for 'https://git.gitbook.com': 3440217568@qq.com
Password for 'https://3440217568@qq.com@git.gitbook.com': 
remote: Book not found
fatal: repository 'https://git.gitbook.com/3440217568/RxSwift.git/' not found
zhangsaidong@zhangsaidongs-MacBook-Pro BlogSource % git clone https://github.com/adong666666/RxSwiftDoc.git
Cloning into 'RxSwiftDoc'...
warning: You appear to have cloned an empty repository.
zhangsaidong@zhangsaidongs-MacBook-Pro BlogSource % cd /Users/zhangsaidong/Desktop/project/Self/RxSwiftDoc 
zhangsaidong@zhangsaidongs-MacBook-Pro RxSwiftDoc % git add .
git %                                                                                                                                                              zhangsaidong@zhangsaidongs-MacBook-Pro RxSwiftDoc % git commit -m "fix"
[master (root-commit) 2719ead] fix
 291 files changed, 11003 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 CHANGELOG.md
 create mode 100644 LICENSE
 create mode 100644 README.md
 create mode 100644 SUMMARY.md
 create mode 100644 assets/Architecture/Architecture.png
 create mode 100644 assets/Architecture/MVVM/GitHubSignupViewController.png
 create mode 100644 assets/Architecture/MVVM/GithubSignupFull.gif
 create mode 100644 assets/Architecture/MVVM/GithubSignupViewModel.png
 create mode 100644 assets/Architecture/MVVM/MVC.png
 create mode 100644 assets/Architecture/MVVM/MVVM.png
 create mode 100644 assets/Architecture/MVVM/Service.png
 create mode 100644 assets/Architecture/MVVM/ViewModel.png
 create mode 100644 assets/Architecture/ReactorKit/BasicConcept.png
 create mode 100644 assets/Architecture/ReactorKit/GithubPaginatedSearchFull.gif
 create mode 100644 assets/Architecture/ReactorKit/Reactor.png
 create mode 100644 assets/Architecture/ReactorKit/ReactorKit.png
 create mode 100644 assets/Architecture/RxFeedback/All.png
 create mode 100644 assets/Architecture/RxFeedback/Counter.gif
 create mode 100644 assets/Architecture/RxFeedback/Event.png
 create mode 100644 assets/Architecture/RxFeedback/FeedbackLoop.png
 create mode 100644 assets/Architecture/RxFeedback/GithubPaginatedSearchFull.gif
 create mode 100644 assets/Architecture/RxFeedback/QueriedState.png
 create mode 100644 assets/Architecture/RxFeedback/RxFeedback.png
 create mode 100644 assets/Architecture/RxFeedback/State.png
 create mode 100644 assets/Disposable/Disposable.png
 create mode 100644 assets/Disposable/DisposeBag.png
 create mode 100644 assets/Disposable/TakeUntil.png
 create mode 100644 assets/FunctionalReactiveProgramming/Binding.png
 create mode 100644 assets/FunctionalReactiveProgramming/FunctionalProgramming.png
 create mode 100644 assets/FunctionalReactiveProgramming/FunctionalProgrammingBanner.png
 create mode 100644 assets/FunctionalReactiveProgramming/FunctionalReactiveProgramming.png
 create mode 100644 assets/FunctionalReactiveProgramming/TapArray.png
 create mode 100644 assets/FunctionalReactiveProgramming/TapObservable.png
 create mode 100644 assets/GithubSearch.gif
 create mode 100644 assets/MoreDemo/Calculator/All.png
 create mode 100644 assets/MoreDemo/Calculator/CalculatorCommand.png
 create mode 100644 assets/MoreDemo/Calculator/CalculatorFull.gif
 create mode 100644 assets/MoreDemo/Calculator/CalculatorState.png
 create mode 100644 assets/MoreDemo/Calculator/State.png
 create mode 100644 assets/MoreDemo/Calculator/StateObserver.png
 create mode 100644 assets/MoreDemo/ImagePicker/All.png
 create mode 100644 assets/MoreDemo/ImagePicker/ImagePickerFull.gif
 create mode 100644 assets/MoreDemo/ImagePicker/Operator.png
 create mode 100644 assets/MoreDemo/TableViewSectionedViewController/All.png
 create mode 100644 assets/MoreDemo/TableViewSectionedViewController/TableViewSectionedViewControllerFull.png
 create mode 100644 assets/MoreDemo/TableViewSectionedViewController/bindings.png
 create mode 100644 assets/Observable/Callback.png
 create mode 100644 assets/Observable/JSON.png
 create mode 100644 assets/Observable/Obervable.png
 create mode 100644 assets/Observable/OnePiece.png
 create mode 100644 assets/Observable/Temperature.png
 create mode 100644 assets/ObservableAndObserver/AsyncSubject.png
 create mode 100644 assets/ObservableAndObserver/AsyncSubject1.png
 create mode 100644 assets/ObservableAndObserver/BehaviorSubject.png
 create mode 100644 assets/ObservableAndObserver/BehaviorSubject1.png
 create mode 100644 assets/ObservableAndObserver/ObservableAndObserver.png
 create mode 100644 assets/ObservableAndObserver/PublishSubject.png
 create mode 100644 assets/ObservableAndObserver/PublishSubject1.png
 create mode 100644 assets/ObservableAndObserver/ReplaySubject.png
 create mode 100644 assets/Observer/Callback.png
 create mode 100644 assets/Observer/JSON.png
 create mode 100644 assets/Observer/Observer.png
 create mode 100644 assets/Observer/OnePiece.png
 create mode 100644 assets/Observer/Temperature.png
 create mode 100644 assets/Operator/Operator.png
 create mode 100644 assets/Operator/filter.png
 create mode 100644 assets/Operator/map.png
 create mode 100644 assets/Operator/zip.png
 create mode 100644 assets/README/FunctionalReactiveProgramming.png
 create mode 100644 assets/README/Introduction.png
 create mode 100644 assets/README/OperatorCreate.png
 create mode 100644 assets/README/RxSwiftEcosystem.png
 create mode 100644 assets/Recipes/Recipes.jpg
 create mode 100644 assets/Recipes/WhatsNewInRxSwift5/RxSwift4Bind.png
 create mode 100644 assets/Recipes/WhatsNewInRxSwift5/RxSwift4Do.png
 create mode 100644 assets/Recipes/WhatsNewInRxSwift5/RxSwift4Element.png
 create mode 100644 assets/Recipes/WhatsNewInRxSwift5/RxSwift4FilterNil.png
 create mode 100644 assets/Recipes/WhatsNewInRxSwift5/RxSwift4TimeInterval.png
 create mode 100644 assets/Recipes/WhatsNewInRxSwift5/RxSwift4ToArray.png
 create mode 100644 assets/Recipes/WhatsNewInRxSwift5/RxSwift4Variable.png
 create mode 100644 assets/Recipes/WhatsNewInRxSwift5/RxSwift5Bind.png
 create mode 100644 assets/Recipes/WhatsNewInRxSwift5/RxSwift5DispatchTimeInterval.png
 create mode 100644 assets/Recipes/WhatsNewInRxSwift5/RxSwift5Do.png
 create mode 100644 assets/Recipes/WhatsNewInRxSwift5/RxSwift5Element.png
 create mode 100644 assets/Recipes/WhatsNewInRxSwift5/RxSwift5FilterNil.png
 create mode 100644 assets/Recipes/WhatsNewInRxSwift5/RxSwift5ToArray.png
 create mode 100644 assets/Recipes/WhatsNewInRxSwift5/RxSwift5Variable.png
 create mode 100644 assets/Recipes/WhatsNewInRxSwift5/RxSwiftDpendencyGraph.png
 create mode 100644 assets/RxSwiftCore.png
 create mode 100644 assets/Rx_Logo_M.png
 create mode 100644 assets/Schedulers/Scheduler.png
 create mode 100644 assets/SimpleValid/All.png
 create mode 100644 assets/SimpleValid/LoginAction.png
 create mode 100644 assets/SimpleValid/LoginButtonValid.png
 create mode 100644 assets/SimpleValid/PasswordValid.png
 create mode 100644 assets/SimpleValid/SimpleValidationFull.gif
 create mode 100644 assets/SimpleValid/UsernameValid.png
 create mode 100644 assets/WhichOperator/Operators/amb.png
 create mode 100644 assets/WhichOperator/Operators/buffer.png
 create mode 100644 assets/WhichOperator/Operators/catchError.png
 create mode 100644 assets/WhichOperator/Operators/combineLatest.png
 create mode 100644 assets/WhichOperator/Operators/concat.png
 create mode 100644 assets/WhichOperator/Operators/concatMap.png
 create mode 100644 assets/WhichOperator/Operators/create.png
 create mode 100644 assets/WhichOperator/Operators/debounce.png
 create mode 100644 assets/WhichOperator/Operators/deferred.png
 create mode 100644 assets/WhichOperator/Operators/delay.png
 create mode 100644 assets/WhichOperator/Operators/delaySubscription.png
 create mode 100644 assets/WhichOperator/Operators/dematerialize.png
 create mode 100644 assets/WhichOperator/Operators/distinctUntilChanged.png
 create mode 100644 assets/WhichOperator/Operators/do.png
 create mode 100644 assets/WhichOperator/Operators/elementAt.png
 create mode 100644 assets/WhichOperator/Operators/empty.png
 create mode 100644 assets/WhichOperator/Operators/error.png
 create mode 100644 assets/WhichOperator/Operators/filter.png
 create mode 100644 assets/WhichOperator/Operators/flatMap.png
 create mode 100644 assets/WhichOperator/Operators/flatMapLatest.png
 create mode 100644 assets/WhichOperator/Operators/from.png
 create mode 100644 assets/WhichOperator/Operators/groupBy.png
 create mode 100644 assets/WhichOperator/Operators/ignoreElements.png
 create mode 100644 assets/WhichOperator/Operators/interval.png
 create mode 100644 assets/WhichOperator/Operators/just.png
 create mode 100644 assets/WhichOperator/Operators/map.png
 create mode 100644 assets/WhichOperator/Operators/materialize.png
 create mode 100644 assets/WhichOperator/Operators/merge.png
 create mode 100644 assets/WhichOperator/Operators/never.png
 create mode 100644 assets/WhichOperator/Operators/observeOn.png
 create mode 100644 assets/WhichOperator/Operators/observeOn1.png
 create mode 100644 assets/WhichOperator/Operators/publish.png
 create mode 100644 assets/WhichOperator/Operators/reduce.png
 create mode 100644 assets/WhichOperator/Operators/refCount.png
 create mode 100644 assets/WhichOperator/Operators/repeatElement.png
 create mode 100644 assets/WhichOperator/Operators/replay.png
 create mode 100644 assets/WhichOperator/Operators/retry.png
 create mode 100644 assets/WhichOperator/Operators/sample.png
 create mode 100644 assets/WhichOperator/Operators/scan.png
 create mode 100644 assets/WhichOperator/Operators/schedulers.png
 create mode 100644 assets/WhichOperator/Operators/single.png
 create mode 100644 assets/WhichOperator/Operators/skip.png
 create mode 100644 assets/WhichOperator/Operators/skipUntil.png
 create mode 100644 assets/WhichOperator/Operators/skipWhile.png
 create mode 100644 assets/WhichOperator/Operators/startWith.png
 create mode 100644 assets/WhichOperator/Operators/subscribeOn.png
 create mode 100644 assets/WhichOperator/Operators/take.png
 create mode 100644 assets/WhichOperator/Operators/takeLast.png
 create mode 100644 assets/WhichOperator/Operators/takeUntil.png
 create mode 100644 assets/WhichOperator/Operators/takeWhile.png
 create mode 100644 assets/WhichOperator/Operators/timeout.png
 create mode 100644 assets/WhichOperator/Operators/timer.png
 create mode 100644 assets/WhichOperator/Operators/timer1.png
 create mode 100644 assets/WhichOperator/Operators/using.png
 create mode 100644 assets/WhichOperator/Operators/window.png
 create mode 100644 assets/WhichOperator/Operators/withLatestFrom.png
 create mode 100644 assets/WhichOperator/Operators/zip.png
 create mode 100644 assets/WhichOperator/WhichOperator.png
 create mode 100644 assets/WhyRxSwiftAgain/ReactiveX.png
 create mode 100644 assets/WhyRxSwiftAgain/RxDataSources.gif
 create mode 100644 assets/WhyRxSwiftAgain/RxSwiftCommunity.png
 create mode 100644 book.json
 create mode 100644 content/about.md
 create mode 100644 content/architecture.md
 create mode 100644 content/architecture/mvvm.md
 create mode 100644 content/architecture/mvvm/github_signup.md
 create mode 100644 content/architecture/reactorkit.md
 create mode 100644 content/architecture/reactorkit/github_search.md
 create mode 100644 content/architecture/rxfeedback.md
 create mode 100644 content/architecture/rxfeedback/github_search.md
 create mode 100644 content/decision_tree.md
 create mode 100644 content/decision_tree/amb.md
 create mode 100644 content/decision_tree/buffer.md
 create mode 100644 content/decision_tree/catchError.md
 create mode 100644 content/decision_tree/combineLatest.md
 create mode 100644 content/decision_tree/concat.md
 create mode 100644 content/decision_tree/concatMap.md
 create mode 100644 content/decision_tree/connect.md
 create mode 100644 content/decision_tree/create.md
 create mode 100644 content/decision_tree/debounce.md
 create mode 100644 content/decision_tree/debug.md
 create mode 100644 content/decision_tree/deferred.md
 create mode 100644 content/decision_tree/delay.md
 create mode 100644 content/decision_tree/delaySubscription.md
 create mode 100644 content/decision_tree/dematerialize.md
 create mode 100644 content/decision_tree/distinctUntilChanged.md
 create mode 100644 content/decision_tree/do.md
 create mode 100644 content/decision_tree/elementAt.md
 create mode 100644 content/decision_tree/empty.md
 create mode 100644 content/decision_tree/error.md
 create mode 100644 content/decision_tree/filter.md
 create mode 100644 content/decision_tree/flatMap.md
 create mode 100644 content/decision_tree/flatMapLatest.md
 create mode 100644 content/decision_tree/from.md
 create mode 100644 content/decision_tree/groupBy.md
 create mode 100644 content/decision_tree/ignoreElements.md
 create mode 100644 content/decision_tree/interval.md
 create mode 100644 content/decision_tree/just.md
 create mode 100644 content/decision_tree/map.md
 create mode 100644 content/decision_tree/materialize.md
 create mode 100644 content/decision_tree/merge.md
 create mode 100644 content/decision_tree/never.md
 create mode 100644 content/decision_tree/observeOn.md
 create mode 100644 content/decision_tree/publish.md
 create mode 100644 content/decision_tree/reduce.md
 create mode 100644 content/decision_tree/refCount.md
 create mode 100644 content/decision_tree/repeatElement.md
 create mode 100644 content/decision_tree/replay.md
 create mode 100644 content/decision_tree/retry.md
 create mode 100644 content/decision_tree/sample.md
 create mode 100644 content/decision_tree/scan.md
 create mode 100644 content/decision_tree/shareReplay.md
 create mode 100644 content/decision_tree/single.md
 create mode 100644 content/decision_tree/skip.md
 create mode 100644 content/decision_tree/skipUntil.md
 create mode 100644 content/decision_tree/skipWhile.md
 create mode 100644 content/decision_tree/startWith.md
 create mode 100644 content/decision_tree/subscribeOn.md
 create mode 100644 content/decision_tree/take.md
 create mode 100644 content/decision_tree/takeLast.md
 create mode 100644 content/decision_tree/takeUntil.md
 create mode 100644 content/decision_tree/takeWhile.md
 create mode 100644 content/decision_tree/timeout.md
 create mode 100644 content/decision_tree/timer.md
 create mode 100644 content/decision_tree/using.md
 create mode 100644 content/decision_tree/window.md
 create mode 100644 content/decision_tree/withLatestFrom.md
 create mode 100644 content/decision_tree/zip.md
 create mode 100644 content/first_app.md
 create mode 100644 content/more_demo.md
 create mode 100644 content/more_demo/calculator.md
 create mode 100644 content/more_demo/image_picker.md
 create mode 100644 content/more_demo/tableView_sectioned_viewController.md
 create mode 100644 content/recipes.md
 create mode 100644 content/recipes/pure_function.md
 create mode 100644 content/recipes/rxrelay.md
 create mode 100644 content/recipes/share_side_effects.md
 create mode 100644 content/recipes/side_effects.md
 create mode 100644 content/recipes/whats_new_in_rxswift_5.md
 create mode 100644 content/resource.md
 create mode 100644 content/rxswift_core.md
 create mode 100644 content/rxswift_core/disposable.md
 create mode 100644 content/rxswift_core/error_handling.md
 create mode 100644 content/rxswift_core/observable.md
 create mode 100644 content/rxswift_core/observable/completable.md
 create mode 100644 content/rxswift_core/observable/control_event.md
 create mode 100644 content/rxswift_core/observable/driver.md
 create mode 100644 content/rxswift_core/observable/maybe.md
 create mode 100644 content/rxswift_core/observable/signal.md
 create mode 100644 content/rxswift_core/observable/single.md
 create mode 100644 content/rxswift_core/observable_and_observer.md
 create mode 100644 content/rxswift_core/observable_and_observer/async_subject.md
 create mode 100644 content/rxswift_core/observable_and_observer/behavior_subject.md
 create mode 100644 content/rxswift_core/observable_and_observer/control_property.md
 create mode 100644 content/rxswift_core/observable_and_observer/publish_subject.md
 create mode 100644 content/rxswift_core/observable_and_observer/replay_subject.md
 create mode 100644 content/rxswift_core/observable_and_observer/variable.md
 create mode 100644 content/rxswift_core/observer.md
 create mode 100644 content/rxswift_core/observer/any_observer.md
 create mode 100644 content/rxswift_core/observer/binder.md
 create mode 100644 content/rxswift_core/operator.md
 create mode 100644 content/rxswift_core/schedulers.md
 create mode 100644 content/rxswift_ecosystem.md
 create mode 100644 content/think_reactive.md
 create mode 100644 content/think_reactive/data_binding.md
 create mode 100644 content/think_reactive/functional_reactive_progaramming.md
 create mode 100644 content/think_reactive/funtional_programming.md
 create mode 100644 content/why_rxswift.md
 create mode 100644 gitbook/fonts/fontawesome/FontAwesome.otf
 create mode 100644 gitbook/fonts/fontawesome/fontawesome-webfont.eot
 create mode 100644 gitbook/fonts/fontawesome/fontawesome-webfont.svg
 create mode 100644 gitbook/fonts/fontawesome/fontawesome-webfont.ttf
 create mode 100644 gitbook/fonts/fontawesome/fontawesome-webfont.woff
 create mode 100644 gitbook/fonts/fontawesome/fontawesome-webfont.woff2
 create mode 100644 gitbook/gitbook-plugin-fontsettings/fontsettings.js
 create mode 100644 gitbook/gitbook-plugin-fontsettings/website.css
 create mode 100644 gitbook/gitbook-plugin-highlight/ebook.css
 create mode 100644 gitbook/gitbook-plugin-highlight/website.css
 create mode 100644 gitbook/gitbook-plugin-lunr/lunr.min.js
 create mode 100644 gitbook/gitbook-plugin-lunr/search-lunr.js
 create mode 100644 gitbook/gitbook-plugin-search/lunr.min.js
 create mode 100644 gitbook/gitbook-plugin-search/search-engine.js
 create mode 100644 gitbook/gitbook-plugin-search/search.css
 create mode 100644 gitbook/gitbook-plugin-search/search.js
 create mode 100644 gitbook/gitbook-plugin-sharing/buttons.js
 create mode 100644 gitbook/gitbook.js
 create mode 100644 gitbook/images/apple-touch-icon-precomposed-152.png
 create mode 100644 gitbook/images/favicon.ico
 create mode 100644 gitbook/style.css
 create mode 100644 gitbook/theme.js
 create mode 100644 introduction.md
 create mode 100755 publish_gitbook.sh
 create mode 100644 search_index.json
zhangsaidong@zhangsaidongs-MacBook-Pro RxSwiftDoc % git ppush
git: 'ppush' is not a git command. See 'git --help'.

The most similar command is
    push
zhangsaidong@zhangsaidongs-MacBook-Pro RxSwiftDoc % git push 
Enumerating objects: 336, done.
Counting objects: 100% (336/336), done.
Delta compression using up to 16 threads
Compressing objects: 100% (330/330), done.
Writing objects: 100% (336/336), 15.77 MiB | 116.00 KiB/s, done.
Total 336 (delta 5), reused 0 (delta 0)
remote: Resolving deltas: 100% (5/5), done.
To https://github.com/adong666666/RxSwiftDoc.git
 * [new branch]      master -> master
zhangsaidong@zhangsaidongs-MacBook-Pro RxSwiftDoc % lss
zsh: command not found: lss
zhangsaidong@zhangsaidongs-MacBook-Pro RxSwiftDoc % ls
CHANGELOG.md        SUMMARY.md        book.json        introduction.md        search_index.json
LICENSE            _book            content            node_modules
README.md        assets            gitbook            publish_gitbook.sh

文章作者: 张赛东
文章链接: https://zsd.name
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 张赛东 !
评论
  目录