summaryrefslogtreecommitdiff
path: root/doc
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 /doc
parent98cc165c5271ecf013b5edcb1886b8408816309b (diff)
Docs: add a separate page with examples
Diffstat (limited to 'doc')
-rw-r--r--doc/examples.rst11
-rw-r--r--doc/index.rst7
2 files changed, 18 insertions, 0 deletions
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::