summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAsk Solem <ask@celeryproject.org>2011-09-12 10:25:42 +0100
committerAsk Solem <ask@celeryproject.org>2011-09-12 10:25:42 +0100
commit09146d0b933b96aa5d5675a54cba6402f0970210 (patch)
treeb0bc24a4401a8051f7a094f12c60339ba6ae68ed /docs
parente845c0140448c4afbeeb7484f891defda3d6211f (diff)
downloadkombu-09146d0b933b96aa5d5675a54cba6402f0970210.tar.gz
Adds examples to userguide
Diffstat (limited to 'docs')
-rw-r--r--docs/_theme/celery/static/celery.css_t1
-rw-r--r--docs/userguide/connections.rst2
-rw-r--r--docs/userguide/examples.rst27
-rw-r--r--docs/userguide/index.rst2
4 files changed, 31 insertions, 1 deletions
diff --git a/docs/_theme/celery/static/celery.css_t b/docs/_theme/celery/static/celery.css_t
index 18e4c1ee..4274f31f 100644
--- a/docs/_theme/celery/static/celery.css_t
+++ b/docs/_theme/celery/static/celery.css_t
@@ -17,6 +17,7 @@
/* -- page layout ----------------------------------------------------------- */
body {
+ align: left;
font-family: {{ body_font_stack }};
font-size: 17px;
background-color: white;
diff --git a/docs/userguide/connections.rst b/docs/userguide/connections.rst
index c4393e2f..daf3fc07 100644
--- a/docs/userguide/connections.rst
+++ b/docs/userguide/connections.rst
@@ -111,7 +111,7 @@ keyword arguments, these are:
:transport: Default transport if not provided in the URL.
Can be a string specifying the path to the class. (e.g.
``kombu.transport.pyamqplib.Transport``), or one of the aliases:
- ``amqplib``, ``pika``, ``redis``, ``memory``, and so on.
+ ``amqplib``, ``pika``, ``redis``, ``memory``, and so on.
:ssl: Use ssl to connect to the server. Default is ``False``.
Only supported by the amqp transport.
diff --git a/docs/userguide/examples.rst b/docs/userguide/examples.rst
new file mode 100644
index 00000000..ed807780
--- /dev/null
+++ b/docs/userguide/examples.rst
@@ -0,0 +1,27 @@
+Task Queue Example
+==================
+
+Very simple task queue using pickle, with primitive support
+for priorities using different queues.
+
+
+:file:`queues.py`:
+
+.. literalinclude:: ../../examples/simple_task_queue/queues.py
+ :language: python
+
+:file:`worker.py`:
+
+.. literalinclude:: ../../examples/simple_task_queue/worker.py
+ :language: python
+
+:file:`tasks.py`:
+
+.. literalinclude:: ../../examples/simple_task_queue/tasks.py
+ :language: python
+
+.. code-block:: python
+
+:file:`client.py`:
+
+.. literalinclude:: ../../examples/simple_task_queue/client.py
diff --git a/docs/userguide/index.rst b/docs/userguide/index.rst
index 3010fd10..b400e289 100644
--- a/docs/userguide/index.rst
+++ b/docs/userguide/index.rst
@@ -10,4 +10,6 @@
connections
simple
+ examples
+ pools
serialization