Skip to content

Commit a01259e

Browse files
christophebedardmergify[bot]
authored andcommitted
Speficy language for some code-blocks and use ini where appropriate (#5399)
https://pygments.org/docs/lexers/#pygments.lexers.configs.IniLexer Signed-off-by: Christophe Bedard <[email protected]> (cherry picked from commit acbb89e)
1 parent 26adb2a commit a01259e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

source/How-To-Guides/Developing-a-ROS-2-Package.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ More details on distribution can be found in the `official documentation <https:
9090

9191
In your ROS 2 package, you should have a ``setup.cfg`` file which looks like:
9292

93-
.. code-block:: bash
93+
.. code-block:: ini
9494
9595
[develop]
9696
script_dir=$base/lib/<package-name>

source/How-To-Guides/Migrating-from-ROS1/Migrating-CPP-Package-Example.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ Changing the CMake code
324324

325325
Require a newer version of CMake so that ``ament_cmake`` functions work correctly.
326326

327-
.. code-block::
327+
.. code-block:: cmake
328328
329329
cmake_minimum_required(VERSION 3.14.4)
330330

source/How-To-Guides/Migrating-from-ROS1/Migrating-Python-Package-Example.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ Create a ``setup.cfg`` file next to the ``package.xml``.
382382
383383
Put the following content into it:
384384

385-
.. code-block::
385+
.. code-block:: ini
386386
387387
[develop]
388388
script_dir=$base/lib/talker_py

source/Tutorials/Beginner-Client-Libraries/Writing-A-Simple-Py-Publisher-And-Subscriber.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Don't forget to save.
259259

260260
The contents of the ``setup.cfg`` file should be correctly populated automatically, like so:
261261

262-
.. code-block:: console
262+
.. code-block:: ini
263263
264264
[develop]
265265
script_dir=$base/lib/py_pubsub

0 commit comments

Comments
 (0)