summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2015-07-21 12:44:56 +0200
committerMatthias Geier <Matthias.Geier@gmail.com>2015-07-21 12:44:56 +0200
commitfb8ca298c1f511e3308777fae358bd44ca3dd9dc (patch)
tree06057cc2740f519ae6bfda26c0c71ba10b1851ea
parent98cc165c5271ecf013b5edcb1886b8408816309b (diff)
Docs: add a separate page with examples
-rw-r--r--README.rst14
-rw-r--r--doc/examples.rst11
-rw-r--r--doc/index.rst7
3 files changed, 18 insertions, 14 deletions
diff --git a/README.rst b/README.rst
index d8c6419..9c83abe 100644
--- a/README.rst
+++ b/README.rst
@@ -213,17 +213,3 @@ Blocking Read/Write Streams
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Coming soon!
-
-More Examples
-^^^^^^^^^^^^^
-
-Have a look in the ``examples/`` directory.
-
-Copyright Information
----------------------
-
-python-sounddevice (MIT License)
- Copyright (c) 2015 Matthias Geier
-
-PortAudio_ Portable Real-Time Audio Library (MIT License)
- Copyright (c) 1999-2011 Ross Bencina and Phil Burk
diff --git a/doc/examples.rst b/doc/examples.rst
new file mode 100644
index 0000000..61d80d2
--- /dev/null
+++ b/doc/examples.rst
@@ -0,0 +1,11 @@
+:orphan:
+
+Example Program(s)
+==================
+
+Play a Sound File
+-----------------
+
+:download:`play_file.py <../examples/play_file.py>`
+
+.. literalinclude:: ../examples/play_file.py
diff --git a/doc/index.rst b/doc/index.rst
index 6a72d04..3907d04 100644
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -2,6 +2,13 @@
.. include:: ../README.rst
+.. only:: html
+
+ More Examples
+ ^^^^^^^^^^^^^
+
+ For more examples, have a look at the :doc:`examples`.
+
.. include:: ../CONTRIBUTING.rst
.. default-role::