@@ -86,32 +86,7 @@ if [ "${BUILD_DOC}" = "true" ] && [ -x /usr/local/bin/sphinx-build ] ; then
8686 fi
8787fi
8888
89- check_parameters=OFF
90- if [ " ${check_parameters} " = " OFF" ] ; then
91- # echo "chinese api doc fileslist is empty, skip check."
92- echo " check_api_parameters is not stable, close it temporarily."
93- else
94- jsonfn=${OUTPUTDIR} /en/${VERSIONSTR} /gen_doc_output/api_info_all.json
95- if [ -f $jsonfn ] ; then
96- echo " $jsonfn exists."
97- /bin/bash ${DIR_PATH} /check_api_parameters.sh " ${need_check_cn_doc_files} " ${jsonfn}
98- if [ $? -ne 0 ]; then
99- exit 1
100- fi
101- else
102- echo " $jsonfn not exists."
103- exit 1
104- fi
105- fi
106-
107- EXIT_CODE=0
108- # 3 check code style/format.
109- /bin/bash ${DIR_PATH} /check_code.sh
110- if [ $? -ne 0 ]; then
111- EXIT_CODE=1
112- fi
113-
114- # 4 check docs style/format
89+ # 3 check docs syntax
11590cd ${PADDLE_DIR}
11691git merge --no-edit upstream/${BRANCH}
11792need_check_api_py_files=$( find_all_api_py_files_modified_by_pr)
12499if [ " ${need_check_api_py_files} " = " " ] ; then
125100 echo " api python file list is empty, skip check system message in docs"
126101else
127- echo ' need check api pyhon file: ' , $need_check_api_py_files
102+ echo ' need check api python file: ' , $need_check_api_py_files
128103 /bin/bash ${DIR_PATH} /check_api_docs_en.sh ${jsonfn} ${OUTPUTDIR} /en/${VERSIONSTR} /api/ " ${need_check_api_py_files} "
129104 if [ $? -ne 0 ]; then
130- echo ' Docs Style Check is failed, please check the style in the above docs'
105+ echo ' Docs syntax check is failed, please check the syntax in the above docs, mostly caused by incorrect formatting written in the docstring. '
131106 exit 1
132107 fi
133108fi
134109
135-
136- # 5 Approval check
137- /bin/bash ${DIR_PATH} /checkapproval.sh
138- if [ $? -ne 0 ]; then
139- exit 1
140- fi
141-
142-
143110echo " PADDLE_WHL=${PADDLE_WHL} "
144111# print preview url
145112echo " ${PREVIEW_URL_PROMPT} "
0 commit comments