Skip to content

Commit b8ab7ed

Browse files
authored
Merge pull request #75 from chloerei/kindle
Kindle
2 parents 6b4ffa7 + 6e91275 commit b8ab7ed

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
= Rails Guide 中文翻译
1+
# Rails Guide 中文翻译
22

3-
== 构建(基于 Docker)
3+
## 构建(基于 Docker)
44

55
为了管理依赖,建议使用 Docker。
66

7-
=== 安装 Docker
7+
### 安装 Docker
88

99
https://www.docker.com/
1010

11-
=== 构建镜像
11+
### 构建镜像
1212

1313
```bash
1414
$ docker build -t rails-guides .
1515
```
1616

17-
=== 构建
17+
### 构建
1818

1919
```bash
2020
$ docker run -it -v $(pwd):/app rails-guides rake guides:generate:html
2121
$ docker run -it -v $(pwd):/app rails-guides rake guides:generate:kindle
2222
```
2323

24-
== 发布
24+
## 发布
2525

2626
另外 clone 一份 repo,checkout 到 `gh-pages` 分支,将 HTML 版内容拷贝进去,commit,push。
2727

source/zh-CN/_welcome.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<p>
1818
早前版本的指南:
1919
<a href="http://guides.rubyonrails.org/v4.2/">Rails 4.2</a>
20-
<a href="http://guides.rubyonrails.org/v4.1/">Rails 4.1</a>
20+
<a href="http://guides.rubyonrails.org/v4.1/">Rails 4.1</a><a href="v4.1/">中文</a>
2121
<a href="http://guides.rubyonrails.org/v4.0/">Rails 4.0</a>
2222
<a href="http://guides.rubyonrails.org/v3.2/">Rails 3.2</a>,和
2323
<a href="http://guides.rubyonrails.org/v2.3/">Rails 2.3</a>

source/zh-CN/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Ruby on Rails Guides
1010
<div id="subCol">
1111
<dl>
1212
<dt></dt>
13-
<dd class="kindle">Rails 指南同时提供 <%= link_to 'Kindle', @mobi %> 版。</dd>
13+
<dd class="kindle">Rails 指南同时提供 <%= link_to 'Kindle', 'https://github.com/ruby-china/rails-guides/releases' %> 版。</dd>
1414
<dd class="kindle">如果需要 Epub、PDF 格式,可以购买<%= link_to '安道维护的电子书', 'https://rails.guide/' %></dd>
1515
<dd class="work-in-progress">标记了这个图标的指南还在编写中,不会出现在指南索引。这些指南可能包含不完整的信息甚至错误。您可以帮忙检查并且提交评论和修正。</dd>
1616
</dl>

source/zh-CN/kindle/rails_guides.opf.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<meta name="cover" content="cover" />
66
<dc-metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
77

8-
<dc:title>Ruby on Rails Guides (<%= @version %>)</dc:title>
8+
<dc:title>Ruby on Rails 指南 (<%= @version %>)</dc:title>
99

10-
<dc:language>en-us</dc:language>
10+
<dc:language>zh-CN</dc:language>
1111
<dc:creator>Ruby on Rails</dc:creator>
1212
<dc:publisher>Ruby on Rails</dc:publisher>
1313
<dc:subject>Reference</dc:subject>
1414
<dc:date><%= Time.now.strftime('%Y-%m-%d') %></dc:date>
1515

16-
<dc:description>These guides are designed to make you immediately productive with Rails, and to help you understand how all of the pieces fit together.</dc:description>
16+
<dc:description>这份指南旨在使您立即获得 Rails 的生产力,并帮助您了解所有组件如何组合在一起。</dc:description>
1717
</dc-metadata>
1818
<x-metadata>
1919
<output content-type="application/x-mobipocket-subscription-magazine" encoding="utf-8"/>

source/zh-CN/kindle/toc.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<% content_for :page_title do %>
2-
Ruby on Rails Guides
2+
Ruby on Rails 指南
33
<% end %>
44

55
<h1>Table of Contents</h1>
@@ -14,7 +14,7 @@ Ruby on Rails Guides
1414
<% if document['work_in_progress']%>(WIP)<% end %>
1515
</li>
1616
<% end %>
17-
</ul>
17+
</ul>
1818
<% end %>
1919
<hr />
2020
<ul>

source/zh-CN/kindle/toc.ncx.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<meta name="dtb:totalPageCount" content="0"/>
1010
<meta name="dtb:maxPageNumber" content="0"/>
1111
</head>
12-
<docTitle><text>Ruby on Rails Guides</text></docTitle>
12+
<docTitle><text>Ruby on Rails 指南</text></docTitle>
1313
<docAuthor><text>docrails</text></docAuthor>
1414
<navMap>
1515
<navPoint playOrder="0" class="periodical" id="periodical">

0 commit comments

Comments
 (0)