Ruby Hacking Guide 中文翻译

阅读该翻译文档 备注: 原本是自己新建的版本库,初次建立,没有经验,README都是参考的英文版的RHG翻译的。需要注意的是,Githu生成静态页面的分支是gh-pages,为了避免麻烦,所有修改都在gh-pages分支上,master废弃不用。

本地运行

  1. $ git clone https://github.com/ruby-hacking-guide/ruby-hacking-guide.github.com
  2. $ gem install jekyll jemoji jekyll-sitemap
  3. $ gem install RedCloth
  4. $ jekyll serve -w # this compiles files and starts a server on localhost:4000.

For Bundler users

  1. $ git clone https://github.com/ruby-hacking-guide/ruby-hacking-guide.github.com
  2. $ bundle install
  3. $ jekyll serve -w # this compiles files and starts a server on localhost:4000.

Jekyll usage

英文版的EPUB格式

Thanks to @avsej, we can read this book in EPUB.

To generate an EPUB file, you need to install eeepub additionally.

  1. $ gem install rubyzip -v 0.9.9
  2. $ gem install eeepub
  3. $ ruby script/publish

You can convert a generated EPUB file into other formats by using Calibre.

The generated files in various formats are also available:

About the version of ruby explained

The version of ruby used is ruby (1.7.3 2002-09-12).

It’s almost a year before the release of Ruby 1.8.0, so things explained in this book are basically the same in Ruby 1.8.

The details about this version are written in the Introduction

You can download it from the official support site of the book.

It’s also available from this Organization’s repo at

License

Copyright (c) 2002-2004 Minero Aoki, All rights reserved.

该翻译使用知识共享署名-非商业使用条约

想要翻译成其他语言,请联系原作者Minero Aoki aamine@loveruby.net