Commits

Steven Kryskalla committed 0953b1d

docs: renaming demos

  • Participants
  • Parent commits c511cdf

Comments (0)

Files changed (4)

File demos/secure/README

 This folder is outside of the "static" folder and is not served up by the app
 directly.
 
-The files here are used for the 003-secure-download example, to show how you
+The files here are used for the 03-secure-download example, to show how you
 can serve up files securely to users only after they've made a purchase.

File docs/index.rst

 
 If you `clone the repository`_ you will see a ``demos`` directory with example uses of :class:`ItemBP`. Each demo is meant to be a standalone application, they do not depend on each other or any other libraries, except for some shared static files (JS and CSS). Here are the current demos:
 
-* `001-simplest`_: Very simple usage of :class:`ItemBP`. Creates a new :class:`ItemBP` then mounts it at the root of a flask app.
-* `002-two-items`_: Shows how multiple :class:`ItemBP` objects can be instantiated and mounted at different URLs on the app. Also shows how templates can be overridden for a specific item.
-* `003-secure-download`_: Shows how to inherit from :class:`ItemBP` to add new behaviors and new routes: 1. Adds a receipt code. 2. Uses that receipt code to make a download link for a PDF. The PDF can only be accessed with a valid receipt code.
+* `01-simplest`_: Very simple usage of :class:`ItemBP`. Creates a new :class:`ItemBP` then mounts it at the root of a flask app.
+* `02-two-items`_: Shows how multiple :class:`ItemBP` objects can be instantiated and mounted at different URLs on the app. Also shows how templates can be overridden for a specific item.
+* `03-secure-download`_: Shows how to inherit from :class:`ItemBP` to add new behaviors and new routes: 1. Adds a receipt code. 2. Uses that receipt code to make a download link for a PDF. The PDF can only be accessed with a valid receipt code.
 
 .. _clone the repository: https://bitbucket.org/lost_theory/flask-stripe-blueprint/src
-.. _001-simplest: https://bitbucket.org/lost_theory/flask-stripe-blueprint/src/tip/demos/001-simplest
-.. _002-two-items: https://bitbucket.org/lost_theory/flask-stripe-blueprint/src/7bab91672357/demos/002-two-items
-.. _003-secure-download: https://bitbucket.org/lost_theory/flask-stripe-blueprint/src/7bab91672357/demos/003-secure-download
+.. _01-simplest: https://bitbucket.org/lost_theory/flask-stripe-blueprint/src/tip/demos/01-simplest
+.. _02-two-items: https://bitbucket.org/lost_theory/flask-stripe-blueprint/src/tip/demos/02-two-items
+.. _03-secure-download: https://bitbucket.org/lost_theory/flask-stripe-blueprint/src/tip/demos/03-secure-download
 
 API documentation
 -----------------

File docs/philosophy.rst

 
 The stripe service keeps a record of purchases that you can view through their
 admin interface or retrieve through the API, so this could be thought of as a
-persistence layer. See the ``003-secure-download`` demo for an example of
+persistence layer. See the `03-secure-download`_ demo for an example of
 using the stripe API to retrieve an existing payment.
 
+.. _03-secure-download: https://bitbucket.org/lost_theory/flask-stripe-blueprint/src/tip/demos/03-secure-download/app.py
+
 To save purchases to a real database of your choosing, just inherit from
 :class:`ItemBP` and override the :meth:`post_purchase` method.
 

File docs/quickstart.rst

 
 .. sidebar:: Finished code
 
-    To see a finished version of this code, check out `default_index.html`_ in the ``001-simplest`` demo directory.
+    To see a finished version of this code, check out `default_index.html`_ in the ``01-simplest`` demo directory.
 
-.. _default_index.html: https://bitbucket.org/lost_theory/flask-stripe-blueprint/src/tip/demos/001-simplest/templates/itemshop/default_index.html
+.. _default_index.html: https://bitbucket.org/lost_theory/flask-stripe-blueprint/src/tip/demos/01-simplest/templates/itemshop/default_index.html
 
 We are using the stripe.js API library, jQuery, a ``demo.js`` file we'll define
 in a bit, and setting our Stripe account's public key. The key in that example