Skip to content

Commit

Permalink
Clean up some text on the home page, remove the accidental Sybil exam…
Browse files Browse the repository at this point in the history
…ple.
  • Loading branch information
pauleveritt committed Apr 27, 2019
1 parent 6a42ae3 commit 0d9401a
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Imagine an application where customers walk in the door and you want a `Greeter`
def __call__(self):
return self.greeting + ' !!'
We are writing a pluggable application which has a "registry" which processes operations in a "container":
Our application is pluggable: it has a "registry" which processes operations in a "container":

>>> from wired import ServiceRegistry
>>> registry = ServiceRegistry()
Expand Down Expand Up @@ -99,36 +99,6 @@ The app processes a customer by making a container and doing the operation:
>>> print(greeting)
Hello !!


Sample Documentation
====================

Let's put something in the Sybil document's namespace:

.. invisible-code-block: python
remember_me = b'see how namespaces work?'
Suppose we define a function, convoluted and pointless but shows stuff nicely:

.. code-block:: python
import sys
def prefix_and_print(message):
print('prefix:', message.decode('ascii'))
Now we can use a doctest REPL to show it in action:

>>> prefix_and_print(remember_me)
prefix: see how namespaces work?

The namespace carries across from example to example, no matter what parser:

>>> remember_me
b'see how namespaces work?'


More Information
================

Expand Down

0 comments on commit 0d9401a

Please sign in to comment.