diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8359afe36571b8335afe2f528dc08285e4efce48..e06e02f312e8c594a28249e7e9d32eb5a60bf7e9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,8 +35,8 @@ hooks: - id: convert-markdown-into-html name: convert-markdown-into-html - description: Convert README.md into index.html and README.en.md into index.en.html + description: Convert README.md into index.html and README.cn.md into index.cn.html entry: python .pre-commit-hooks/convert_markdown_into_html.py language: system - files: .+README(\.en)?\.md$ + files: .+README(\.cn)?\.md$ diff --git a/.tools/templates/index.cn.html.json b/.tools/templates/index.cn.html.json new file mode 100644 index 0000000000000000000000000000000000000000..3f62c5ca51edd303656c4f4f57fddbfe2a0275d4 --- /dev/null +++ b/.tools/templates/index.cn.html.json @@ -0,0 +1,37 @@ +{ + "is_en": false, + "chapters": [ + { + "name": "新手入门", + "link": "./01.fit_a_line/index.cn.html" + }, + { + "name": "识别数字", + "link": "./02.recognize_digits/index.cn.html" + }, + { + "name": "图像分类", + "link": "./03.image_classification/index.cn.html" + }, + { + "name": "词向量", + "link": "./04.word2vec/index.cn.html" + }, + { + "name": "个性化推荐", + "link": "./05.recommender_system/index.cn.html" + }, + { + "name": "情感分析", + "link": "./06.understand_sentiment/index.cn.html" + }, + { + "name": "语义角色标注", + "link": "./07.label_semantic_roles/index.cn.html" + }, + { + "name": "机器翻译", + "link": "./08.machine_translation/index.cn.html" + } + ] +} diff --git a/.tools/templates/index.en.html.tmpl b/.tools/templates/index.cn.html.tmpl similarity index 100% rename from .tools/templates/index.en.html.tmpl rename to .tools/templates/index.cn.html.tmpl diff --git a/.tools/templates/index.en.html.json b/.tools/templates/index.en.html.json deleted file mode 100644 index 0e26ab163e007e2e5491f48329c903010891f394..0000000000000000000000000000000000000000 --- a/.tools/templates/index.en.html.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "is_en": true, - "chapters": [ - { - "name": "Linear Regression", - "link": "./01.fit_a_line/index.en.html" - }, - { - "name": "Recognize Digits", - "link": "./02.recognize_digits/index.en.html" - }, - { - "name": "Image Classification", - "link": "./03.image_classification/index.en.html" - }, - { - "name": "Word2Vec", - "link": "./04.word2vec/index.en.html" - }, - { - "name": "Personalized Recommendation", - "link": "./05.recommender_system/index.en.html" - }, - { - "name": "Sentiment Analysis", - "link": "./06.understand_sentiment/index.en.html" - }, - { - "name": "Semantic Role Labeling", - "link": "./07.label_semantic_roles/index.en.html" - }, - { - "name": "Machine Translation", - "link": "./08.machine_translation/index.en.html" - } - ] -} diff --git a/.tools/templates/index.html.json b/.tools/templates/index.html.json index 10c628cc119ee824e71df0eb6a5d70ddfc991eac..320441ef429f0c827af39c7389873677eb239d98 100644 --- a/.tools/templates/index.html.json +++ b/.tools/templates/index.html.json @@ -1,36 +1,36 @@ { - "is_en": false, + "is_en": true, "chapters": [ { - "name": "新手入门", + "name": "Linear Regression", "link": "./01.fit_a_line/index.html" }, { - "name": "识别数字", + "name": "Recognize Digits", "link": "./02.recognize_digits/index.html" }, { - "name": "图像分类", + "name": "Image Classification", "link": "./03.image_classification/index.html" }, { - "name": "词向量", + "name": "Word2Vec", "link": "./04.word2vec/index.html" }, { - "name": "个性化推荐", + "name": "Personalized Recommendation", "link": "./05.recommender_system/index.html" }, { - "name": "情感分析", + "name": "Sentiment Analysis", "link": "./06.understand_sentiment/index.html" }, { - "name": "语义角色标注", + "name": "Semantic Role Labeling", "link": "./07.label_semantic_roles/index.html" }, { - "name": "机器翻译", + "name": "Machine Translation", "link": "./08.machine_translation/index.html" } ] diff --git a/01.fit_a_line/index.cn.html b/01.fit_a_line/index.cn.html new file mode 100644 index 0000000000000000000000000000000000000000..cac6ce753a502d47aec931845eb014df4876d521 --- /dev/null +++ b/01.fit_a_line/index.cn.html @@ -0,0 +1,295 @@ + + + + + + + + + + + + + + + + + +
+
+ + + + + + + diff --git a/01.fit_a_line/index.en.html b/01.fit_a_line/index.en.html deleted file mode 100644 index fdb8c89cfad99aefea1727c89f414fc2b3ee4beb..0000000000000000000000000000000000000000 --- a/01.fit_a_line/index.en.html +++ /dev/null @@ -1,300 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/02.recognize_digits/index.cn.html b/02.recognize_digits/index.cn.html new file mode 100644 index 0000000000000000000000000000000000000000..60d7c850c1ae5f79f935df27a71e3e643f17aff9 --- /dev/null +++ b/02.recognize_digits/index.cn.html @@ -0,0 +1,420 @@ + + + + + + + + + + + + + + + + + +
+
+ + + + + + + diff --git a/02.recognize_digits/index.en.html b/02.recognize_digits/index.en.html deleted file mode 100644 index 7482f53df5b276929187ea39ed53a37d5cbf5c30..0000000000000000000000000000000000000000 --- a/02.recognize_digits/index.en.html +++ /dev/null @@ -1,430 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/03.image_classification/index.cn.html b/03.image_classification/index.cn.html new file mode 100644 index 0000000000000000000000000000000000000000..8f059be9c451e67ab02d73941f391d1de5a20cce --- /dev/null +++ b/03.image_classification/index.cn.html @@ -0,0 +1,627 @@ + + + + + + + + + + + + + + + + + +
+
+ + + + + + + diff --git a/03.image_classification/index.en.html b/03.image_classification/index.en.html deleted file mode 100644 index c34fb385f852ae0e016e3ca08043d3c436094799..0000000000000000000000000000000000000000 --- a/03.image_classification/index.en.html +++ /dev/null @@ -1,637 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/04.word2vec/index.cn.html b/04.word2vec/index.cn.html new file mode 100644 index 0000000000000000000000000000000000000000..b7228b39e781d4cdcf6dae5d7abc7e7f49b040ed --- /dev/null +++ b/04.word2vec/index.cn.html @@ -0,0 +1,473 @@ + + + + + + + + + + + + + + + + + +
+
+ + + + + + + diff --git a/04.word2vec/index.en.html b/04.word2vec/index.en.html deleted file mode 100644 index f02da81a853cffc876412768949ecb2e32bb5885..0000000000000000000000000000000000000000 --- a/04.word2vec/index.en.html +++ /dev/null @@ -1,483 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/05.recommender_system/index.cn.html b/05.recommender_system/index.cn.html new file mode 100644 index 0000000000000000000000000000000000000000..7722e63270dd553c3f3a93d99473dc64d0d3925a --- /dev/null +++ b/05.recommender_system/index.cn.html @@ -0,0 +1,529 @@ + + + + + + + + + + + + + + + + + +
+
+ + + + + + + diff --git a/05.recommender_system/index.en.html b/05.recommender_system/index.en.html deleted file mode 100644 index 956212471a0abd2af457b0198ce01c2e28682a4a..0000000000000000000000000000000000000000 --- a/05.recommender_system/index.en.html +++ /dev/null @@ -1,462 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/06.understand_sentiment/index.cn.html b/06.understand_sentiment/index.cn.html new file mode 100644 index 0000000000000000000000000000000000000000..370597699b40fac189c9bf30b8a63a28f26ab809 --- /dev/null +++ b/06.understand_sentiment/index.cn.html @@ -0,0 +1,446 @@ + + + + + + + + + + + + + + + + + +
+
+ + + + + + + diff --git a/06.understand_sentiment/index.en.html b/06.understand_sentiment/index.en.html deleted file mode 100644 index 8b46a9d7c82e443c1f3fdc5aa9b8fcf44f0224d4..0000000000000000000000000000000000000000 --- a/06.understand_sentiment/index.en.html +++ /dev/null @@ -1,410 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/07.label_semantic_roles/index.cn.html b/07.label_semantic_roles/index.cn.html new file mode 100644 index 0000000000000000000000000000000000000000..725f6a33e53555618467581c36a699c45a6345ed --- /dev/null +++ b/07.label_semantic_roles/index.cn.html @@ -0,0 +1,584 @@ + + + + + + + + + + + + + + + + + +
+
+ + + + + + + diff --git a/07.label_semantic_roles/index.en.html b/07.label_semantic_roles/index.en.html deleted file mode 100644 index 952a2efc4c3e11fba9530007ee93969d5b64bd35..0000000000000000000000000000000000000000 --- a/07.label_semantic_roles/index.en.html +++ /dev/null @@ -1,603 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/08.machine_translation/index.cn.html b/08.machine_translation/index.cn.html new file mode 100644 index 0000000000000000000000000000000000000000..4082319fa557e92fb48b6e1dc4f48dbc4042dcd1 --- /dev/null +++ b/08.machine_translation/index.cn.html @@ -0,0 +1,579 @@ + + + + + + + + + + + + + + + + + +
+
+ + + + + + + diff --git a/08.machine_translation/index.en.html b/08.machine_translation/index.en.html deleted file mode 100644 index d0c2ff3eba71f0595538176b7e9f874c29c96e6e..0000000000000000000000000000000000000000 --- a/08.machine_translation/index.en.html +++ /dev/null @@ -1,615 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/README.cn.md b/README.cn.md index 5a8695bdc21eff303bdc1eb01201d695ed53bb13..f984ca5e0b001fcc196d2c9d7f05014004768c12 100644 --- a/README.cn.md +++ b/README.cn.md @@ -1,18 +1,18 @@ # 深度学习入门 [![Build Status](https://travis-ci.org/PaddlePaddle/book.svg?branch=develop)](https://travis-ci.org/PaddlePaddle/book) -[![Documentation Status](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](http://book.paddlepaddle.org/index.en.html) -[![Documentation Status](https://img.shields.io/badge/中文文档-最新-brightgreen.svg)](http://book.paddlepaddle.org) +[![Documentation Status](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](http://book.paddlepaddle.org/) +[![Documentation Status](https://img.shields.io/badge/中文文档-最新-brightgreen.svg)](http://book.paddlepaddle.org/index.cn.html) [![License](https://img.shields.io/badge/license-Apache%202-blue.svg)](LICENSE) -1. [新手入门](http://book.paddlepaddle.org/01.fit_a_line) -1. [识别数字](http://book.paddlepaddle.org/02.recognize_digits) -1. [图像分类](http://book.paddlepaddle.org/03.image_classification) -1. [词向量](http://book.paddlepaddle.org/04.word2vec) -1. [个性化推荐](http://book.paddlepaddle.org/05.recommender_system) -1. [情感分析](http://book.paddlepaddle.org/06.understand_sentiment) -1. [语义角色标注](http://book.paddlepaddle.org/07.label_semantic_roles) -1. [机器翻译](http://book.paddlepaddle.org/08.machine_translation) +1. [新手入门](http://book.paddlepaddle.org/01.fit_a_line/index.cn.html) +1. [识别数字](http://book.paddlepaddle.org/02.recognize_digits/index.cn.html) +1. [图像分类](http://book.paddlepaddle.org/03.image_classification/index.cn.html) +1. [词向量](http://book.paddlepaddle.org/04.word2vec/index.cn.html) +1. [个性化推荐](http://book.paddlepaddle.org/05.recommender_system/index.cn.html) +1. [情感分析](http://book.paddlepaddle.org/06.understand_sentiment/index.cn.html) +1. [语义角色标注](http://book.paddlepaddle.org/07.label_semantic_roles/index.cn.html) +1. [机器翻译](http://book.paddlepaddle.org/08.machine_translation/index.cn.html) ## 运行这本书 diff --git a/README.md b/README.md index f1c9ac25e00fe7cb6bfaaa55a22e143c20a4d8c1..78990a9bdd9ba7fb2c351cb31f3814b3536482c6 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,18 @@ # Deep Learning with PaddlePaddle -1. [Fit a Line](http://book.paddlepaddle.org/01.fit_a_line/index.en.html) -1. [Recognize Digits](http://book.paddlepaddle.org/02.recognize_digits/index.en.html) -1. [Image Classification](http://book.paddlepaddle.org/03.image_classification/index.en.html) -1. [Word to Vector](http://book.paddlepaddle.org/04.word2vec/index.en.html) -1. [Recommender System](http://book.paddlepaddle.org/05.recommender_system/index.en.html) -1. [Understand Sentiment](http://book.paddlepaddle.org/06.understand_sentiment/index.en.html) -1. [Label Semantic Roles](http://book.paddlepaddle.org/07.label_semantic_roles/index.en.html) -1. [Machine Translation](http://book.paddlepaddle.org/08.machine_translation/index.en.html) +[![Build Status](https://travis-ci.org/PaddlePaddle/book.svg?branch=develop)](https://travis-ci.org/PaddlePaddle/book) +[![Documentation Status](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](http://book.paddlepaddle.org/) +[![Documentation Status](https://img.shields.io/badge/中文文档-最新-brightgreen.svg)](http://book.paddlepaddle.org/index.cn.html) +[![License](https://img.shields.io/badge/license-Apache%202-blue.svg)](LICENSE) + +1. [Fit a Line](http://book.paddlepaddle.org/01.fit_a_line/) +1. [Recognize Digits](http://book.paddlepaddle.org/02.recognize_digits/) +1. [Image Classification](http://book.paddlepaddle.org/03.image_classification/) +1. [Word to Vector](http://book.paddlepaddle.org/04.word2vec/) +1. [Recommender System](http://book.paddlepaddle.org/05.recommender_system/) +1. [Understand Sentiment](http://book.paddlepaddle.org/06.understand_sentiment/) +1. [Label Semantic Roles](http://book.paddlepaddle.org/07.label_semantic_roles/) +1. [Machine Translation](http://book.paddlepaddle.org/08.machine_translation/) ## Running the Book diff --git a/index.en.html b/index.cn.html similarity index 79% rename from index.en.html rename to index.cn.html index b9968aa3869177d316fc0b6f0f032285e854bb23..55e1c0a1a1cb98cd172b93ad8de08f21d4c6e477 100644 --- a/index.en.html +++ b/index.cn.html @@ -1,8 +1,8 @@ - + - Deep Learning 101 + 深度学习入门 @@ -26,6 +26,10 @@ } +.left-panel .card-header a { + font-size: 14px; +} + .left-panel .card-block a:not(.click_active) { background: #e4e6e9; @@ -70,17 +74,17 @@