doc/hubs: toggle example snippet

This shows how to add and include an example project as a snippet.
This commit is contained in:
Laurens Valk
2019-12-10 09:28:08 +01:00
parent 613998661e
commit 2e530a4b30
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -17,6 +17,13 @@
.. automethod:: pybricks._instances.light.on
.. toggle-header::
:header: **Show/hide example**
**Example: Turn the light on and change the color.**
.. literalinclude:: ../../pybricks-projects/snippets/ev3/light_color/main.py
.. automethod:: pybricks._instances.light.off
.. rubric:: Using the speaker