Skip to content

Commit 51d8a11

Browse files
committed
reduce doc build time in travis ci
1 parent e800597 commit 51d8a11

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ EOF
116116
-DWITH_SWIG_PY=ON \
117117
-DWITH_STYLE_CHECK=OFF
118118
make -j `nproc` gen_proto_py
119-
make -j `nproc` paddle_python
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cd $TRAVIS_BUILD_DIR/build
88
# Compile Documentation only.
99
cmake .. -DCMAKE_BUILD_TYPE=Debug -DWITH_GPU=OFF -DWITH_MKL=OFF -DWITH_DOC=ON
1010
make -j `nproc` gen_proto_py
11-
make -j `nproc` paddle_python
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)