Skip to content

Commit 88f34e7

Browse files
committed
fix docs building
1 parent 8f69e91 commit 88f34e7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ See Also:
9090
<http://circuitpython.readthedocs.io/en/latest/docs/pyboard/tutorial/repl.html>`_ (the guide linked was written
9191
for the pyboard, but it still works), then input the following:
9292

93-
::
93+
.. code-block:: python
9494
9595
import board
9696
dir(board)
@@ -101,7 +101,8 @@ Without a Context Manager
101101
In the example below, we create the `HCSR04` object directly, get the distance every 2 seconds, then
102102
de-initialize the device.
103103

104-
::
104+
.. code-block:: python
105+
105106
import board
106107
from adafruit_hcsr04 import HCSR04
107108
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 <https://docs.python.o
121122
instance, again get the distance every 2 seconds, but then the context manager handles de-initializing the device for
122123
us.
123124

124-
::
125+
.. code-block:: python
126+
125127
import board
126128
from adafruit_hcsr04 import HCSR04
127129
with HCSR04(trigger_pin=board.D5, echo_pin=board.D6) as sonar:

0 commit comments

Comments
 (0)