diff --git a/docs/index.rst b/docs/index.rst index c5afa12..8f5dfc6 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -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() @@ -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 ================