diff --git a/doc/source/user/rating/index.rst b/doc/source/user/rating/index.rst index d9f246ab..e9f081d5 100644 --- a/doc/source/user/rating/index.rst +++ b/doc/source/user/rating/index.rst @@ -28,7 +28,7 @@ List available modules List available rating modules: -.. code:: console +.. code-block:: console $ cloudkitty module list +-----------+---------+----------+ @@ -44,7 +44,7 @@ Enable or disable module Enable the hashmap rating module: -.. code:: console +.. code-block:: console $ cloudkitty module enable hashmap +---------+---------+----------+ @@ -55,7 +55,7 @@ Enable the hashmap rating module: Disable the pyscripts rating module: -.. code:: console +.. code-block:: console $ cloudkitty module disable pyscripts +-----------+---------+----------+ @@ -69,7 +69,7 @@ Set priority Set the hashmap rating module priority to 100: -.. code:: console +.. code-block:: console $ cloudkitty module set priority hashmap 100 +---------+---------+----------+ diff --git a/doc/source/user/rating/pyscripts.rst b/doc/source/user/rating/pyscripts.rst index 1b08a0ae..9b43741e 100644 --- a/doc/source/user/rating/pyscripts.rst +++ b/doc/source/user/rating/pyscripts.rst @@ -15,7 +15,7 @@ Custom module example Price definitions ----------------- -.. code:: python +.. code-block:: python import decimal @@ -36,7 +36,7 @@ Price definitions Price calculation functions --------------------------- -.. code:: python +.. code-block:: python # These functions return the price of a service usage on a collect period. # The price is always equivalent to the price per unit multiplied by @@ -71,7 +71,7 @@ Price calculation functions Processing the data ------------------- -.. code:: python +.. code-block:: python def process(data): # The 'data' parameter is a list of dictionaries containing a @@ -100,9 +100,9 @@ Using your Script for rating Enabling the PyScripts module ----------------------------- -To use you script for rating, you will need to enable the pyscripts module +To use your script for rating, you will need to enable the pyscripts module -.. code:: raw +.. code-block:: console $ cloudkitty module enable pyscripts +-----------+---------+----------+ @@ -116,7 +116,7 @@ Adding the script to CloudKitty Create the script and specify its name. -.. code:: raw +.. code-block:: console $ cloudkitty pyscript create my_awesome_script script.py +-------------------+--------------------------------------+------------------------------------------+---------------------------------------+