@@ -86,32 +86,7 @@ if [ "${BUILD_DOC}" = "true" ] && [ -x /usr/local/bin/sphinx-build ] ; then
86
86
fi
87
87
fi
88
88
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
115
90
cd ${PADDLE_DIR}
116
91
git merge --no-edit upstream/${BRANCH}
117
92
need_check_api_py_files=$( find_all_api_py_files_modified_by_pr)
124
99
if [ " ${need_check_api_py_files} " = " " ] ; then
125
100
echo " api python file list is empty, skip check system message in docs"
126
101
else
127
- echo ' need check api pyhon file: ' , $need_check_api_py_files
102
+ echo ' need check api python file: ' , $need_check_api_py_files
128
103
/bin/bash ${DIR_PATH} /check_api_docs_en.sh ${jsonfn} ${OUTPUTDIR} /en/${VERSIONSTR} /api/ " ${need_check_api_py_files} "
129
104
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. '
131
106
exit 1
132
107
fi
133
108
fi
134
109
135
-
136
- # 5 Approval check
137
- /bin/bash ${DIR_PATH} /checkapproval.sh
138
- if [ $? -ne 0 ]; then
139
- exit 1
140
- fi
141
-
142
-
143
110
echo " PADDLE_WHL=${PADDLE_WHL} "
144
111
# print preview url
145
112
echo " ${PREVIEW_URL_PROMPT} "
0 commit comments