From fb8ca298c1f511e3308777fae358bd44ca3dd9dc Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Tue, 21 Jul 2015 12:44:56 +0200 Subject: Docs: add a separate page with examples --- README.rst | 14 -------------- doc/examples.rst | 11 +++++++++++ doc/index.rst | 7 +++++++ 3 files changed, 18 insertions(+), 14 deletions(-) create mode 100644 doc/examples.rst 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:: -- cgit v1.2.3