Skip to content

Commit dd32909

Browse files
authored
Merge pull request #1929 from luotao1/release_doc
auto deploy doc on release branch, and refine doc
2 parents c3d27f6 + fe496f1 commit dd32909

File tree

10 files changed

+26
-35
lines changed

10 files changed

+26
-35
lines changed

doc/getstarted/index_cn.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
============
33

44
.. toctree::
5-
:maxdepth: 2
5+
:maxdepth: 1
66

77
build_and_install/index_cn.rst
8-
basic_usage/index_cn.rst
8+
9+
- `深度学习入门课程 <http://book.paddlepaddle.org/>`_

doc/getstarted/index_en.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ GET STARTED
22
============
33

44
.. toctree::
5-
:maxdepth: 2
5+
:maxdepth: 1
66

77
build_and_install/index_en.rst
8-
basic_usage/index_en.rst
8+
9+
- `Deep Learning 101 <http://book.paddlepaddle.org/index.en.html>`_

doc/howto/deep_model/rnn/hierarchical_layer_cn.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919

2020
在 PaddlePaddle中,下面这些Layer能够接受双层序列作为输入,完成相应的计算。
2121

22-
pooling_layer
23-
==============
22+
pooling
23+
========
2424

25-
pooling_layer 的使用示例如下,详细见 :ref:`api_trainer_config_helpers_layers_pooling_layer` 配置API。
25+
pooling 的使用示例如下,详细见 :ref:`api_v2.layer_pooling` 配置API。
2626

2727
.. code-block:: bash
2828
29-
seq_pool = pooling_layer(input=layer,
30-
pooling_type=AvgPooling(),
31-
agg_level=AggregateLevel.EACH_SEQUENCE)
29+
seq_pool = pooling(input=layer,
30+
pooling_type=pooling.Max(),
31+
agg_level=AggregateLevel.EACH_SEQUENCE)
3232
33-
- `pooling_type` 目前支持两种,分别是:MaxPooling()和AvgPooling()。
33+
- `pooling_type` 目前支持两种,分别是:pooling.Max()和pooling.Avg()。
3434

3535
- `agg_level=AggregateLevel.EACH_TIMESTEP` 时(默认值):
3636

@@ -47,7 +47,7 @@ pooling_layer 的使用示例如下,详细见 :ref:`api_trainer_config_helpers
4747
last_seq 和 first_seq
4848
=====================
4949

50-
last_seq 的使用示例如下( :ref:`api_trainer_config_helpers_layers_first_seq` 类似),详细见 :ref:`api_trainer_config_helpers_layers_last_seq` 配置API。
50+
last_seq 的使用示例如下( :ref:`api_v2.layer_first_seq` 类似),详细见 :ref:`api_v2.layer_last_seq` 配置API。
5151

5252
.. code-block:: bash
5353
@@ -65,16 +65,16 @@ last_seq 的使用示例如下( :ref:`api_trainer_config_helpers_layers_first_
6565
- 输入:必须是一个双层序列
6666
- 输出:一个单层序列,其中每个元素是双层序列中每个subseq最后一个(或第一个)元素。
6767

68-
expand_layer
69-
============
68+
expand
69+
======
7070

71-
expand_layer 的使用示例如下,详细见 :ref:`api_trainer_config_helpers_layers_expand_layer` 配置API。
71+
expand 的使用示例如下,详细见 :ref:`api_v2.layer_expand` 配置API。
7272

7373
.. code-block:: bash
7474
75-
expand = expand_layer(input=layer1,
76-
expand_as=layer2,
77-
expand_level=ExpandLevel.FROM_TIMESTEP)
75+
ex = expand(input=layer1,
76+
expand_as=layer2,
77+
expand_level=ExpandLevel.FROM_TIMESTEP)
7878
7979
- `expand_level=ExpandLevel.FROM_TIMESTEP` 时(默认值):
8080

doc/howto/deep_model/rnn/index_cn.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ RNN相关模型
44
.. toctree::
55
:maxdepth: 1
66

7-
rnn_config_cn.rst
87
recurrent_group_cn.md
98
hierarchical_layer_cn.rst
109
hrnn_rnn_api_compare_cn.rst

doc/howto/deep_model/rnn/index_en.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
RNN Models
22
==========
3-
4-
.. toctree::
5-
:maxdepth: 1
6-
7-
rnn_config_en.rst

doc/howto/usage/k8s/k8s_basis_cn.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
- [*PersistentVolume*](https://kubernetes.io/docs/user-guide/persistent-volumes/): 和[*PersistentVolumeClaim*](https://kubernetes.io/docs/user-guide/persistent-volumes/#persistentvolumeclaims)结合,将外部的存储服务在Kubernetes中描述成为统一的资源形式,便于存储资源管理和Pod引用。
1616

17-
# 部署Kubernetes集群
17+
## 部署Kubernetes集群
1818

1919
Kubernetes提供了多种集群部署的方案,本文档内不重复介绍。这里给出集中常见的部署方法:
2020

@@ -25,7 +25,7 @@ Kubernetes提供了多种集群部署的方案,本文档内不重复介绍。
2525

2626
可以参考[这个表格](https://kubernetes.io/docs/getting-started-guides/#table-of-solutions)选择适合您的场景的合适方案。
2727

28-
# 选择存储方案
28+
## 选择存储方案
2929

3030
容器不会保留在运行时生成的数据,job或者应用程序在容器中运行时生成的数据会在容器销毁时消失。为了完成分布式机器学习训练任务,需要有一个外部的存储服务来保存训练所需数据和训练输出。
3131
常见的可选存储服务包括:
@@ -35,9 +35,9 @@ Kubernetes提供了多种集群部署的方案,本文档内不重复介绍。
3535
- [*Ceph*](http://docs.ceph.com/docs/master/): 分布式文件系统,支持rbd,POSIX API接口(ceph fs)和对象存储API,参考[这里](https://kubernetes.io/docs/user-guide/volumes/#rbd)
3636
- [*MooseFS*](https://moosefs.com/documentation.html): 一个分布式的存储系统。需要先挂载到服务器Node上再通过kubernetes hostPath Volume挂载到容器中。
3737

38-
# 配置kubectl
38+
## 配置kubectl
3939

40-
## 安装kubectl
40+
### 安装kubectl
4141
```
4242
# OS X
4343
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl
@@ -49,7 +49,7 @@ curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s htt
4949
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/windows/amd64/kubectl.exe
5050
```
5151

52-
## 配置kubectl访问你的kubernetes集群
52+
### 配置kubectl访问你的kubernetes集群
5353

5454
编辑`~/.kube/config`这个配置文件,修改`Master-IP`的地址。如果使用SSL认证,则需要配置`certificate-authority``users`中的用户证书。如果是使用非SSL方式访问(比如通过8080端口),也可以去掉这些证书的配置。
5555
```

doc/index_cn.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ PaddlePaddle 文档
55
:maxdepth: 1
66

77
getstarted/index_cn.rst
8-
tutorials/index_cn.md
98
howto/index_cn.rst
109
api/index_cn.rst
1110
faq/index_cn.rst

doc/index_en.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ PaddlePaddle Documentation
55
:maxdepth: 1
66

77
getstarted/index_en.rst
8-
tutorials/index_en.md
98
howto/index_en.rst
109
api/index_en.rst
1110
about/index_en.rst
12-

doc_theme/templates/layout.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@
115115
</div>
116116
<ul class="site-page-links">
117117
<li><a href="/">Home</a></li>
118-
<li><a href="http://book.paddlepaddle.org">Get Started</a></li>
119-
<li class="active"><a>Documentation</a></li>
120-
<!-- <li><a>About Us</a></li> -->
121118
</ul>
122119
</div>
123120
<div class="doc-module">

paddle/scripts/travis/docs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ function deploy_docs() {
6060

6161
deploy_docs "master" "."
6262
deploy_docs "develop" "./develop/"
63+
deploy_docs "release/0.10.0" "./release/0.10.0/"
6364

6465
# Check is there anything changed.
6566
set +e

0 commit comments

Comments
 (0)