Skip to content

Commit eacbde8

Browse files
committed
Add example programs to the Sphinx docs
1 parent 0fbff41 commit eacbde8

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

‎doc/examples.rst‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
:orphan:
2+
3+
Example Programs
4+
================
5+
6+
Chatty Client
7+
-------------
8+
9+
:download:`chatty_client.py <../examples/chatty_client.py>`
10+
11+
.. literalinclude:: ../examples/chatty_client.py
12+
13+
Pass-Through Client
14+
-------------------
15+
16+
:download:`thru_client.py <../examples/thru_client.py>`
17+
18+
.. literalinclude:: ../examples/thru_client.py
19+
20+
MIDI Monitor
21+
------------
22+
23+
:download:`midi_monitor.py <../examples/midi_monitor.py>`
24+
25+
.. literalinclude:: ../examples/midi_monitor.py
26+
27+
MIDI Chord Generator
28+
--------------------
29+
30+
:download:`midi_chords.py <../examples/midi_chords.py>`
31+
32+
.. literalinclude:: ../examples/midi_chords.py

‎doc/index.rst‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
.. include:: ../README.rst
44

5+
.. only:: html
6+
7+
For more examples, have a look at the :doc:`examples`.
8+
59
.. include:: ../CONTRIBUTING.rst
610

711
.. default-role::

0 commit comments

Comments
 (0)