Skip to content

Commit 2929935

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

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

+1-1
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

+1-1
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

+1-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ Don't forget to save.
264264

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

267-
.. code-block:: console
267+
.. code-block:: ini
268268
269269
[develop]
270270
script_dir=$base/lib/py_pubsub

0 commit comments

Comments
 (0)