Skip to content

Commit d83db2c

Browse files
committed
Remove the protobuf dependency on pure doc generation
Fix rst format issues in several files.
1 parent 87ff95d commit d83db2c

File tree

9 files changed

+14
-24
lines changed

9 files changed

+14
-24
lines changed

doc/fluid/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ sphinx_add_target(paddle_fluid_docs
2727
${CMAKE_CURRENT_SOURCE_DIR}
2828
${SPHINX_HTML_DIR_EN})
2929

30-
add_dependencies(paddle_fluid_docs gen_proto_py paddle_python)
31-
3230
# configured documentation tools and intermediate build results
3331
set(BINARY_BUILD_DIR_CN "${CMAKE_CURRENT_BINARY_DIR}/cn/_build")
3432

@@ -50,6 +48,4 @@ sphinx_add_target(paddle_fluid_docs_cn
5048
${CMAKE_CURRENT_SOURCE_DIR}
5149
${SPHINX_HTML_DIR_CN})
5250

53-
add_dependencies(paddle_fluid_docs_cn gen_proto_py paddle_python)
54-
5551
add_subdirectory(api)

doc/mobile/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ sphinx_add_target(paddle_mobile_docs
2727
${CMAKE_CURRENT_SOURCE_DIR}
2828
${SPHINX_HTML_DIR_EN})
2929

30-
add_dependencies(paddle_mobile_docs gen_proto_py paddle_python)
31-
3230
# configured documentation tools and intermediate build results
3331
set(BINARY_BUILD_DIR_CN "${CMAKE_CURRENT_BINARY_DIR}/cn/_build")
3432

@@ -49,5 +47,3 @@ sphinx_add_target(paddle_mobile_docs_cn
4947
${SPHINX_CACHE_DIR_CN}
5048
${CMAKE_CURRENT_SOURCE_DIR}
5149
${SPHINX_HTML_DIR_CN})
52-
53-
add_dependencies(paddle_mobile_docs_cn gen_proto_py paddle_python)

doc/mobile/index_cn.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
移动端
2-
=====
2+
======
33

44
.. toctree::
55
:maxdepth: 1
66

77
cross_compiling_for_android_cn.md
88
cross_compiling_for_ios_cn.md
9-
cross_compiling_for_raspberry_cn.md
9+
cross_compiling_for_raspberry_cn.md

doc/v2/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ sphinx_add_target(paddle_v2_docs
2727
${CMAKE_CURRENT_SOURCE_DIR}
2828
${SPHINX_HTML_DIR_EN})
2929

30-
add_dependencies(paddle_v2_docs gen_proto_py paddle_python)
31-
3230
# configured documentation tools and intermediate build results
3331
set(BINARY_BUILD_DIR_CN "${CMAKE_CURRENT_BINARY_DIR}/cn/_build")
3432

@@ -50,6 +48,4 @@ sphinx_add_target(paddle_v2_docs_cn
5048
${CMAKE_CURRENT_SOURCE_DIR}
5149
${SPHINX_HTML_DIR_CN})
5250

53-
add_dependencies(paddle_v2_docs_cn gen_proto_py paddle_python)
54-
5551
add_subdirectory(api)

doc/v2/build_and_install/build_from_source_en.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ If you wish to run only one unit test, like :code:`test_sum_op`:
8888
.. _faq_docker:
8989

9090
Frequently Asked Questions
91-
----------------
91+
---------------------------
9292

9393
- What is Docker?
9494

@@ -145,7 +145,7 @@ Frequently Asked Questions
145145
.. _compile_deps:
146146

147147
Appendix: Compile Dependencies
148-
----------------
148+
-------------------------------
149149

150150
PaddlePaddle need the following dependencies when compiling, other dependencies
151151
will be downloaded automatically.
@@ -166,7 +166,7 @@ will be downloaded automatically.
166166
.. _build_options:
167167

168168
Appendix: Build Options
169-
----------------
169+
-------------------------
170170

171171
Build options include whether build binaries for CPU or GPU, which BLAS
172172
library to use etc. You may pass these settings when running cmake.
@@ -219,7 +219,7 @@ keep on with latest cuDNN versions. Be sure to run with the same version of cuDN
219219
you built.
220220

221221
Pass Compile Options
222-
++++++++++++++
222+
++++++++++++++++++++++
223223

224224
You can pass compile options to use intended BLAS/CUDA/Cudnn libraries.
225225
When running cmake command, it will search system paths like

doc/v2/build_and_install/docker_install_cn.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
当然,您也可以进入到Docker容器中,以交互式的方式执行或调试您的代码:
7474

7575
.. code-block:: bash
76+
7677
docker run -it -v $PWD:/work paddlepaddle/paddle /bin/bash
7778
cd /work
7879
python train.py

doc/v2/build_and_install/docker_install_en.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ Also, you can go into the container shell, run or debug your code
8080
interactively:
8181

8282
.. code-block:: bash
83+
8384
docker run -it -v $PWD:/work paddlepaddle/paddle /bin/bash
8485
cd /work
8586
python train.py

doc/v2/build_and_install/index_cn.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
PaddlePaddle针对不同的用户群体提供了多种安装方式。
77

88
专注深度学习模型开发
9-
-----------------
9+
--------------------
1010

1111
PaddlePaddle提供了多种python wheel包,可通过pip一键安装:
1212

@@ -18,7 +18,7 @@ PaddlePaddle提供了多种python wheel包,可通过pip一键安装:
1818
这是最便捷的安装方式,请根据机器配置和系统选择对应的安装包。
1919

2020
关注底层框架
21-
----------
21+
-------------
2222

2323
PaddlePaddle提供了基于Docker的安装方式,请参照以下教程:
2424

@@ -45,7 +45,7 @@ PaddlePaddle提供了基于Docker的安装方式,请参照以下教程:
4545

4646

4747
常见问题汇总
48-
-----------
48+
--------------
4949

5050
如果在安装过程中遇到了问题,请先尝试在下面的页面寻找答案:
5151

doc/v2/build_and_install/index_en.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
install and Compile
2-
==========
2+
======================
33

44
.. _install_steps:
55

66
PaddlePaddle provides various methods of installation for many different users
77

88
Focus on Deep Learning Model Development
9-
-----------------
9+
----------------------------------------
1010

1111
PaddlePaddle provides lots of packages of python wheel , that pip can install:
1212

@@ -18,7 +18,7 @@ PaddlePaddle provides lots of packages of python wheel , that pip can install:
1818
This is the most convenient way of installation. Please choose the right installation package with machine configure and system.
1919

2020
Follow the Bottom Frame
21-
----------
21+
------------------------
2222

2323
PaddlePaddle also supports installation using Docker. Please refer to the tutorial below:
2424

0 commit comments

Comments
 (0)