From 88f34e75829819490b64d8fd4140965855720b84 Mon Sep 17 00:00:00 2001 From: FoamyGuy Date: Sun, 21 Jun 2020 08:26:06 -0500 Subject: [PATCH] fix docs building --- README.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 7a9fa93..6fb1074 100644 --- a/README.rst +++ b/README.rst @@ -90,7 +90,7 @@ See Also: `_ (the guide linked was written for the pyboard, but it still works), then input the following: - :: + .. code-block:: python import board dir(board) @@ -101,7 +101,8 @@ Without a Context Manager In the example below, we create the `HCSR04` object directly, get the distance every 2 seconds, then de-initialize the device. -:: +.. code-block:: python + import board from adafruit_hcsr04 import HCSR04 sonar = HCSR04(trigger_pin=board.D5, echo_pin=board.D6) @@ -121,7 +122,8 @@ In the example below, we use a context manager (the `with