Skip to content

Sentence checker#4592

Merged
fujitatomoya merged 36 commits intoros2:rollingfrom
DLu:sentence_checker
Mar 13, 2025
Merged

Sentence checker#4592
fujitatomoya merged 36 commits intoros2:rollingfrom
DLu:sentence_checker

Conversation

@DLu
Copy link
Contributor

@DLu DLu commented Aug 6, 2024

And now, a reading from the book of Code Style

Each sentence must start on a new line.

@clalancette is a real stickler for this, so I made a linter. Unfortunately, there are lots of problems, some of which are the linter, and some of which are the content.

Happy to have help. I can't devote a ton more time to this, but I still wanted the code to be out there.

@DLu
Copy link
Contributor Author

DLu commented Aug 6, 2024

Very important note: I resisted the urge to call this "Edgar Jr."

https://www.youtube.com/watch?v=NW14YWw3h1E

@fujitatomoya
Copy link
Collaborator

@DLu

Unfortunately, there are lots of problems, some of which are the linter, and some of which are the content.

i just got interested in this. can you rephrase this? are you saying there are many false alarms?

@DLu
Copy link
Contributor Author

DLu commented Feb 6, 2025

Taking a look at the current results on my machine, it seems like mostly the output is true positives, with a handful of false positives mixed in. The false positives include:

  • Numbered lists
  • Day abbreviations
  • People who use punctuation in their given names. Particularly ironic, coming from me, don't you think @nuclearsandwich ?

Current error count for the whole repo: 624

@fujitatomoya
Copy link
Collaborator

@DLu sounds good, if there is anything i can help, please let me know. i will take a look at the PR.

@DLu
Copy link
Contributor Author

DLu commented Feb 6, 2025

Down to 285

@fujitatomoya
Copy link
Collaborator

ninja quick 🥷 amazing 💯

@cottsay
Copy link
Member

cottsay commented Feb 11, 2025

I haven't dug into this, but it might be good to actually parse the RST so we don't need to worry about handling the syntax. Example of where we're already parsing RST: https://github.com/ros-infrastructure/catkin_pkg/blob/master/src/catkin_pkg/changelog.py

@fujitatomoya
Copy link
Collaborator

@Mergifyio rebase

@mergify
Copy link
Contributor

mergify bot commented Feb 12, 2025

rebase

☑️ Nothing to do

Details
  • -conflict [📌 rebase requirement]
  • -closed [📌 rebase requirement]
  • queue-position = -1 [📌 rebase requirement]
  • any of:
    • #commits > 1 [📌 rebase requirement]
    • #commits-behind > 0 [📌 rebase requirement]
    • -linear-history [📌 rebase requirement]

@fujitatomoya
Copy link
Collaborator

@DLu can you rebase this against rolling?

DLu and others added 8 commits February 12, 2025 23:35
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
…os2#5024)

You can't do nested inline markup in RST:

**Can't do ``this`` in RST.**

The simplest solution is to just exclude the ``literal`` part.

Also, do some other minor fixes.

Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
…s2#5021)

* remove --break-system-packages and address docker build warnings.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* add github workflow to test Dockerfile.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* Revert "add github workflow to test Dockerfile."

This reverts commit 8686f18.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
@DLu
Copy link
Contributor Author

DLu commented Feb 18, 2025

Note: This PR has been split up.

DLu and others added 3 commits February 17, 2025 22:43
* Add second dot to abbreviations
* Remove some random periods
* Escape some periods
* Convert some links
* Add formatted block
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Added missing ``Output:`` before the terminal output for consistency reasons

Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>
@DLu
Copy link
Contributor Author

DLu commented Feb 28, 2025

Worth noting that this new version with sphinx_sentence_scan_single is a semi-hacky backup. I intended to run the Python directly instead of using subprocess, but Sphinx is a bit particular about how it runs as a library.

Here is the "clean" direct-Python version of the checker

However, this interacts with sphinx_sitemap_ros.py in a way that is currently beyond my understanding of Sphinx.

! ros2_documentation/ > make lint
./sphinx-lint-with-ros source
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/sphinx/events.py", line 98, in emit
    results.append(listener.handler(self.app, *args))
  File "/home/dlu/OpenSource/ros2_documentation/plugins/sphinx_sitemap_ros.py", line 112, in record_builder_type
    builder.env.app.sitemap_links = Manager().Queue()
  File "/usr/lib/python3.10/multiprocessing/context.py", line 57, in Manager
    m.start()
  File "/usr/lib/python3.10/multiprocessing/managers.py", line 562, in start
    self._process.start()
  File "/usr/lib/python3.10/multiprocessing/process.py", line 118, in start
    assert not _current_process._config.get('daemon'), \
AssertionError: daemonic processes are not allowed to have children

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/usr/local/lib/python3.10/dist-packages/sphinxlint/cli.py", line 174, in _check_file
    return check_file(*todo)
  File "/usr/local/lib/python3.10/dist-packages/sphinxlint/sphinxlint.py", line 66, in check_file
    return check_text(filename, text, checkers, options)
  File "/usr/local/lib/python3.10/dist-packages/sphinxlint/sphinxlint.py", line 45, in check_text
    for lno, msg in check(
  File "/home/dlu/OpenSource/ros2_documentation/plugins/ros_checkers.py", line 34, in check_sentence_count
    settings, reporter, parser = load_sphinx(
  File "/home/dlu/Projects/sphinx_tamer/src/sphinx_tamer/sphinx_wrapper.py", line 47, in load_sphinx
    app = Sphinx(srcdir=src_path,
  File "/usr/local/lib/python3.10/dist-packages/sphinx/application.py", line 292, in __init__
    self._init_builder()
  File "/usr/local/lib/python3.10/dist-packages/sphinx/application.py", line 366, in _init_builder
    self.events.emit('builder-inited')
  File "/usr/local/lib/python3.10/dist-packages/sphinx/events.py", line 109, in emit
    raise ExtensionError(
sphinx.errors.ExtensionError: Handler <function record_builder_type at 0x7426fd50d900> for event 'builder-inited' threw an exception (exception: daemonic processes are not allowed to have children)
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/dlu/OpenSource/ros2_documentation/./sphinx-lint-with-ros", line 7, in <module>
    main(sys.argv)
  File "/usr/local/lib/python3.10/dist-packages/sphinxlint/cli.py", line 238, in main
    count = print_errors(
  File "/usr/local/lib/python3.10/dist-packages/sphinxlint/cli.py", line 199, in print_errors
    for error in errors:
  File "/usr/local/lib/python3.10/dist-packages/sphinxlint/cli.py", line 180, in sort_errors
    for results in results:
  File "/usr/lib/python3.10/multiprocessing/pool.py", line 873, in next
    raise value
sphinx.errors.ExtensionError: Handler <function record_builder_type at 0x7426fd50d900> for event 'builder-inited' threw an exception (exception: daemonic processes are not allowed to have children)
make: *** [Makefile:26: lint] Error 1

If the sitemap file is not there, it does not have this problem.

@DLu DLu marked this pull request as ready for review March 11, 2025 15:54
@DLu
Copy link
Contributor Author

DLu commented Mar 11, 2025

Didn't realize I left this in draft state. Conflicts are resolved, ready for review.

sloretz and others added 3 commits March 13, 2025 13:09
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>
Signed-off-by: Shane Loretz <sloretz@intrinsic.ai>
Signed-off-by: Shane Loretz <sloretz@intrinsic.ai>
Copy link
Contributor

@sloretz sloretz left a comment

Choose a reason for hiding this comment

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

LGTM! I'll ask for one more review since I made a few small changes.

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.

Minor comments.

sloretz and others added 2 commits March 13, 2025 13:58
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>
Copy link
Member

@nuclearsandwich nuclearsandwich left a comment

Choose a reason for hiding this comment

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

It's a huge level-up to have this as an automated check because this style requirement is motivated by making change review using textual diff tools much more natural.

Helping contributors check the constraint will save their time and maintainers'!

@christophebedard
Copy link
Member

We intend to backport this and fix the merge conflicts + linter issues, right?

Copy link
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

a couple of comments.

@christophebedard christophebedard added the backport-all backport at reviewers discretion; from rolling to all versions label Mar 13, 2025
sloretz and others added 2 commits March 13, 2025 14:23
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>
@fujitatomoya
Copy link
Collaborator

MERGING 🚀🚀🚀🚀🚀 @DLu thanks for amazing work 👍

@fujitatomoya fujitatomoya merged commit 784fd45 into ros2:rolling Mar 13, 2025
5 checks passed
mergify bot pushed a commit that referenced this pull request Mar 13, 2025
* Sentence Checker

* Some edits

* Update About-Executors.rst

* More sentence breaks

* More cleanup

* More sentences

* Fix smart quotes

* fix group tag indent for ROSCon 2023 and 2024 contents. (#5016)

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* Clean up sentences II (white space changes only) (#5017)

* Exclude literals parts from bold parts in 'Ament Lint CLI Utilities' (#5024)

You can't do nested inline markup in RST:

**Can't do ``this`` in RST.**

The simplest solution is to just exclude the ``literal`` part.

Also, do some other minor fixes.

Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>

* remove --break-system-packages and address docker build warnings. (#5021)

* remove --break-system-packages and address docker build warnings.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* add github workflow to test Dockerfile.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* Revert "add github workflow to test Dockerfile."

This reverts commit 8686f18.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* More

* Other sentence formatting (#5031)

* Add second dot to abbreviations
* Remove some random periods
* Escape some periods
* Convert some links
* Add formatted block

* Enable github/workflow to verify Dockerfile. (#5035)

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* Update Using-Node-Interfaces-Template-Class.rst (#5038)

Added missing ``Output:`` before the terminal output for consistency reasons

Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* added Publishing-Messages-Using-YAML-Files.rst and edited Intermediat… (#5034)

* added Publishing-Messages-Using-YAML-Files.rst and edited Intermediate.rst

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate.rst

Thanks for pointing it out, I didnt notice the extention beeing there

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

---------

Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>

* more bits

* Some rollbacks

* Ignore

* Use sphinx_tamer

* More Sphinx Config

* Updated checker using subprocess

* Make sphinx-lint-with-ros exit with non-zero error codes

Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Wrap r2d2.rviz in backticks

Signed-off-by: Shane Loretz <sloretz@intrinsic.ai>

* Wrap URL in RST link

Signed-off-by: Shane Loretz <sloretz@intrinsic.ai>

* Add empty line after section title

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Add empty line after section title

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Use normalized project name sphinx-tamer

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Make sentence checker ignore `.idl`

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>
Signed-off-by: Shane Loretz <sloretz@intrinsic.ai>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: Christophe Bedard <christophe.bedard@apex.ai>
Co-authored-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Co-authored-by: Shane Loretz <shane.loretz@gmail.com>
Co-authored-by: Shane Loretz <sloretz@intrinsic.ai>
(cherry picked from commit 784fd45)

# Conflicts:
#	source/Installation/Alternatives/Windows-Development-Setup.rst
mergify bot pushed a commit that referenced this pull request Mar 13, 2025
* Sentence Checker

* Some edits

* Update About-Executors.rst

* More sentence breaks

* More cleanup

* More sentences

* Fix smart quotes

* fix group tag indent for ROSCon 2023 and 2024 contents. (#5016)

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* Clean up sentences II (white space changes only) (#5017)

* Exclude literals parts from bold parts in 'Ament Lint CLI Utilities' (#5024)

You can't do nested inline markup in RST:

**Can't do ``this`` in RST.**

The simplest solution is to just exclude the ``literal`` part.

Also, do some other minor fixes.

Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>

* remove --break-system-packages and address docker build warnings. (#5021)

* remove --break-system-packages and address docker build warnings.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* add github workflow to test Dockerfile.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* Revert "add github workflow to test Dockerfile."

This reverts commit 8686f18.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* More

* Other sentence formatting (#5031)

* Add second dot to abbreviations
* Remove some random periods
* Escape some periods
* Convert some links
* Add formatted block

* Enable github/workflow to verify Dockerfile. (#5035)

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* Update Using-Node-Interfaces-Template-Class.rst (#5038)

Added missing ``Output:`` before the terminal output for consistency reasons

Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* added Publishing-Messages-Using-YAML-Files.rst and edited Intermediat… (#5034)

* added Publishing-Messages-Using-YAML-Files.rst and edited Intermediate.rst

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate.rst

Thanks for pointing it out, I didnt notice the extention beeing there

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

---------

Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>

* more bits

* Some rollbacks

* Ignore

* Use sphinx_tamer

* More Sphinx Config

* Updated checker using subprocess

* Make sphinx-lint-with-ros exit with non-zero error codes

Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Wrap r2d2.rviz in backticks

Signed-off-by: Shane Loretz <sloretz@intrinsic.ai>

* Wrap URL in RST link

Signed-off-by: Shane Loretz <sloretz@intrinsic.ai>

* Add empty line after section title

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Add empty line after section title

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Use normalized project name sphinx-tamer

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Make sentence checker ignore `.idl`

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>
Signed-off-by: Shane Loretz <sloretz@intrinsic.ai>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: Christophe Bedard <christophe.bedard@apex.ai>
Co-authored-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Co-authored-by: Shane Loretz <shane.loretz@gmail.com>
Co-authored-by: Shane Loretz <sloretz@intrinsic.ai>
(cherry picked from commit 784fd45)

# Conflicts:
#	source/Installation/Alternatives/RHEL-Development-Setup.rst
#	source/Installation/Alternatives/Windows-Development-Setup.rst
#	source/Installation/_rosdep_Linux_Mint.rst
fujitatomoya added a commit that referenced this pull request Mar 14, 2025
* Sentence checker (#4592)

* Sentence Checker

* Some edits

* Update About-Executors.rst

* More sentence breaks

* More cleanup

* More sentences

* Fix smart quotes

* fix group tag indent for ROSCon 2023 and 2024 contents. (#5016)

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* Clean up sentences II (white space changes only) (#5017)

* Exclude literals parts from bold parts in 'Ament Lint CLI Utilities' (#5024)

You can't do nested inline markup in RST:

**Can't do ``this`` in RST.**

The simplest solution is to just exclude the ``literal`` part.

Also, do some other minor fixes.

Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>

* remove --break-system-packages and address docker build warnings. (#5021)

* remove --break-system-packages and address docker build warnings.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* add github workflow to test Dockerfile.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* Revert "add github workflow to test Dockerfile."

This reverts commit 8686f18.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* More

* Other sentence formatting (#5031)

* Add second dot to abbreviations
* Remove some random periods
* Escape some periods
* Convert some links
* Add formatted block

* Enable github/workflow to verify Dockerfile. (#5035)

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* Update Using-Node-Interfaces-Template-Class.rst (#5038)

Added missing ``Output:`` before the terminal output for consistency reasons

Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* added Publishing-Messages-Using-YAML-Files.rst and edited Intermediat… (#5034)

* added Publishing-Messages-Using-YAML-Files.rst and edited Intermediate.rst

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate.rst

Thanks for pointing it out, I didnt notice the extention beeing there

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

---------

Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>

* more bits

* Some rollbacks

* Ignore

* Use sphinx_tamer

* More Sphinx Config

* Updated checker using subprocess

* Make sphinx-lint-with-ros exit with non-zero error codes

Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Wrap r2d2.rviz in backticks

Signed-off-by: Shane Loretz <sloretz@intrinsic.ai>

* Wrap URL in RST link

Signed-off-by: Shane Loretz <sloretz@intrinsic.ai>

* Add empty line after section title

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Add empty line after section title

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Use normalized project name sphinx-tamer

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Make sentence checker ignore `.idl`

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>
Signed-off-by: Shane Loretz <sloretz@intrinsic.ai>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: Christophe Bedard <christophe.bedard@apex.ai>
Co-authored-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Co-authored-by: Shane Loretz <shane.loretz@gmail.com>
Co-authored-by: Shane Loretz <sloretz@intrinsic.ai>
(cherry picked from commit 784fd45)

# Conflicts:
#	source/Installation/Alternatives/Windows-Development-Setup.rst

* resolve conflict.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* make linter happy.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: David V. Lu!! <davidvlu@gmail.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
christophebedard pushed a commit that referenced this pull request Mar 14, 2025
* Sentence checker (#4592)

* Sentence Checker

* Some edits

* Update About-Executors.rst

* More sentence breaks

* More cleanup

* More sentences

* Fix smart quotes

* fix group tag indent for ROSCon 2023 and 2024 contents. (#5016)

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* Clean up sentences II (white space changes only) (#5017)

* Exclude literals parts from bold parts in 'Ament Lint CLI Utilities' (#5024)

You can't do nested inline markup in RST:

**Can't do ``this`` in RST.**

The simplest solution is to just exclude the ``literal`` part.

Also, do some other minor fixes.

Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>

* remove --break-system-packages and address docker build warnings. (#5021)

* remove --break-system-packages and address docker build warnings.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* add github workflow to test Dockerfile.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* Revert "add github workflow to test Dockerfile."

This reverts commit 8686f18.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* More

* Other sentence formatting (#5031)

* Add second dot to abbreviations
* Remove some random periods
* Escape some periods
* Convert some links
* Add formatted block

* Enable github/workflow to verify Dockerfile. (#5035)

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* Update Using-Node-Interfaces-Template-Class.rst (#5038)

Added missing ``Output:`` before the terminal output for consistency reasons

Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* added Publishing-Messages-Using-YAML-Files.rst and edited Intermediat… (#5034)

* added Publishing-Messages-Using-YAML-Files.rst and edited Intermediate.rst

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate.rst

Thanks for pointing it out, I didnt notice the extention beeing there

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

* Update source/Tutorials/Intermediate/Publishing-Messages-Using-YAML-Files.rst

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>

---------

Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>

* more bits

* Some rollbacks

* Ignore

* Use sphinx_tamer

* More Sphinx Config

* Updated checker using subprocess

* Make sphinx-lint-with-ros exit with non-zero error codes

Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Wrap r2d2.rviz in backticks

Signed-off-by: Shane Loretz <sloretz@intrinsic.ai>

* Wrap URL in RST link

Signed-off-by: Shane Loretz <sloretz@intrinsic.ai>

* Add empty line after section title

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Add empty line after section title

Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Use normalized project name sphinx-tamer

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

* Make sentence checker ignore `.idl`

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
Signed-off-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>
Signed-off-by: Shane Loretz <shane.loretz@gmail.com>
Signed-off-by: Shane Loretz <sloretz@intrinsic.ai>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: Christophe Bedard <christophe.bedard@apex.ai>
Co-authored-by: Nikos Tziaros <33639811+NickTziaros@users.noreply.github.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
Co-authored-by: Shane Loretz <shane.loretz@gmail.com>
Co-authored-by: Shane Loretz <sloretz@intrinsic.ai>
(cherry picked from commit 784fd45)

# Conflicts:
#	source/Installation/Alternatives/RHEL-Development-Setup.rst
#	source/Installation/Alternatives/Windows-Development-Setup.rst
#	source/Installation/_rosdep_Linux_Mint.rst

* resolve conflicts.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* make linter happy.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

* address review comments.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: David V. Lu!! <davidvlu@gmail.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
@DLu DLu deleted the sentence_checker branch March 16, 2025 02:32
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.

7 participants

Comments