-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake Doc Link Checker #3403
CMake Doc Link Checker #3403
Conversation
exclude_links: | ||
- '.*?\@ref omz.*' | ||
- '.*?\@ref pot.*' | ||
- '.*?\@ref workbench.*' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
am I right that all other links are correct? I don't believe in it 😄
@@ -202,6 +202,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} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LINKCHECKER_EXECUTABLE
is empty since it's not defined in the project. Let's add LINKCHECKER_EXECUTABLE
option to cmake/features.cmake
and enable this step only if LINKCHECKER_EXECUTABLE
is defined and file exists.
BTW, since this is a python script, can we rename to LINKCHECKER_PY
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paths like ${DOCS_BUILD_DIR}/html/
must be quoted with "
No description provided.