Skip to content

Commit 89bb5b0

Browse files
author
Steve Martinelli
committed
Add some code-blocks to the docs
Add some basic highlighting for the docs Change-Id: Ifa740856f3ef636bdf0f60f3b7d082c68062fe9b
1 parent 31018bf commit 89bb5b0

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎doc/source/commands.rst‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ objects. In badly formed English it is expressed as "(Take) object1
4747

4848
<object-1> <action> <object-2>
4949

50-
Examples::
50+
Examples:
5151

52-
group add user <group> <user>
52+
.. code-block:: bash
5353
54-
volume type list # 'volume type' is a two-word single object
54+
$ group add user <group> <user>
55+
56+
$ volume type list # 'volume type' is a two-word single object
5557
5658
5759
Command Arguments and Options

‎doc/source/plugins.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Plugins are discovered by enumerating the entry points
1414
found under :py:mod:`openstack.cli.extension` and initializing the specified
1515
client module.
1616

17-
::
17+
.. code-block:: ini
1818
1919
[entry_points]
2020
openstack.cli.extension =
@@ -39,7 +39,7 @@ The client module must implement the following interface functions:
3939
OSC enumerates the plugin commands from the entry points in the usual manner
4040
defined for the API version:
4141

42-
::
42+
.. code-block:: ini
4343
4444
openstack.oscplugin.v1 =
4545
plugin_list = oscplugin.v1.plugin:ListPlugin
@@ -48,7 +48,7 @@ defined for the API version:
4848
Note that OSC defines the group name as :py:mod:`openstack.<api-name>.v<version>`
4949
so the version should not contain the leading 'v' character.
5050

51-
::
51+
.. code-block:: python
5252
5353
DEFAULT_OSCPLUGIN_API_VERSION = '1'
5454

0 commit comments

Comments
 (0)