docs: including more code samples

This commit is contained in:
Andy Meneely
2016-11-15 18:08:52 -05:00
parent b4068d2ac6
commit c1b8cf14ab
4 changed files with 27 additions and 4 deletions
+19
View File
@@ -60,3 +60,22 @@ The ``xlsx`` method also takes in a block that will be executed for each cell in
Examples
--------
To get the sample Excel files, go to `its source <https://github.com/andymeneely/squib/tree/dev/samples/data>`_
.. literalinclude:: ../../samples/data/_csv.rb
:language: ruby
:linenos:
Here's the sample.csv
.. literalinclude:: ../../samples/data/sample.csv
:language: csv
:linenos:
Here's the quantity_explosion.csv
.. literalinclude:: ../../samples/data/quantity_explosion.csv
:language: csv
:linenos:
+1 -3
View File
@@ -289,6 +289,4 @@ angle
Examples
--------
.. raw:: html
<script src="https://gist.github.com/andymeneely/52d7b8e332194946bc69.js"></script>
See :doc:`/text_feature`.
+6
View File
@@ -48,3 +48,9 @@ The ``xlsx`` method also takes in a block that will be executed for each cell in
Examples
--------
To get the sample Excel files, go to `its source <https://github.com/andymeneely/squib/tree/dev/samples/data>`_
.. literalinclude:: ../../samples/data/_excel.rb
:language: ruby
:linenos: