You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by pq...@apache.org on 2010/01/02 08:48:20 UTC

svn commit: r895144 - in /incubator/libcloud/site: about.html devinfo.html getting-started.html index.html js/libcloud.js

Author: pquerna
Date: Sat Jan  2 07:48:19 2010
New Revision: 895144

URL: http://svn.apache.org/viewvc?rev=895144&view=rev
Log:
split up index.html into multiple pages, and link to the generated API docs

Added:
    incubator/libcloud/site/about.html   (with props)
    incubator/libcloud/site/devinfo.html   (with props)
    incubator/libcloud/site/getting-started.html   (with props)
Modified:
    incubator/libcloud/site/index.html
    incubator/libcloud/site/js/libcloud.js

Added: incubator/libcloud/site/about.html
URL: http://svn.apache.org/viewvc/incubator/libcloud/site/about.html?rev=895144&view=auto
==============================================================================
--- incubator/libcloud/site/about.html (added)
+++ incubator/libcloud/site/about.html Sat Jan  2 07:48:19 2010
@@ -0,0 +1,51 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+  <title>libcloud - about</title>
+  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
+  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js" type="text/javascript"></script>
+  <script src="js/chili/jquery.chili-2.2.js" type="text/javascript"></script>
+  <script type="text/javascript">
+    ChiliBook.recipeFolder = "js/chili/";
+  </script>
+  <script src="js/libcloud.js" type="text/javascript"></script>
+  <link rel="stylesheet" href="css/screen.css" type="text/css">
+  <link rel="stylesheet" href="css/libcloud.css" type="text/css">
+  <link rel="icon" type="image/png" href="images/favicon.png"/>
+</head>
+<body>
+  <div class="container">
+    <div id="header" class="span-24 last">
+      <h1>libcloud <span>a unified interface to the cloud</span></h1>
+    </div><!--/#header-->
+    <div id="banner" class="span-24 last">
+      <h2>
+        About
+      </h2>
+    </div><!--/#banner-->
+    <div id="sidebar" class="span-8 border">
+      <h2><a href="home.html">home</a></h2>
+      <h2><a href="getting-started.html">getting started</a></h2>
+      <h2><a href="devinfo.html">developer information</a></h2>
+      <div id="incubator-logo"><a href="http://incubator.apache.org/"><img src="images/apache_incubator.png" alt="apache incubator" /></a></div>
+    </div><!--/#sidebar-->
+    <div id="main" class="span-16 last">
+        <p>libcloud is a pure python client library for interacting with many of the popular cloud server providers. It was created to make it easy for developers to build products that work between any of the services that it supports.</p>
+        <p>libcloud was originally created by the folks over at <a href="https://www.cloudkick.com/">Cloudkick</a>, but has since grown into an independent free software project licensed under the Apache License (2.0).</p>
+        <p>The libcloud team can be contacted at <a href="mailto:libcloud@incubator.apache.org">libcloud@incubator.apache.org</a>.</p>
+    </div><!--/#main-->
+    <div id="footer" class="span-24">
+    </div><!--/#footer-->
+  </div>
+<script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+try {
+var pageTracker = _gat._getTracker("UA-9902461-1");
+pageTracker._trackPageview();
+} catch(err) {}</script>
+</body>
+</html>

Propchange: incubator/libcloud/site/about.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/libcloud/site/about.html
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/libcloud/site/about.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/libcloud/site/about.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: incubator/libcloud/site/devinfo.html
URL: http://svn.apache.org/viewvc/incubator/libcloud/site/devinfo.html?rev=895144&view=auto
==============================================================================
--- incubator/libcloud/site/devinfo.html (added)
+++ incubator/libcloud/site/devinfo.html Sat Jan  2 07:48:19 2010
@@ -0,0 +1,70 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+  <title>libcloud - developer information</title>
+  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
+  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js" type="text/javascript"></script>
+  <script src="js/chili/jquery.chili-2.2.js" type="text/javascript"></script>
+  <script type="text/javascript">
+    ChiliBook.recipeFolder = "js/chili/";
+  </script>
+  <script src="js/libcloud.js" type="text/javascript"></script>
+  <link rel="stylesheet" href="css/screen.css" type="text/css">
+  <link rel="stylesheet" href="css/libcloud.css" type="text/css">
+  <link rel="icon" type="image/png" href="images/favicon.png"/>
+</head>
+<body>
+  <div class="container">
+    <div id="header" class="span-24 last">
+      <h1>libcloud <span>a unified interface to the cloud</span></h1>
+    </div><!--/#header-->
+    <div id="banner" class="span-24 last">
+      <h2>
+        Developer Information
+      </h2>
+    </div><!--/#banner-->
+    <div id="sidebar" class="span-8 border">
+      <h2><a href="index.html">home</a></h2>
+      <h2><a href="about.html">about</a></h2>
+      <h2><a href="getting-started.html">getting started</a></h2>
+      <div id="incubator-logo"><a href="http://incubator.apache.org/"><img src="images/apache_incubator.png" alt="apache incubator" /></a></div>
+    </div><!--/#sidebar-->
+    <div id="main" class="span-16 last">
+      <h2>API Documenation</h2>
+      <p>Generated <a href="apidocs/index.html">API documenation is available</a>.
+
+      <h2>Mailing lists</h2>
+      <p><ul>
+        <li><a href="mailto:libcloud-subscirbe@incubator.apache.org">libcloud@incubator.apache.org</a> - <a href="http://mail-archives.apache.org/mod_mbox/incubator-libcloud/">archives</a> - Main mailing list.</li>
+        <li><a href="mailto:libcloud-commits-subscribe@incubator.apache.org">libcloud-commits@incubator.apache.org</a> - <a href="http://mail-archives.apache.org/mod_mbox/incubator-libcloud-commits/">archives</a> - SVN Commits mailing list.</li>
+      </ul></a>.
+
+      <h2>SVN Repository</h2>
+      <p><ul>
+        <li>Repository: <a href="https://svn.apache.org/repos/asf/incubator/libcloud/trunk/">https://svn.apache.org/repos/asf/incubator/libcloud/trunk/</a></li>
+        <li>ViewVC: <a href="https://svn.apache.org/viewvc/incubator/libcloud/trunk/">https://svn.apache.org/viewvc/incubator/libcloud/trunk/</a></li>
+        </ul>
+      </p>
+
+      <h2>git Repository</h2>
+      <p><a href="git://git.apache.org/libcloud.git">git://git.apache.org/libcloud.git</a></p>
+
+      <h2>github Repository</h2>
+      <p><a href="http://github.com/apache/libcloud">http://github.com/apache/libcloud</a></p>
+
+    </div><!--/#main-->
+    <div id="footer" class="span-24">
+    </div><!--/#footer-->
+  </div>
+<script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+try {
+var pageTracker = _gat._getTracker("UA-9902461-1");
+pageTracker._trackPageview();
+} catch(err) {}</script>
+</body>
+</html>

Propchange: incubator/libcloud/site/devinfo.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/libcloud/site/devinfo.html
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/libcloud/site/devinfo.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/libcloud/site/devinfo.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: incubator/libcloud/site/getting-started.html
URL: http://svn.apache.org/viewvc/incubator/libcloud/site/getting-started.html?rev=895144&view=auto
==============================================================================
--- incubator/libcloud/site/getting-started.html (added)
+++ incubator/libcloud/site/getting-started.html Sat Jan  2 07:48:19 2010
@@ -0,0 +1,81 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+  <title>libcloud - getting started</title>
+  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
+  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js" type="text/javascript"></script>
+  <script src="js/chili/jquery.chili-2.2.js" type="text/javascript"></script>
+  <script type="text/javascript">
+    ChiliBook.recipeFolder = "js/chili/";
+  </script>
+  <script src="js/libcloud.js" type="text/javascript"></script>
+  <link rel="stylesheet" href="css/screen.css" type="text/css">
+  <link rel="stylesheet" href="css/libcloud.css" type="text/css">
+  <link rel="icon" type="image/png" href="images/favicon.png"/>
+</head>
+<body>
+  <div class="container">
+    <div id="header" class="span-24 last">
+      <h1>libcloud <span>a unified interface to the cloud</span></h1>
+    </div><!--/#header-->
+    <div id="banner" class="span-24 last">
+      <h2>
+        Getting Started
+      </h2>
+    </div><!--/#banner-->
+    <div id="sidebar" class="span-8 border">
+      <h2><a href="home.html">home</a></h2>
+      <h2><a href="about.html">about</a></h2>
+      <h2><a href="devinfo.html">developer information</a></h2>
+      <div id="incubator-logo"><a href="http://incubator.apache.org/"><img src="images/apache_incubator.png" alt="apache incubator" /></a></div>
+    </div><!--/#sidebar-->
+    <div id="main" class="span-16 last">
+
+      <h2>example</h2>
+      <p>The following example will list servers across Amazon EC2, Slicehost, and Rackspace Cloud Servers using the same API call. The servers will be represented in a standard Node object</p>
+      <code class="python">from libcloud.types import Provider
+from libcloud.providers import get_driver
+ 
+EC2 = get_driver(Provider.EC2)
+Slicehost = get_driver(Provider.SLICEHOST)
+Rackspace = get_driver(Provider.RACKSPACE)
+ 
+drivers = [ EC2('access key id', 'secret key'),
+            Slicehost('api key'),
+            Rackspace('username', 'api key') ]
+ 
+nodes = [ driver.list_nodes() for driver in drivers ]
+ 
+print nodes
+# [ &lt;Node: provider=Amazon, status=RUNNING, name=bob, ip=1.2.3.4.5&gt;,
+# &lt;Node: provider=Slicehost, status=REBOOT, name=korine, ip=6.7.8.9.10&gt;, ... ]
+
+ 
+# grab the node named "test"
+node = filter(lambda x: x.name == 'test', nodes)[0]
+ 
+# reboot "test"
+node.reboot()      
+</code>
+      <h2>installation</h2>
+      <p>Currently libcloud is only available via SVN. To pull the repository please run:</p>
+      <code>svn co https://svn.apache.org/repos/asf/incubator/libcloud/trunk/ libcloud</code>
+      <p>To install, cd into the libcloud directory, then run:</p>
+      <code>python setup.py install</code>
+    
+    </div><!--/#main-->
+    <div id="footer" class="span-24">
+    </div><!--/#footer-->
+  </div>
+<script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+try {
+var pageTracker = _gat._getTracker("UA-9902461-1");
+pageTracker._trackPageview();
+} catch(err) {}</script>
+</body>
+</html>

Propchange: incubator/libcloud/site/getting-started.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/libcloud/site/getting-started.html
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/libcloud/site/getting-started.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: incubator/libcloud/site/getting-started.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Modified: incubator/libcloud/site/index.html
URL: http://svn.apache.org/viewvc/incubator/libcloud/site/index.html?rev=895144&r1=895143&r2=895144&view=diff
==============================================================================
--- incubator/libcloud/site/index.html (original)
+++ incubator/libcloud/site/index.html Sat Jan  2 07:48:19 2010
@@ -3,8 +3,6 @@
 <head>
   <title>libcloud python library - a unified interface to cloud server providers</title>
   <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
-  <meta name="description" content="libcloud is a pure python client library for interacting with many of the popular cloud server providers. It was created to make it easy for developers to build products that work between any of the services that it supports.">
-  <meta name="keywords" content="libcloud, cloud, cloud servers, cloud management, cloud interoperability, cloud provider, cloud interface, cloud computing, cloud api, cloud standard">
   <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
   <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js" type="text/javascript"></script>
   <script src="js/chili/jquery.chili-2.2.js" type="text/javascript"></script>
@@ -66,32 +64,10 @@
     </div><!--/#feature-->
     <hr>
     <div id="sidebar" class="span-8 border">
-      <!--everything after each h2 needs to be in containing div for accordion to work-->
-      <h2>code</h2>
-      <div class="accordion">
-        <h3>
-          <a href="https://svn.apache.org/repos/asf/incubator/libcloud/trunk/" target="_blank">
-            libcloud is in the ASF Subversion Repository!
-          </a>
-        </h3>
-        If you are a server provider, and would like to be included in libcloud, please consider contributing.
-      </div>
-      <h2>mailing list</h2>
-      <div class="accordion">
-        <h3>
-          <a href="mailto:libcloud@incubator.apache.org" target="_blank">
-            libcloud@incubator.apache.org
-          </a>
-        </h3>
-        We discuss development on <a href="http://mail-archives.apache.org/mod_mbox/incubator-libcloud/" target="_blank">our mailing list</a>.
-      </div>
-      <h2>about</h2>
-      <div class="accordion">
-        <p>libcloud is a pure python client library for interacting with many of the popular cloud server providers. It was created to make it easy for developers to build products that work between any of the services that it supports.</p>
-        <p>libcloud was originally created by the folks over at <a href="https://www.cloudkick.com/">Cloudkick</a>, but has since grown into an independent free software project licensed under the Apache License (2.0).</p>
-        <p>The libcloud team can be contacted at <a href="mailto:libcloud@incubator.apache.org">libcloud@incubator.apache.org</a>.</p>
-      </div>
-      <div id="incubator-logo"><img src="images/apache_incubator.png" alt="apache incubator" /></div>
+      <h2><a href="about.html">about</a></h2>
+      <h2><a href="getting-started.html">getting started</a></h2>
+      <h2><a href="devinfo.html">developer information</a></h2>
+      <div id="incubator-logo"><a href="http://incubator.apache.org/"><img src="images/apache_incubator.png" alt="apache incubator" /></a></div>
     </div><!--/#sidebar-->
     <div id="main" class="span-16 last">
       <h2>current support</h2>
@@ -120,38 +96,6 @@
         <tr><th><a href="http://www.terremark.com/default.aspx" title="Terremark" target="_blank">Terremark</a></th>   <td>y</td><td>y</td><td>y</td><td>y</td><td>y</td><td>y</td></tr>
         <tr><th><a href="http://www.voxel.net/" title="Voxel" target="_blank">Voxel</a></th>   <td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
       </table>
-
-      <h2>example</h2>
-      <p>The following example will list servers across Amazon EC2, Slicehost, and Rackspace Cloud Servers using the same API call. The servers will be represented in a standard Node object</p>
-      <code class="python">from libcloud.types import Provider
-from libcloud.providers import get_driver
- 
-EC2 = get_driver(Provider.EC2)
-Slicehost = get_driver(Provider.SLICEHOST)
-Rackspace = get_driver(Provider.RACKSPACE)
- 
-drivers = [ EC2('access key id', 'secret key'),
-            Slicehost('api key'),
-            Rackspace('username', 'api key') ]
- 
-nodes = [ driver.list_nodes() for driver in drivers ]
- 
-print nodes
-# [ &lt;Node: provider=Amazon, status=RUNNING, name=bob, ip=1.2.3.4.5&gt;,
-# &lt;Node: provider=Slicehost, status=REBOOT, name=korine, ip=6.7.8.9.10&gt;, ... ]
-
- 
-# grab the node named "test"
-node = filter(lambda x: x.name == 'test', nodes)[0]
- 
-# reboot "test"
-node.reboot()      
-</code>
-      <h2>installation</h2>
-      <p>Currently libcloud is only available via SVN. To pull the repository please run:</p>
-      <code>svn co https://svn.apache.org/repos/asf/incubator/libcloud/trunk/ libcloud</code>
-      <p>To install, cd into the libcloud directory, then run:</p>
-      <code>python setup.py install</code>
     </div><!--/#main-->
     <div id="footer" class="span-24">
     </div><!--/#footer-->

Modified: incubator/libcloud/site/js/libcloud.js
URL: http://svn.apache.org/viewvc/incubator/libcloud/site/js/libcloud.js?rev=895144&r1=895143&r2=895144&view=diff
==============================================================================
--- incubator/libcloud/site/js/libcloud.js (original)
+++ incubator/libcloud/site/js/libcloud.js Sat Jan  2 07:48:19 2010
@@ -6,10 +6,4 @@
   $('#support-table td:contains(" ")').add('#support-table td:empty')
     .addClass('unsupported').text('no');
 
-  //SIDEBAR
-  $('#sidebar').accordion({ 
-    header:'h2',
-    autoHeight:false
-  }); 
-
 });