You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2011/10/30 22:02:07 UTC
svn commit: r1195242 - in /libcloud/site/trunk:
content/css/documentation.css lib/path.pm templates/blocks/menu_docs.html
templates/blocks/sidebar_docs.html templates/documentation.html
Author: tomaz
Date: Sun Oct 30 21:02:06 2011
New Revision: 1195242
URL: http://svn.apache.org/viewvc?rev=1195242&view=rev
Log:
Add templates for documentation.
Added:
libcloud/site/trunk/content/css/documentation.css (with props)
libcloud/site/trunk/templates/blocks/menu_docs.html
libcloud/site/trunk/templates/blocks/sidebar_docs.html
libcloud/site/trunk/templates/documentation.html
Modified:
libcloud/site/trunk/lib/path.pm
Added: libcloud/site/trunk/content/css/documentation.css
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/content/css/documentation.css?rev=1195242&view=auto
==============================================================================
--- libcloud/site/trunk/content/css/documentation.css (added)
+++ libcloud/site/trunk/content/css/documentation.css Sun Oct 30 21:02:06 2011
@@ -0,0 +1,26 @@
+/* color 100 80 50 20
+ * aqua 007bff 3395ff 80bdff cce5ff
+ * melon ff5050 ff7373 ffa7a7 ffdcdc
+ */
+* { margin:0; }
+html {}
+body { border-top:10px solid #007bff; border-bottom:10px solid #007bff; }
+#wrapper { width:800px; margin:0 auto; }
+
+a {color:inherit;}
+a:hover { color:#ff5050;}
+
+#header { padding:15px 0 0; margin:0 0 5px 0; }
+#banner { padding:5px 0; margin:0 0 5px 0; border-top:1px solid #ddd; border-bottom:1px solid #ddd; }
+#banner h2 { margin:0; color:#ff5050; line-height:30px; }
+#sidebar {}
+#main {}
+#footer { text-align: center; margin:20px 0 10px; border-top:1px solid #ddd; padding:5px 0;}
+
+#sidebar ul, li {font-size: 15px; list-style-type: square; }
+#sidebar ul { margin-bottom: 5px; }
+li.title {font-weight: bold;}
+
+div#main { font-size: 120%; }
+
+pre, code { margin-bottom: 12px; }
Propchange: libcloud/site/trunk/content/css/documentation.css
------------------------------------------------------------------------------
svn:executable = *
Modified: libcloud/site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/lib/path.pm?rev=1195242&r1=1195241&r2=1195242&view=diff
==============================================================================
--- libcloud/site/trunk/lib/path.pm (original)
+++ libcloud/site/trunk/lib/path.pm Sun Oct 30 21:02:06 2011
@@ -9,7 +9,10 @@ use warnings;
# be passed to the view subroutine.
our @patterns = (
- [ qr!index\.mdtext$!, basic => { template => "index.html" } ],
+ [ qr!^/index\.mdtext$!, basic => { template => "index.html" } ],
+ [ qr!/docs/.+?\.mdtext$!, basic => { template => "documentation.html",
+ headers => { base_title => "Libcloud
+ Documentation" }} ],
[ qr!supported_providers\.json$!, providers => {
template => "providers.html",
headers => { title => "Supported Providers and Features"} } ],
Added: libcloud/site/trunk/templates/blocks/menu_docs.html
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/templates/blocks/menu_docs.html?rev=1195242&view=auto
==============================================================================
--- libcloud/site/trunk/templates/blocks/menu_docs.html (added)
+++ libcloud/site/trunk/templates/blocks/menu_docs.html Sun Oct 30 21:02:06 2011
@@ -0,0 +1,16 @@
+<ul>
+ <li><a href="/index.html">Website home</a></li>
+ <li><a href="/docs/index.html">Documentation home</a></li>
+ <li>Components</li>
+ <ul>
+ <li class="title">Compute</li>
+ <ul>
+ <li><a href="compute-overview.html">Overview</a></li>
+ <li><a href="compute-base-api.html">Base API</a></li>
+ <li><a href="compute-deployment.html">Deployment</a></li>
+ </ul>
+ <li class="title">Storage</li>
+ <li class="title">Load Balancer</li>
+ </ul>
+ <li><a href="/apidocs">Generated API docs</a></li>
+</ul>
Added: libcloud/site/trunk/templates/blocks/sidebar_docs.html
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/templates/blocks/sidebar_docs.html?rev=1195242&view=auto
==============================================================================
--- libcloud/site/trunk/templates/blocks/sidebar_docs.html (added)
+++ libcloud/site/trunk/templates/blocks/sidebar_docs.html Sun Oct 30 21:02:06 2011
@@ -0,0 +1,3 @@
+{% block menu %}
+{% include "blocks/menu_docs.html" %}
+{% endblock %}
Added: libcloud/site/trunk/templates/documentation.html
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/templates/documentation.html?rev=1195242&view=auto
==============================================================================
--- libcloud/site/trunk/templates/documentation.html (added)
+++ libcloud/site/trunk/templates/documentation.html Sun Oct 30 21:02:06 2011
@@ -0,0 +1,48 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+ <title>Apache Libcloud Python library - {% block title %}{{ headers.title }}{% endblock %}</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/jquery.boxy.js" type="text/javascript"></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="stylesheet" href="/css/documentation.css" type="text/css">
+ <link rel="stylesheet" href="/css/code.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">
+ {% block header %}
+ <h1>Apache Libcloud <span>a unified interface to the cloud</span></h1>
+ {% endblock %}
+ </div>
+
+ <div id="banner" class="span-24 last">
+ {% block banner %}
+ <h2>{{ headers.base_title }}: {{ headers.title }}</h2>
+ {% endblock %}
+ </div>
+
+ {% block sidebar %}
+ <div id="sidebar" class="span-6 border">
+ {% include "blocks/sidebar_docs.html" %}
+ </div>
+ {% endblock %}
+
+ <div id="main" class="span-16 last">
+ {% block content %}
+ {{ content|markdown }}
+ {% endblock %}
+ </div>
+
+ <div id="footer" class="span-24">
+ {% include "blocks/footer.html" %}
+ </div>
+ </div>
+{% include "blocks/analytics.html" %}
+</body>
+</html>