From 01b202d90a6d2fb49ca41d6915c1adf7193a4ad5 Mon Sep 17 00:00:00 2001 From: Medhat Gayed Date: Wed, 24 Jan 2018 09:38:12 +1300 Subject: [PATCH] Fix markdown code block. --- README.rst | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/README.rst b/README.rst index 6be9b31..0f34528 100644 --- a/README.rst +++ b/README.rst @@ -19,35 +19,35 @@ Install Django RQ Pulse:: Add it to your `INSTALLED_APPS`: -```python -INSTALLED_APPS = ( - ... - 'django_rq_pulse.apps.DjangoRqPulseConfig', - ... -) -``` +.. code-block:: python + + INSTALLED_APPS = ( + ... + 'django_rq_pulse.apps.DjangoRqPulseConfig', + ... + ) Usage -------- -```python -# Check that rqworkers are running. -# If the actual number of workers is not equal the expected number of workers or -# If there are items in the queue but the queue size is not changing notify admins by email. -python manage.py rq_pulse_check +.. code-block:: python + + # Check that rqworkers are running. + # If the actual number of workers is not equal the expected number of workers or + # If there are items in the queue but the queue size is not changing notify admins by email. + python manage.py rq_pulse_check -# The above command will run with default parameters where -# --expected-num-workers=2 -# --seconds-to-sleep=5 -# --num-retries=5 -# --queue-name="default" + # The above command will run with default parameters where + # --expected-num-workers=2 + # --seconds-to-sleep=5 + # --num-retries=5 + # --queue-name="default" -# You can override these values by passing any or all the parameters to the command like so: -python manage.py rq_pulse_check --expected-num-workers=3 --queue-name="high" + # You can override these values by passing any or all the parameters to the command like so: + python manage.py rq_pulse_check \-\-expected-num-workers=3 \-\-queue-name="high" -# To get a list of the command parameters use the --help parameter. -python manage.py rq_pulse_check --help -``` + # To get a list of the command parameters use the --help parameter. + python manage.py rq_pulse_check --help Running Tests -------------