Skip to content

Commit 315b3dc

Browse files
committed
transfer infromation and design the font style
1 parent cc1cae5 commit 315b3dc

11 files changed

+86
-99
lines changed

Gemfile

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
source "https://rubygems.org"
2-
ruby RUBY_VERSION
3-
4-
gem "jekyll", "3.6.2"
52

63
# to use GitHub Pages
74
# gem "github-pages", group: :jekyll_plugins
8-
95
# If you have any plugins, put them here!
106
group :jekyll_plugins do
7+
gem "jekyll", "3.6.2"
118
gem "jekyll-feed"
129
gem "jekyll-sitemap"
1310
gem "jekyll-redirect-from"
1411
gem "jekyll-seo-tag"
1512
end
1613

1714
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
18-
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
15+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

+21-24
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.5.2)
4+
addressable (2.6.0)
55
public_suffix (>= 2.0.2, < 4.0)
66
colorator (1.1.0)
7-
ffi (1.9.25)
8-
ffi (1.9.25-x64-mingw32)
7+
concurrent-ruby (1.1.4)
8+
ffi (1.10.0)
9+
ffi (1.10.0-x64-mingw32)
910
forwardable-extended (2.6.0)
10-
jekyll (3.6.3)
11+
jekyll (3.6.2)
1112
addressable (~> 2.4)
1213
colorator (~> 1.0)
1314
jekyll-sass-converter (~> 1.0)
@@ -18,59 +19,55 @@ GEM
1819
pathutil (~> 0.9)
1920
rouge (>= 1.7, < 3)
2021
safe_yaml (~> 1.0)
21-
jekyll-feed (0.10.0)
22-
jekyll (~> 3.6.3)
23-
jekyll-redirect-from (0.13.0)
22+
jekyll-feed (0.11.0)
2423
jekyll (~> 3.3)
24+
jekyll-redirect-from (0.15.0)
25+
jekyll (>= 3.3, < 5.0)
2526
jekyll-sass-converter (1.5.2)
2627
sass (~> 3.4)
27-
jekyll-seo-tag (2.5.0)
28+
jekyll-seo-tag (2.6.0)
2829
jekyll (~> 3.3)
2930
jekyll-sitemap (1.2.0)
3031
jekyll (~> 3.3)
3132
jekyll-watch (1.5.1)
3233
listen (~> 3.0)
3334
kramdown (1.17.0)
34-
liquid (4.0.0)
35+
liquid (4.0.3)
3536
listen (3.1.5)
3637
rb-fsevent (~> 0.9, >= 0.9.4)
3738
rb-inotify (~> 0.9, >= 0.9.7)
3839
ruby_dep (~> 1.2)
3940
mercenary (0.3.6)
40-
pathutil (0.16.1)
41+
pathutil (0.16.2)
4142
forwardable-extended (~> 2.6)
42-
public_suffix (3.0.2)
43+
public_suffix (3.0.3)
4344
rb-fsevent (0.10.3)
44-
rb-inotify (0.9.10)
45-
ffi (>= 0.5.0, < 2)
45+
rb-inotify (0.10.0)
46+
ffi (~> 1.0)
4647
rouge (2.2.1)
4748
ruby_dep (1.5.0)
48-
safe_yaml (1.0.4)
49-
sass (3.5.6)
49+
safe_yaml (1.0.5)
50+
sass (3.7.4)
5051
sass-listen (~> 4.0.0)
5152
sass-listen (4.0.0)
5253
rb-fsevent (~> 0.9, >= 0.9.4)
5354
rb-inotify (~> 0.9, >= 0.9.7)
54-
thread_safe (0.3.6)
55-
tzinfo (1.2.5)
56-
thread_safe (~> 0.1)
57-
tzinfo-data (1.2018.5)
55+
tzinfo (2.0.0)
56+
concurrent-ruby (~> 1.0)
57+
tzinfo-data (1.2018.9)
5858
tzinfo (>= 1.0.0)
5959

6060
PLATFORMS
6161
ruby
6262
x64-mingw32
6363

6464
DEPENDENCIES
65-
jekyll (= 3.6.3)
65+
jekyll (= 3.6.2)
6666
jekyll-feed
6767
jekyll-redirect-from
6868
jekyll-seo-tag
6969
jekyll-sitemap
7070
tzinfo-data
7171

72-
RUBY VERSION
73-
ruby 2.4.4p296
74-
7572
BUNDLED WITH
76-
1.16.2
73+
2.0.1

MLY-zh-cn.pdf

-5 MB
Binary file not shown.

README.md

+16-24
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,31 @@
1-
# MLY 中文版官方授权翻译仓库
1+
# Machine Learning Yearning 中文版
22

3-
[访问此处](https://deeplearning-ai.github.io/machine-learning-yearning-cn/) 开始在线阅读,希望这本书对你们有所帮助!
3+
[访问此处](https://deeplearning-ai.github.io/machine-learning-yearning-cn/) 开始在线阅读《机器学习训练秘籍》样稿,希望这本书对你们有所帮助!当前样稿仅供内容预览,非最终版本(历史版本可以在 [release](https://github.com/deeplearning-ai/machine-learning-yearning-cn/releases) 中找到)。
44

5-
本项目一切权利归属于 deeplearning.ai ,[英文官网](https://www.deeplearning.ai/) 已经更新。
5+
## 合作改善翻译质量
66

7-
[PDF 版本](./MLY-zh-cn.pdf) 仅供内容预览,非最终版本(目前与英文样稿保持排版格式一致,中文字体显示不够优雅,后面可能会采用 LaTeX 排版优化显示效果),如出现内容勘误,默认每周末统一更新一次 PDF 内容,其它情况下不会对文件进行更新。
7+
译者水平有限,如有翻译不当之处,恳请读者帮助斧正,途径为:
88

9-
译者水平有限,如有翻译不当之处,恳请读者指正,联系邮箱: [acdoge.cao@gmail.com](mailto:acdoge.cao@gmail.com)
9+
1. 在项目的 Issues 区创建新的讨论内容;(推荐)
10+
2. 在网页点击 “改进当前页面”,修改后发起 Pull Request;
11+
3. [发送邮件](mailto:xiaowei@deeplearning.ai) 进行反馈,主题带有 “MLY 翻译”。
1012

11-
## 目前需要解决的问题
13+
注:所有图片放在 `img` 路径下,本地无法预览,在文稿中的插入方式为:
14+
```
15+
<img src="{{"pic_name.jpg " | prepend: site.imgurl }}">
16+
```
1217

13-
- [ ] 专业术语规范与检查
14-
- [ ] 语言流畅性优化 (亟需改善)
18+
## 相关版权声明
1519

16-
译稿路径:`_docs` 文件夹下,按照英文小节分类,可在网页文章底部点击 “改进此页面” 快速跳转。
20+
本项目遵循 “署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)” 协议。这是一份普通人可以理解的[许可协议](https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode.zh-Hans)概要 (但不是替代) 。 [免责声明](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh#).
1721

18-
注:插入图片请使用如下语法(所有图片放在 `img` 路径下),本地无法预览。
19-
20-
`<img src="{{"pic_name.jpg " | prepend: site.imgurl }}">`
21-
22-
## 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
23-
24-
这是一份普通人可以理解的[许可协议](https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode.zh-Hans)概要 (但不是替代) 。 [免责声明](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh#).
25-
26-
### 您可以自由地:
22+
您可以自由地:
2723

2824
- **共享** — 在任何媒介以任何形式复制、发行本作品
29-
3025
- **演绎** — 修改、转换或以本作品为基础进行创作
3126

32-
只要你遵守许可协议条款,许可人就无法收回你的这些权利。
33-
34-
------
35-
36-
### 惟须遵守下列条件:
27+
只要你遵守许可协议条款,许可人就无法收回你的这些权利。
28+
惟须遵守下列条件:
3729

3830
- **署名** — 您必须给出[适当的署名](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh#),提供指向本许可协议的链接,同时[标明是否(对原始作品)作了修改](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh#)。您可以用任何合理的方式来署名,但是不得以任何方式暗示许可人为您或您的使用背书。
3931
- **非商业性使用** — 您不得将本作品用于[商业目的](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh#)

_docs/index.md

+31-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,34 @@ permalink: /docs/home/
44
redirect_from: /docs/index.html
55
---
66

7-
机器学习训练秘籍属于 deeplearning.ai 项目,译者水平有限,如有翻译不当之处,恳请读者指正,联系邮箱: [acdoge.cao@gmail.com](mailto:acdoge.cao@gmail.com)
7+
当前样稿仅供内容预览,非最终版本(历史版本可以在 [release](https://github.com/deeplearning-ai/machine-learning-yearning-cn/releases) 中找到)。
8+
9+
## 合作改善翻译质量
10+
11+
译者水平有限,如有翻译不当之处,恳请读者帮助斧正,途径为:
12+
13+
1. 在项目的 Issues 区创建新的讨论内容;(推荐)
14+
2. 在网页点击 “改进当前页面”,修改后发起 Pull Request;
15+
3. [发送邮件](mailto:xiaowei@deeplearning.ai) 进行反馈,主题带有 “MLY 翻译”。
16+
17+
注:所有图片放在 `img` 路径下,本地无法预览,在文稿中的插入方式为:
18+
```
19+
<img src="{{"pic_name.jpg " | prepend: site.imgurl }}">
20+
```
21+
22+
## 相关版权声明
23+
24+
本项目遵循 “署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)” 协议。这是一份普通人可以理解的[许可协议](https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode.zh-Hans)概要 (但不是替代) 。[免责声明](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh#).
25+
26+
您可以自由地:
27+
28+
- **共享** — 在任何媒介以任何形式复制、发行本作品
29+
- **演绎** — 修改、转换或以本作品为基础进行创作
30+
31+
只要你遵守许可协议条款,许可人就无法收回你的这些权利。
32+
惟须遵守下列条件:
33+
34+
- **署名** — 您必须给出[适当的署名](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh#),提供指向本许可协议的链接,同时[标明是否(对原始作品)作了修改](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh#)。您可以用任何合理的方式来署名,但是不得以任何方式暗示许可人为您或您的使用背书。
35+
- **非商业性使用** — 您不得将本作品用于[商业目的](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh#)
36+
- **相同方式共享** — 如果您再混合、转换或者基于本作品进行创作,您必须基于[与原先许可协议相同的许可协议](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh#) 分发您贡献的作品。
37+
- **没有附加限制** — 您不得适用法律术语或者 [技术措施](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh#) 从而限制其他人做许可协议允许的事情。

_includes/footer.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<footer class="footer">
22
<div class="container">
33

4-
<p class="text-center"><a href="https://www.deeplearning.ai/" >deeplearning.ai</a> | <a href="mailto:acdoge.cao@gmail.com">Accpeted Doge</a>
5-
<br>{{ site.title }} {{ site.time | date: '%Y' }}</p>
4+
<p class="text-center">&copy; <a href="https://www.deeplearning.ai/">deeplearning.ai</a>
5+
{{ site.time | date: '%Y' }}</p>
66
<!-- <p class="text-muted">Place sticky footer content here.</p> -->
77
</div>
88
</footer>

_includes/section_nav.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,28 @@
77
{% if forloop.first %}
88
<li class="previous disabled">
99
<a>
10-
<span aria-hidden="true">&larr;</span> Previous
10+
<span aria-hidden="true">&larr;</span> 上一页
1111
</a>
1212
</li>
1313
{% else %} {% assign previous = forloop.index0 | minus: 1 %} {% assign previous_page = docs[previous] | prepend:"/docs/"
1414
| append:"/" %}
1515
<li class="previous">
1616
<a href="{{ previous_page | prepend: site.baseurl }}">
17-
<span aria-hidden="true">&larr;</span> Previous
17+
<span aria-hidden="true">&larr;</span> 上一页
1818
</a>
1919
</li>
2020
{% endif %} {% if forloop.last %}
2121
<li class="next disabled">
2222
<a>
23-
Next
23+
下一页
2424
<span aria-hidden="true">&rarr;</span>
2525
</a>
2626
</li>
2727
{% else %} {% assign next = forloop.index0 | plus: 1 %} {% assign next_page = docs[next] | prepend:"/docs/" | append:"/"
2828
%}
2929
<li class="next">
3030
<a href="{{ next_page | prepend: site.baseurl }}">
31-
Next
31+
下一页
3232
<span aria-hidden="true">&rarr;</span>
3333
</a>
3434
</li>

_includes/topnav.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
</div>
1414
<div id="navbar" class="collapse navbar-collapse">
1515
<ul class="nav navbar-nav">
16-
<li {% if page.sectionid=='docs' %} class="active" {% endif %}><a href="{{ "/docs/home/" | prepend: site.baseurl }}">文档</a></li>
17-
<li {% if page.sectionid=='blog' %} class="active" {% endif %}><a href="{{ site.posts.first.url | prepend: site.baseurl }}">博客</a></li>
16+
<li {% if page.sectionid=='docs' %} class="active" {% endif %}><a href="{{ "/docs/home/" | prepend: site.baseurl }}">样稿</a></li>
1817
<li><a href="https://www.deeplearning.ai/">deeplearning.ai</a></li>
1918
</ul>
2019
<div class="navbar-right">

_posts/2018-04-24-copyright.md

-21
This file was deleted.

_posts/2018-06-20-help.md

-7
This file was deleted.

_sass/bootswatch/paper/_variables.scss

+9-9
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,22 @@ $link-hover-decoration: underline !default;
4343
//
4444
//## Font, line-height, and color for body text, headings, and more.
4545

46-
$font-family-sans-serif: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif !default;
46+
$font-family-sans-serif: Avenir, "Segoe UI", "Hiragino Sans GB", STHeiti, "Microsoft Yahei", "Microsoft Sans Serif", "WenQuanYi Micro Hei", sans-serif !default;
4747
$font-family-serif: Georgia, "Times New Roman", Times, serif !default;
4848
//** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
4949
$font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace !default;
5050
$font-family-base: $font-family-sans-serif !default;
5151

52-
$font-size-base: 13px !default;
52+
$font-size-base: 14px !default;
5353
$font-size-large: ceil(($font-size-base * 1.25)) !default; // ~18px
5454
$font-size-small: ceil(($font-size-base * 0.85)) !default; // ~12px
5555

56-
$font-size-h1: 56px !default;
57-
$font-size-h2: 45px !default;
58-
$font-size-h3: 34px !default;
59-
$font-size-h4: 24px !default;
60-
$font-size-h5: 20px !default;
61-
$font-size-h6: 14px !default;
56+
$font-size-h1: 25px !default;
57+
$font-size-h2: 23px !default;
58+
$font-size-h3: 21px !default;
59+
$font-size-h4: 17px !default;
60+
$font-size-h5: 16px !default;
61+
$font-size-h6: 15px !default;
6262

6363
//** Unit-less `line-height` for use in components like buttons.
6464
$line-height-base: 1.846 !default; // 20/14
@@ -857,7 +857,7 @@ $headings-small-color: $gray-light !default;
857857
//** Blockquote small color
858858
$blockquote-small-color: $gray-light !default;
859859
//** Blockquote font size
860-
$blockquote-font-size: ($font-size-base * 1.25) !default;
860+
$blockquote-font-size: ($font-size-base * 1.2) !default;
861861
//** Blockquote border color
862862
$blockquote-border-color: $gray-lighter !default;
863863
//** Page header border color

0 commit comments

Comments
 (0)