diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index 83c61f0b3e3eb6..94dd48230aa39f 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -205,6 +205,11 @@ function(build_docs) COMMENT "Generating OpenVINO documentation" VERBATIM) + add_custom_target(docs_check + COMMAND ${Python3_EXECUTABLE} ${LINKCHECKER_EXECUTABLE} ${DOCS_BUILD_DIR}/html/ -f ${DOXYGEN_DIR}/linkchecker_filter.yaml --no_recursive -l ${DOCS_BUILD_DIR} + COMMENT "Check links in generated documentation" + VERBATIM) + set_target_properties(openvino_docs ie_docs c_api py_api preprocess_docs plugin_api PROPERTIES FOLDER docs) diff --git a/docs/doxygen/linkchecker_filter.yaml b/docs/doxygen/linkchecker_filter.yaml new file mode 100644 index 00000000000000..fc5e941c82d974 --- /dev/null +++ b/docs/doxygen/linkchecker_filter.yaml @@ -0,0 +1,4 @@ +exclude_links: + - '.*?\@ref omz.*' + - '.*?\@ref pot.*' + - '.*?\@ref workbench.*'