Skip to content

Commit 4f4abfa

Browse files
authored
Merge pull request #8369 from luotao1/reduce_doc_build_time
reduce doc build time in travis ci
2 parents 525a4fd + 3941a24 commit 4f4abfa

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

doc/templates/conf.py.cn.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ language = 'zh_CN'
8282

8383
# List of patterns, relative to source directory, that match files and
8484
# directories to ignore when looking for source files.
85-
exclude_patterns = ['_build', '**/*_en*', '*_en*']
85+
exclude_patterns = ['_build', '**/*_en*', '*_en*', 'api/*']
8686

8787
# The reST default role (used for this markup: `text`) to use for all
8888
# documents.

doc/templates/conf.py.en.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ language = None
8282

8383
# List of patterns, relative to source directory, that match files and
8484
# directories to ignore when looking for source files.
85-
exclude_patterns = ['_build', '**/*_cn*', '*_cn*']
85+
exclude_patterns = ['_build', '**/*_cn*', '*_cn*', 'api/*']
8686

8787
# The reST default role (used for this markup: `text`) to use for all
8888
# documents.

paddle/scripts/docker/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ EOF
115115
-DWITH_AVX=${WITH_AVX:-ON} \
116116
-DWITH_SWIG_PY=ON \
117117
-DWITH_STYLE_CHECK=OFF
118-
make -j `nproc` gen_proto_py
119-
make -j `nproc` paddle_python
118+
make -j `nproc` gen_proto_py framework_py_proto
119+
make -j `nproc` copy_paddle_pybind
120120
make -j `nproc` paddle_docs paddle_docs_cn paddle_api_docs
121121
popd
122122
fi

paddle/scripts/travis/build_doc.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ mkdir -p $TRAVIS_BUILD_DIR/build
66
cd $TRAVIS_BUILD_DIR/build
77

88
# Compile Documentation only.
9-
cmake .. -DCMAKE_BUILD_TYPE=Debug -DWITH_GPU=OFF -DWITH_MKL=OFF -DWITH_DOC=ON
10-
make -j `nproc` gen_proto_py
11-
make -j `nproc` paddle_python
9+
cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_GPU=OFF -DWITH_MKL=OFF -DWITH_DOC=ON -DWITH_STYLE_CHECK=OFF
10+
make -j `nproc` gen_proto_py framework_py_proto
11+
make -j `nproc` copy_paddle_pybind
1212
make -j `nproc` paddle_docs paddle_docs_cn paddle_api_docs
1313

1414
# check websites for broken links

0 commit comments

Comments
 (0)