Skip to content

Commit 67e5433

Browse files
author
weixing02
committed
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into build_manually
Merge branch develop
2 parents abc630e + 33b8b3d commit 67e5433

24 files changed

+55
-16
lines changed

doc/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1+
add_custom_target(paddle_apis ALL
2+
DEPENDS paddle_v2_apis paddle_fluid_apis)
3+
4+
add_custom_target(paddle_docs ALL
5+
DEPENDS paddle_v2_docs paddle_v2_docs_cn
6+
paddle_fluid_docs paddle_fluid_docs_cn)
7+
18
add_subdirectory(v2)
29
add_subdirectory(fluid)

doc/fluid/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ 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)
31+
3032
# configured documentation tools and intermediate build results
3133
set(BINARY_BUILD_DIR_CN "${CMAKE_CURRENT_BINARY_DIR}/cn/_build")
3234

@@ -47,3 +49,7 @@ sphinx_add_target(paddle_fluid_docs_cn
4749
${SPHINX_CACHE_DIR_CN}
4850
${CMAKE_CURRENT_SOURCE_DIR}
4951
${SPHINX_HTML_DIR_CN})
52+
53+
add_dependencies(paddle_fluid_docs_cn gen_proto_py)
54+
55+
add_subdirectory(api)

doc/fluid/api/CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# configured documentation tools and intermediate build results
2+
set(BINARY_BUILD_DIR_EN "${CMAKE_CURRENT_BINARY_DIR}/en/_build")
3+
4+
# Sphinx cache with pickled ReST documents
5+
set(SPHINX_CACHE_DIR_EN "${CMAKE_CURRENT_BINARY_DIR}/en/_doctrees")
6+
7+
# HTML output director
8+
set(SPHINX_HTML_DIR_EN "${CMAKE_CURRENT_BINARY_DIR}/en/html")
9+
10+
configure_file(
11+
"${CMAKE_CURRENT_SOURCE_DIR}/../../templates/conf.py.en.in"
12+
"${BINARY_BUILD_DIR_EN}/conf.py"
13+
@ONLY)
14+
15+
sphinx_add_target(paddle_fluid_apis
16+
html
17+
${BINARY_BUILD_DIR_EN}
18+
${SPHINX_CACHE_DIR_EN}
19+
${CMAKE_CURRENT_SOURCE_DIR}
20+
${SPHINX_HTML_DIR_EN})
21+
22+
add_dependencies(paddle_fluid_apis gen_proto_py framework_py_proto copy_paddle_pybind)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)