-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix linking WARNING: unknown document. #5343
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
Conversation
Signed-off-by: Tomoya Fujita <[email protected]>
@@ -8,7 +8,7 @@ ifeq ($(OS),Windows_NT) | |||
PYTHON := python | |||
endif | |||
BUILD = $(PYTHON) -m sphinx | |||
OPTS =-c . | |||
OPTS =-c . -W # Treat warnings as errors |
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.
this allows github action to detect the following.
rosindex@91da263e01b7:/tmp/doc_repository$ make html
Running Sphinx v7.2.6
loading pickled environment... done
...
/tmp/doc_repository/source/Concepts/Intermediate/About-Different-Middleware-Vendors.rst:67: WARNING: unknown document: '../../Installation/DDS-Implementations'
/tmp/doc_repository/source/How-To-Guides/Working-with-multiple-RMW-implementations.rst:24: WARNING: unknown document: '../Installation/DDS-Implementations'
/tmp/doc_repository/source/How-To-Guides/Working-with-multiple-RMW-implementations.rst:69: WARNING: unknown document: '../Installation/DDS-Implementations'
/tmp/doc_repository/source/Tutorials/Advanced/Security/Introducing-ros2-security.rst:80: WARNING: unknown document: '../../../Installation/DDS-Implementations/'
...
these warnings were detected, but github action does not fail with these warnings. see https://github.com/ros2/ros2_documentation/actions/runs/14647996323/job/41106929709
with this -W
option, now it can detect via github action.
Warning, treated as error:
/tmp/doc_repository/source/Concepts/Intermediate/About-Different-Middleware-Vendors.rst:67:unknown document: '../../Installation/DDS-Implementations'
make: *** [Makefile:23: html] Error 2
@christophebedard @ahcorde what do you think enforcing warning as error option? |
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.
Great idea!
HTML artifacts: https://github.com/ros2/ros2_documentation/actions/runs/14651670476/artifacts/3005458746. To view the resulting site:
|
Signed-off-by: Tomoya Fujita <[email protected]> (cherry picked from commit 94adc5e)
Signed-off-by: Tomoya Fujita <[email protected]> (cherry picked from commit 94adc5e)
Signed-off-by: Tomoya Fujita <[email protected]> (cherry picked from commit 94adc5e)
Signed-off-by: Tomoya Fujita <[email protected]> (cherry picked from commit 94adc5e)
Signed-off-by: Tomoya Fujita <[email protected]> (cherry picked from commit 94adc5e) Co-authored-by: Tomoya Fujita <[email protected]>
* fix linking WARNING: unknown document. (#5343) Signed-off-by: Tomoya Fujita <[email protected]> (cherry picked from commit 94adc5e) * more internal link fixes to RMW-Implementations section. Signed-off-by: Tomoya Fujita <[email protected]> --------- Signed-off-by: Tomoya Fujita <[email protected]> Co-authored-by: Tomoya Fujita <[email protected]>
address warnings are generated by #5231.