Browse Source

Added homepage to repo

Ask Solem 15 years ago
parent
commit
189242df28

BIN
docs/homepage/bg.png


BIN
docs/homepage/bg_content.png


BIN
docs/homepage/bg_grass.png


BIN
docs/homepage/bg_top.png


BIN
docs/homepage/documentation.png


+ 5 - 0
docs/homepage/examplerun.py

@@ -0,0 +1,5 @@
+
+>>> result = add.delay(8, 8)
+>>> result.wait() # wait for and return the result
+16
+

+ 8 - 0
docs/homepage/exampletask.py

@@ -0,0 +1,8 @@
+from celery.decorators import task
+
+
+@task
+def add(x, y):
+    return x + y
+
+

BIN
docs/homepage/favicon.png


BIN
docs/homepage/favicon_128.png


BIN
docs/homepage/favicon_32.png


BIN
docs/homepage/favicon_64.png


+ 148 - 0
docs/homepage/index.html

@@ -0,0 +1,148 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<meta name="keywords" content="task queue, job queue, asynchronous, rabbitmq, amqp,
+redis, django, python, webhooks, queue, distributed">
+<meta name="description" content="open source distributed task queue" >
+<link rel="icon" type="image/png" href="favicon.png">
+<meta name="viewport" content="width=320, user-scalable=no">
+<link rel="apple-touch-icon" href="favicon_64.png"/>
+<title>Celery - The Distributed Task Queue</title>
+<link rel="stylesheet" href="main.css"/>
+<link rel="stylesheet" href="trac.css"/>
+</head>
+
+<body>
+<div id="navbar">
+  <div class="iStretch">
+    <div class="link" id="current"><a href="#">Home</a></div>
+    <div class="link"><a href="http://github.com/ask/celery">Code</a></div>
+    <div class="link"><a href="docs/">Documentation</a></div>
+    <div class="link"><a href="http://ask.github.com/celery/getting-started/">Tutorials</a></div>
+    <div class="link"><a href="http://pypi.python.org/pypi/celery">Download</a></div>
+  </div>
+</div>
+
+<div class="iStretch">
+
+  <div id="topcontainer">
+  <ul>
+    <li>Background Processing
+    <li>Distributed
+    <li>Asynchronous/Synchronous
+    <li>Concurrency
+    <li>Periodic Tasks
+    <li>Retries
+  </ul>
+  </div>
+
+  <div id="contentcontainer">
+
+    <div class="column">
+        <h2>Distributed Task Queue</h2>
+        <p>
+        Celery is a task queue/job queue based on distributed message passing.
+        It is focused on real-time operation, but has support for scheduling
+        as well.</p>
+
+        <p>The execution units, called tasks, are executed concurrently on one
+        or more worker servers, asynchronously (in the background) or
+        synchronously (wait until ready).</p>
+
+        <p>Celery is already used in production to process millions of tasks
+        a day.</p>
+
+        <p>It was first created for Django, but is now also usable from Python.
+        It can also <a href="http://ask.github.com/celery/userguide/remote-tasks.html">operate with other languages</a> via HTTP+JSON.</p>
+        <h3>Example</h3>
+        <p>This is a simple task adding two numbers:</p>
+<div class="highlight"><pre><span class="kn">from</span> <span class="nn">celery.decorators</span> <span class="kn">import</span> <span class="n">task</span>
+
+<span class="nd">@task</span>
+<span class="k">def</span> <span class="nf">add</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">):</span>
+    <span class="k">return</span> <span class="n">x</span> <span class="o">+</span> <span class="n">y</span>
+</pre></div>
+
+        <p>You can execute the task in the background, or wait for it to
+        finish:</p>
+
+<div class="highlight"><pre><span class="o">&gt;&gt;&gt;</span> <span class="n">result</span> <span class="o">=</span> <span class="n">add</span><span class="o">.</span><span class="n">delay</span><span class="p">(</span><span class="mi">8</span><span class="p">,</span> <span class="mi">8</span><span class="p">)</span>
+<span class="o">&gt;&gt;&gt;</span> <span class="n">result</span><span class="o">.</span><span class="n">wait</span><span class="p">()</span> <span class="c"># wait for and return the result</span>
+<span class="mi">16</span>
+</pre></div>
+
+    <h3>Getting Started</h3>
+
+
+    <ol>
+        <li>Install celery by download or <code>pip install -U celery</code></li>
+        <li>Set up <a href="http://ask.github.com/celery/getting-started/broker-installation.html">RabbitMQ</a>
+        or one of the <a href="http://ask.github.com/celery/tutorials/otherqueues.html">ghetto queue</a>
+        solutions.
+        <li>Select one of the following guides:
+        <ul>
+            <li><a href="http://ask.github.com/celery/getting-started/first-steps-with-python.html">First steps with Python</a></li>
+            <li><a href="http://ask.github.com/celery/getting-started/first-steps-with-django.html">First steps with Django</a></li>
+        </ul>
+    </ol>
+
+    <h3>Community</h3>
+
+    <p>There is a <a href="http://groups.google.com/group/celery-users">mailing-list</a>
+    available for general discussion.</p>
+
+    <p>For those craving real, human interaction, there is also an IRC channel
+    (<code>#celery</code> on <code>irc.freenode.net</code>).</p>
+
+    <p>Finally, if you find a bug or would like to request a feature,
+    please <a href="http://github.com/ask/celery/issues">submit an
+        issue</a>.</p>
+
+    <div class="hidden">
+        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+        </p>
+        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+        </p>
+        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+        </p>
+    </div>
+    </div>
+
+    <div class="column">
+
+      <span class="newsitem">
+      <h2>1.0 is in beta.</h2>
+      <h4>By Ask on 08.02.2010</h4>
+      <p>1.0 is scheduled to be released this week! Please help us test the latest
+      <a href="http://github.com/ask/celery/tarball/v1.0.0-pre4">release
+          candiate</a> to make this happen. To upgrade from an earlier
+      version, please read the <a href="http://ask.github.com/celery/changelog.html">changelog</a>.
+      <hr>
+      </span>
+
+      <span class="newsitem">
+      <h2>New website.</h2>
+      <h4>By Ask on 08.02.2010</h4>
+      <p>We finally got a home page. Big thanks to <a href="http://helmersworks.com">Jan Henrik Helmers</a>
+      <hr>
+      </span>
+
+    </div>
+
+  </div>
+
+ <div id="credits">
+     <div class="iStretch">Copyright (c) 2009-2010, <a href="http://twitter.com/asksol">Ask Solem</a> and
+         <a href="http://github.com/ask/celery/blob/master/AUTHORS">contributors</a>.<br>
+ Page design by <a href="http://www.helmersworks.com/">Jan Henrik Helmers</a>
+   </div>
+ </div>
+
+
+</div>
+</body>
+</html>

BIN
docs/homepage/logo.jpg


BIN
docs/homepage/logo.png


+ 197 - 0
docs/homepage/main.css

@@ -0,0 +1,197 @@
+body {
+  background: #e1edc1 url(bg.png) 0 0 repeat;
+  color: #000;
+  font-family: "Helvetica Neue", arial, sans-serif;
+  line-height: 1.75em;
+  font-size: 1em;
+  margin: 0;
+}
+
+.iStretch {
+  margin: 0 auto;
+  min-width: 600px;
+  max-width: 850px;
+  width: 80%;
+}
+
+.highlight {
+    background: #222;
+    border: 5px solid #222;
+    border-radius: 3px;
+}
+
+.column {
+    line-height: 1.50em;
+}
+
+#navbar {
+  line-height: 1.9em;
+  position: fixed;
+  background: transparent url(bg_top.png) 0 100% repeat-x;
+  height: 40px;
+  top: 0;
+  left: 0;
+  right: 0;
+  color: #e1edc1;
+  text-shadow: 0 1px 1px #000;
+}
+
+#navbar a, #credits a {
+  color: #fff;
+  text-decoration: none;
+}
+
+#navbar .iStretch div {
+  float: right;
+  padding: 0 15px;
+  margin: 0 1px;
+  height: 32px;
+  text-align: center;
+}
+
+#navbar div:hover {
+  background: #314016;
+}
+
+#navbar .iStretch div#current {
+  float: left;
+  background-color: #314016;
+}
+
+#topcontainer {
+  padding-top: 25px;
+  padding-bottom: 20px;
+  height: 165px;
+  border-left: 1px solid #fff;
+  border-right: 1px solid #fff;
+  background: #466807 url(logo.jpg) 50% 70% repeat-x;
+  box-shadow: 0 0 25px #618224;
+  -webkit-box-shadow: 0 0 25px #618224;
+  -moz-box-shadow: 0 0 25px #618224;
+  text-align: right;
+}
+
+#topcontainer ul{
+  padding: 5px 20px;
+  font-size: 0.9em;
+  line-height: 1.75em;  
+  color: #fff;
+  list-style: none;
+  text-shadow: 0 1px 1px #000;
+}
+
+#contentcontainer {
+  border: 1px solid #fff;
+  background: #e1edc1 url(bg_content.png) 0 0 repeat;
+  box-shadow: 0 0 25px #618224;
+  -webkit-box-shadow: 0 0 25px #618224;
+  -moz-box-shadow: 0 0 25px #618224;
+}
+
+.column {
+  display: inline-block;
+  width: 60%;
+  padding-right: 2.9%;
+  padding-left: 2%;
+  font-size: 0.9em;
+  vertical-align: top;
+}
+
+.newsitem h2 {
+    font-size: 1.1em;
+}
+
+.column:last-child {
+  border-left: 1px solid #fff;
+  width: 28%;
+}
+
+#credits {
+  bottom: 0;
+  left: 0;
+  right: 0;
+  position: fixed;
+  /*background: transparent url(bg_grass.png) 50% 0 repeat-x;*/
+  height: 35px;
+  padding-top: 45px;
+  line-height: 1.2em;
+  color: #e1edc1;
+  text-shadow: 0 1px 1px #000;
+  font-size: 0.7em;
+}
+
+/* Restyling default elements */
+
+.column a {
+  background-color: #c1d29a;
+  border: 1px solid transparent;
+  border-radius: 4px;
+  -moz-border-radius: 4px;
+  -webkit-border-radius: 4px;
+  padding: 0px 4px;
+  line-height: 0;
+  text-decoration: none;
+  color: #000;
+}
+
+.column a:hover {
+  background-color: #acbc85;
+}
+
+h2 {
+  margin-bottom: 0;
+  font-size: 1.8em;
+  letter-spacing: -0.03em;
+  text-shadow: 0 1px #fff;
+}
+
+h3 {
+  margin-bottom: 0;
+  font-size: 1.2em;
+  text-shadow: 0 1px #fff;
+}
+
+.newsitem h2 {
+  font-size: 1.2em;
+  background-color: #314016;
+  background-color: rgba(49,64,22,0.25);
+  border-bottom: 2px solid #314016;
+  line-height: 1em;
+  letter-spacing: 0;
+  text-shadow: none;
+}
+
+.newsitem h4 {
+  font-size: 0.8em;
+  margin: 0;
+  line-height: 2em;
+  margin-bottom: -0.5em;
+  font-weight: normal;
+}
+
+p.introduction {
+  line-height: 1.6em;
+  font-weight: bold;
+}
+
+hr {
+  border-top: 1px solid #547a1a;
+  border-bottom: 1px solid #f1f5dd;
+
+}
+
+.hidden {
+    color: #e1edc1;
+}
+
+
+/* Hacking it up for the iPod */
+@media handheld, only screen and (max-device-width: 480px) {
+  body {}
+  #navbar {background: transparent}
+  #navbar a {background: transparent}
+  #topcontainer ul {display: none}
+  #credits {position: static; background: transparent}
+  .iStretch {margin: auto 20px !important}
+}
+

+ 9 - 0
docs/homepage/point0.html

@@ -0,0 +1,9 @@
+      <span class="newsitem">
+      <h2>Celery 1.0 released</h2>
+      <h4>By Ask on 06.02.2010</h4>
+      <p>Celery 1.0 has finally been released! It's available on <a
+          href="#">PyPI</a> for downloading. You can also install it via <code>pip install -U
+          celery</code>. You can read the announcement <a href="#">here</a></p>
+      <hr>
+      </span>
+

+ 69 - 0
docs/homepage/trac.css

@@ -0,0 +1,69 @@
+.hll { background-color: #404040 }
+.c { color: #999999; font-style: italic } /* Comment */
+.err { color: #a61717; background-color: #e3d2d2 } /* Error */
+.g { color: #d0d0d0 } /* Generic */
+.k { color: #6ab825; font-weight: bold } /* Keyword */
+.l { color: #d0d0d0 } /* Literal */
+.n { color: #d0d0d0 } /* Name */
+.o { color: #d0d0d0 } /* Operator */
+.x { color: #d0d0d0 } /* Other */
+.p { color: #d0d0d0 } /* Punctuation */
+.cm { color: #999999; font-style: italic } /* Comment.Multiline */
+.cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */
+.c1 { color: #999999; font-style: italic } /* Comment.Single */
+.cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */
+.gd { color: #d22323 } /* Generic.Deleted */
+.ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */
+.gr { color: #d22323 } /* Generic.Error */
+.gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
+.gi { color: #589819 } /* Generic.Inserted */
+.go { color: #cccccc } /* Generic.Output */
+.gp { color: #aaaaaa } /* Generic.Prompt */
+.gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */
+.gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */
+.gt { color: #d22323 } /* Generic.Traceback */
+.kc { color: #6ab825; font-weight: bold } /* Keyword.Constant */
+.kd { color: #6ab825; font-weight: bold } /* Keyword.Declaration */
+.kn { color: #6ab825; font-weight: bold } /* Keyword.Namespace */
+.kp { color: #6ab825 } /* Keyword.Pseudo */
+.kr { color: #6ab825; font-weight: bold } /* Keyword.Reserved */
+.kt { color: #6ab825; font-weight: bold } /* Keyword.Type */
+.ld { color: #d0d0d0 } /* Literal.Date */
+.m { color: #3677a9 } /* Literal.Number */
+.s { color: #ed9d13 } /* Literal.String */
+.na { color: #bbbbbb } /* Name.Attribute */
+.nb { color: #24909d } /* Name.Builtin */
+.nc { color: #447fcf; text-decoration: underline } /* Name.Class */
+.no { color: #40ffff } /* Name.Constant */
+.nd { color: #ffa500 } /* Name.Decorator */
+.ni { color: #d0d0d0 } /* Name.Entity */
+.ne { color: #bbbbbb } /* Name.Exception */
+.nf { color: #447fcf } /* Name.Function */
+.nl { color: #d0d0d0 } /* Name.Label */
+.nn { color: #447fcf; text-decoration: underline } /* Name.Namespace */
+.nx { color: #d0d0d0 } /* Name.Other */
+.py { color: #d0d0d0 } /* Name.Property */
+.nt { color: #6ab825; font-weight: bold } /* Name.Tag */
+.nv { color: #40ffff } /* Name.Variable */
+.ow { color: #6ab825; font-weight: bold } /* Operator.Word */
+.w { color: #666666 } /* Text.Whitespace */
+.mf { color: #3677a9 } /* Literal.Number.Float */
+.mh { color: #3677a9 } /* Literal.Number.Hex */
+.mi { color: #3677a9 } /* Literal.Number.Integer */
+.mo { color: #3677a9 } /* Literal.Number.Oct */
+.sb { color: #ed9d13 } /* Literal.String.Backtick */
+.sc { color: #ed9d13 } /* Literal.String.Char */
+.sd { color: #ed9d13 } /* Literal.String.Doc */
+.s2 { color: #ed9d13 } /* Literal.String.Double */
+.se { color: #ed9d13 } /* Literal.String.Escape */
+.sh { color: #ed9d13 } /* Literal.String.Heredoc */
+.si { color: #ed9d13 } /* Literal.String.Interpol */
+.sx { color: #ffa500 } /* Literal.String.Other */
+.sr { color: #ed9d13 } /* Literal.String.Regex */
+.s1 { color: #ed9d13 } /* Literal.String.Single */
+.ss { color: #ed9d13 } /* Literal.String.Symbol */
+.bp { color: #24909d } /* Name.Builtin.Pseudo */
+.vc { color: #40ffff } /* Name.Variable.Class */
+.vg { color: #40ffff } /* Name.Variable.Global */
+.vi { color: #40ffff } /* Name.Variable.Instance */
+.il { color: #3677a9 } /* Literal.Number.Integer.Long */