File tree Expand file tree Collapse file tree 6 files changed +14
-14
lines changed Expand file tree Collapse file tree 6 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
- = Rails Guide 中文翻译
1
+ # Rails Guide 中文翻译
2
2
3
- == 构建(基于 Docker)
3
+ ## 构建(基于 Docker)
4
4
5
5
为了管理依赖,建议使用 Docker。
6
6
7
- === 安装 Docker
7
+ ### 安装 Docker
8
8
9
9
https://www.docker.com/
10
10
11
- === 构建镜像
11
+ ### 构建镜像
12
12
13
13
``` bash
14
14
$ docker build -t rails-guides .
15
15
```
16
16
17
- === 构建
17
+ ### 构建
18
18
19
19
``` bash
20
20
$ docker run -it -v $( pwd) :/app rails-guides rake guides:generate:html
21
21
$ docker run -it -v $( pwd) :/app rails-guides rake guides:generate:kindle
22
22
```
23
23
24
- == 发布
24
+ ## 发布
25
25
26
26
另外 clone 一份 repo,checkout 到 ` gh-pages ` 分支,将 HTML 版内容拷贝进去,commit,push。
27
27
Original file line number Diff line number Diff line change 17
17
< p >
18
18
早前版本的指南:
19
19
< 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 > ) ,
21
21
< a href ="http://guides.rubyonrails.org/v4.0/ "> Rails 4.0</ a > ,
22
22
< a href ="http://guides.rubyonrails.org/v3.2/ "> Rails 3.2</ a > ,和
23
23
< a href ="http://guides.rubyonrails.org/v2.3/ "> Rails 2.3</ a > 。
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Ruby on Rails Guides
10
10
<div id ="subCol ">
11
11
< dl >
12
12
< 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 >
14
14
< dd class ="kindle "> 如果需要 Epub、PDF 格式,可以购买<%= link_to '安道维护的电子书' , 'https://rails.guide/' %> 。</ dd >
15
15
< dd class ="work-in-progress "> 标记了这个图标的指南还在编写中,不会出现在指南索引。这些指南可能包含不完整的信息甚至错误。您可以帮忙检查并且提交评论和修正。</ dd >
16
16
</ dl >
Original file line number Diff line number Diff line change 5
5
< meta name ="cover " content ="cover " />
6
6
< dc-metadata xmlns:dc ="http://purl.org/dc/elements/1.1/ ">
7
7
8
- < dc:title > Ruby on Rails Guides (<%= @version %> )</ dc:title >
8
+ < dc:title > Ruby on Rails 指南 (<%= @version %> )</ dc:title >
9
9
10
- < dc:language > en-us </ dc:language >
10
+ < dc:language > zh-CN </ dc:language >
11
11
< dc:creator > Ruby on Rails</ dc:creator >
12
12
< dc:publisher > Ruby on Rails</ dc:publisher >
13
13
< dc:subject > Reference</ dc:subject >
14
14
< dc:date > <%= Time . now . strftime ( '%Y-%m-%d' ) %> </ dc:date >
15
15
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 >
17
17
</ dc-metadata >
18
18
< x-metadata >
19
19
< output content-type ="application/x-mobipocket-subscription-magazine " encoding ="utf-8 "/>
Original file line number Diff line number Diff line change 1
1
<% content_for :page_title do %>
2
- Ruby on Rails Guides
2
+ Ruby on Rails 指南
3
3
<% end %>
4
4
5
5
<h1 > Table of Contents</ h1 >
@@ -14,7 +14,7 @@ Ruby on Rails Guides
14
14
<% if document [ 'work_in_progress' ] %> (WIP)<% end %>
15
15
</ li >
16
16
<% end %>
17
- </ ul >
17
+ </ ul >
18
18
<% end %>
19
19
< hr />
20
20
< ul >
Original file line number Diff line number Diff line change 9
9
< meta name ="dtb:totalPageCount " content ="0 "/>
10
10
< meta name ="dtb:maxPageNumber " content ="0 "/>
11
11
</ head >
12
- < docTitle > < text > Ruby on Rails Guides </ text > </ docTitle >
12
+ < docTitle > < text > Ruby on Rails 指南 </ text > </ docTitle >
13
13
< docAuthor > < text > docrails</ text > </ docAuthor >
14
14
< navMap >
15
15
< navPoint playOrder ="0 " class ="periodical " id ="periodical ">
You can’t perform that action at this time.
0 commit comments