#注意:此文档中文版正在翻译中。认领翻译请到wiki页面查看现在翻译状况并修改。
Promises小书电子版
在这里http://azu.github.io/promises-book/ 可以在线阅读。
也可以从这里http://azu.github.io/promises-book/javascript-promise-book.pdf 下载PDF版。
你还可以从这里https://gumroad.com/l/javascript-promise 免费下载本书的附录,也可以自己设定价格购买,本附录记录了本书诞生的经纬。
如果你想捐赠的话,可以到这里。
本书采用Asciidoc格式编写。
可以使用Asciidoctor构建本书电子版。
(sudo) gem install asciidoctor coderay
(sudo) npm install -g gulp
npm install
rbenv rehash # 如果你是使用rbenv的话。
make html
open index.html
本书字体使用了VL Gothic Font Family。 该字体可以从VL Gothic Font Family下载,并需要进行安装。
所需软件
git submodule update --init
make pdf
open javascript-promise-book.pdf
由于本书还不是特别完善,因此质量会很一般。 HTML版在智能机等小画面尺寸的设备上也能很好的展现,所以推荐大家使用HTML方式阅读。
gem install specific_install
gem specific_install -l https://github.com/opendevise/asciidoctor-epub3
asciidoctor-epub3 -D output index.adoc
欢迎各种Pull Request和Issue。
在Pull Request的时候请先参考 CONTRIBUTING.md 。
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
随书代码以MIT许可证发布。
图书内容则遵循Creative Commons Attribution-NonCommercial许可证。