Coder Social home page Coder Social logo

delktsai / promises-book Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liubin/promises-book

0.0 2.0 0.0 14.26 MB

JavaScript Promise迷你书

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

License: MIT License

JavaScript 97.45% HTML 0.18% Makefile 0.24% Shell 0.45% CSS 1.68%

promises-book's Introduction

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

promises-book's People

Contributors

azu avatar genie88 avatar gunyarakun avatar honnkyou avatar kaku87 avatar liubin avatar stonexer avatar syoichi avatar tricknotes avatar vzvu3k6k avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.