kaylaqian / promises-book

JavaScript Promise迷你书

Home Page:http://liubin.github.io/promises-book/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Promises Book Build Status Gitter chat

Promises迷你书电子版(中文版)

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

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

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

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

关于作者

关注浏览器、JavaScript先关的最新技术。

擅长将将目的作为手段,本书也是因此而成。

管理着个人主页 Web ScratchJSer.info

关于译者

  • liubin

    • 除去kakau和honnkyou的其余部分的翻译、整体校对,以及源代码,工具部分的翻译
  • kaku

    • 1.1. Promise是什么、1.2. Promise 简介、1.3. 编写Promise代码
  • honnkyou

    • 3.1. 基本测试

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(中文版)

执行命令(OS X下):

make cn-pdf

如果你想修改字体,可以直接替换_tools/build_cn_pdf.sh里的STKaiti为你想要的字体。

注意:,如果出现java.lang.OutOfMemoryError错误的话,设置一下JVM参数再进行make即可:

export JAVA_OPTS="-Xms512m -Xmx512m"

编译为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

About

JavaScript Promise迷你书

http://liubin.github.io/promises-book/

License:MIT License


Languages

Language:JavaScript 97.4%Language:CSS 1.7%Language:Shell 0.5%Language:Makefile 0.2%Language:HTML 0.2%