Skip to content

Commit c42ef5b

Browse files
committed
remove legacy WITH_DOC option
test=develop
1 parent c585550 commit c42ef5b

File tree

4 files changed

+0
-186
lines changed

4 files changed

+0
-186
lines changed

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,3 @@ add_subdirectory(paddle)
276276
if(WITH_PYTHON)
277277
add_subdirectory(python)
278278
endif()
279-
280-
if(WITH_DOC)
281-
find_package(Sphinx REQUIRED)
282-
find_python_module(recommonmark REQUIRED)
283-
add_subdirectory(doc)
284-
endif()

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ RUN /bin/bash -c 'if [[ -n ${UBUNTU_MIRROR} ]]; then sed -i 's#http://archive.ub
1111
# ENV variables
1212
ARG WITH_GPU
1313
ARG WITH_AVX
14-
ARG WITH_DOC
1514

1615
ENV WOBOQ OFF
1716
ENV WITH_GPU=${WITH_GPU:-ON}
1817
ENV WITH_AVX=${WITH_AVX:-ON}
19-
ENV WITH_DOC=${WITH_DOC:-OFF}
2018

2119
ENV HOME /root
2220
# Add bash enhancements

cmake/FindSphinx.cmake

Lines changed: 0 additions & 147 deletions
This file was deleted.

paddle/scripts/paddle_build.sh

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ function cmake_gen() {
173173
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Release}
174174
${PYTHON_FLAGS}
175175
-DWITH_DSO=ON
176-
-DWITH_DOC=${WITH_DOC:-OFF}
177176
-DWITH_GPU=${WITH_GPU:-OFF}
178177
-DWITH_AMD_GPU=${WITH_AMD_GPU:-OFF}
179178
-DWITH_DISTRIBUTE=${distibuted_flag}
@@ -208,7 +207,6 @@ EOF
208207
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Release} \
209208
${PYTHON_FLAGS} \
210209
-DWITH_DSO=ON \
211-
-DWITH_DOC=${WITH_DOC:-OFF} \
212210
-DWITH_GPU=${WITH_GPU:-OFF} \
213211
-DWITH_AMD_GPU=${WITH_AMD_GPU:-OFF} \
214212
-DWITH_DISTRIBUTE=${distibuted_flag} \
@@ -528,31 +526,6 @@ function bind_test() {
528526
wait
529527
}
530528

531-
532-
function gen_docs() {
533-
mkdir -p ${PADDLE_ROOT}/build
534-
cd ${PADDLE_ROOT}/build
535-
cat <<EOF
536-
========================================
537-
Building documentation ...
538-
In /paddle/build
539-
========================================
540-
EOF
541-
cmake .. \
542-
-DCMAKE_BUILD_TYPE=Release \
543-
-DWITH_DOC=ON \
544-
-DWITH_GPU=OFF \
545-
-DWITH_MKL=OFF
546-
547-
make -j `nproc` paddle_docs paddle_apis
548-
549-
# check websites for broken links
550-
linkchecker doc/v2/en/html/index.html
551-
linkchecker doc/v2/cn/html/index.html
552-
linkchecker doc/v2/api/en/html/index.html
553-
554-
}
555-
556529
function gen_doc_lib() {
557530
mkdir -p ${PADDLE_ROOT}/build
558531
cd ${PADDLE_ROOT}/build
@@ -564,7 +537,6 @@ function gen_doc_lib() {
564537
EOF
565538
cmake .. \
566539
-DCMAKE_BUILD_TYPE=Release \
567-
-DWITH_DOC=ON \
568540
-DWITH_GPU=OFF \
569541
-DWITH_MKL=OFF \
570542
-DWITH_FLUID_ONLY=ON
@@ -803,9 +775,6 @@ function main() {
803775
bind_test)
804776
bind_test
805777
;;
806-
doc)
807-
gen_docs
808-
;;
809778
gen_doc_lib)
810779
gen_doc_lib $2
811780
;;

0 commit comments

Comments
 (0)