Skip to content

honnkyou/promises-book

 
 

Repository files navigation

#注意:此文档中文版正在翻译中。认领翻译请到wiki页面查看现在翻译状况并修改。

Promises Book Build Status Gitter chat

Promises小书电子版

在这里http://azu.github.io/promises-book/ 可以在线阅读。

也可以从这里http://azu.github.io/promises-book/javascript-promise-book.pdf 下载PDF版。

你还可以从这里https://gumroad.com/l/javascript-promise 免费下载本书的附录,也可以自己设定价格购买,本附录记录了本书诞生的经纬。

如果你想捐赠的话,可以到这里

Installation

本书采用Asciidoc格式编写。

可以使用Asciidoctor构建本书电子版。

编译为HTML

(sudo) gem install asciidoctor coderay
(sudo) npm install -g gulp
npm install
rbenv rehash # 如果你是使用rbenv的话。
make html
open index.html

编译为PDF

本书字体使用了VL Gothic Font Family。 该字体可以从VL Gothic Font Family下载,并需要进行安装。

所需软件

git submodule update --init
make pdf
open javascript-promise-book.pdf

编译为Epub

由于本书还不是特别完善,因此质量会很一般。 HTML版在智能机等小画面尺寸的设备上也能很好的展现,所以推荐大家使用HTML方式阅读。

gem install specific_install
gem specific_install -l https://github.com/opendevise/asciidoctor-epub3
asciidoctor-epub3 -D output index.adoc

Contributing

欢迎各种Pull Request和Issue。

也可以到这里Gitter chat 留言。

在Pull Request的时候请先参考 CONTRIBUTING.md

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

随书代码以MIT许可证发布。

图书内容则遵循Creative Commons Attribution-NonCommercial许可证。

Creative Commons License

Packages

No packages published

Languages

  • JavaScript 70.5%
  • CSS 27.6%
  • Shell 1.9%