Skip to content

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

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

fujitatomoya
Copy link
Collaborator

address warnings are generated by #5231.

@@ -8,7 +8,7 @@ ifeq ($(OS),Windows_NT)
PYTHON := python
endif
BUILD = $(PYTHON) -m sphinx
OPTS =-c .
OPTS =-c . -W # Treat warnings as errors
Copy link
Collaborator Author

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

@fujitatomoya
Copy link
Collaborator Author

@christophebedard @ahcorde what do you think enforcing warning as error option?

Copy link
Member

@christophebedard christophebedard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea!

Copy link

HTML artifacts: https://github.com/ros2/ros2_documentation/actions/runs/14651670476/artifacts/3005458746.

To view the resulting site:

  1. Click on the above link to download the artifacts archive
  2. Extract it
  3. Open html-artifacts-5343/index.html in your favorite browser

@ahcorde ahcorde added the backport-all backport at reviewers discretion; from rolling to all versions label Apr 24, 2025
@ahcorde ahcorde merged commit 94adc5e into rolling Apr 24, 2025
5 checks passed
@ahcorde ahcorde deleted the fujitatomoya/followup-pr-5231 branch April 24, 2025 21:11
mergify bot pushed a commit that referenced this pull request Apr 24, 2025
Signed-off-by: Tomoya Fujita <[email protected]>
(cherry picked from commit 94adc5e)
mergify bot pushed a commit that referenced this pull request Apr 24, 2025
Signed-off-by: Tomoya Fujita <[email protected]>
(cherry picked from commit 94adc5e)
fujitatomoya added a commit that referenced this pull request Apr 24, 2025
Signed-off-by: Tomoya Fujita <[email protected]>
(cherry picked from commit 94adc5e)
fujitatomoya added a commit that referenced this pull request Apr 24, 2025
Signed-off-by: Tomoya Fujita <[email protected]>
(cherry picked from commit 94adc5e)
fujitatomoya added a commit that referenced this pull request Apr 24, 2025
Signed-off-by: Tomoya Fujita <[email protected]>
(cherry picked from commit 94adc5e)

Co-authored-by: Tomoya Fujita <[email protected]>
fujitatomoya added a commit that referenced this pull request Apr 24, 2025
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-all backport at reviewers discretion; from rolling to all versions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants