Permalink
Browse files

Switching to docpad for site generation

  • Loading branch information...
1 parent 1d31320 commit 8f8a5187195c5b05d7a4963b68c2849e6ed326c7 @foobarfighter committed Jun 16, 2011
View
@@ -3,3 +3,5 @@
dist
spec/foo-unit.js
spec/browser/autogen_suite.js
+site/www/out
+site/docpad
View
@@ -0,0 +1 @@
+{"version":"latest"}
View
@@ -0,0 +1,55 @@
+{
+ "name": "balupton.docpad",
+ "version": "0.1.0",
+ "description": "Benjamin Lupton's Website",
+ "homepage": "https://github.com/balupton/balupton.site",
+ "keywords": [
+ "balupton",
+ "benjamin lupton",
+ "website",
+ "nowpad",
+ "docpad",
+ "filepad"
+ ],
+ "author": {
+ "name": "Benjamin Lupton",
+ "email": "b@lupton.cc",
+ "web": "http://balupton.com"
+ },
+ "maintainers": [
+ {
+ "name": "Benjamin Lupton",
+ "email": "b@lupton.cc",
+ "web": "http://balupton.com"
+ }
+ ],
+ "contributors": [
+ {
+ "name": "Benjamin Lupton",
+ "email": "b@lupton.cc",
+ "web": "http://balupton.com"
+ }
+ ],
+ "bugs": {
+ "web": "https://github.com/balupton/balupton.docpad/issues"
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "http://creativecommons.org/licenses/MIT/"
+ }
+ ],
+ "repository" : {
+ "type" : "git",
+ "url" : "http://github.com/balupton/balupton.docpad.git"
+ },
+ "dependencies": {
+ "coffee-script": ">=0.1.0",
+ "express": ">=2.3.2",
+ "docpad": ">=0.1.0",
+ "filepad": ">=0.1.0"
+ },
+ "engines" : {
+ "node": ">=0.4.0"
+ }
+}
View
@@ -0,0 +1,24 @@
+# Requires
+docpad = require 'docpad'
+filepad = require 'filepad'
+express = require 'express'
+
+# Create Instances
+docpadInstance = docpad.createInstance port:8002
+filepadInstance = filepad.createInstance path: __dirname+'/src', port:8003
+
+# Fetch Servers
+docpadServer = docpadInstance.server
+filepadServer = filepadInstance.server
+
+# Master Server
+app = express.createServer()
+app.use express.vhost 'balupton.*', docpadServer
+app.use express.vhost 'edit.balupton.*', filepadServer
+app.use express.vhost 'balupton.no.de', docpadServer
+app.use express.vhost 'edit.balupton.no.de', filepadServer
+app.use express.vhost 'balupton.nodester.com', docpadServer
+app.use express.vhost 'edit.balupton.nodester.com', filepadServer
+app.use express.vhost 'balupton.duostack.net', docpadServer
+app.use express.vhost 'edit.balupton.duostack.net', filepadServer
+app.listen process.env.PORT || 10113
View
@@ -0,0 +1,2 @@
+require('coffee-script');
+require(__dirname+'/server.coffee');
@@ -0,0 +1,10 @@
+---
+layout: home
+title: blah blah
+---
+
+<!-- About -->
+<section class="about">
+ <h2>About</h2>
+ <p>My life story</p>
+</section>
@@ -12,15 +12,15 @@ html, body {
}
#header-decoration {
- background: url(images/header-decoration.png) repeat-x;
+ background: url(../images/header-decoration.png) repeat-x;
position: absolute;
top: 90px;
height: 6px;
width: 100%;
}
#logo {
- background-image: url(images/logo.png);
+ background-image: url(../images/logo.png);
margin-top: 17px;
}
@@ -50,7 +50,7 @@ html, body {
}
#nav span:hover a {
- background: url(images/link-hover-left.png) no-repeat;
+ background: url(../images/link-hover-left.png) no-repeat;
color: #fff;
}
@@ -61,20 +61,20 @@ html, body {
}
#nav span:hover {
- background: url(images/link-hover-right.png) no-repeat right;
+ background: url(../images/link-hover-right.png) no-repeat right;
color: #fff;
}
/** /Nav Link **/
/** Download Tag **/
#download-tag div {
- background: url(images/download-tag-left.png) no-repeat;
+ background: url(../images/download-tag-left.png) no-repeat;
line-height: 40px;
height: 40px;
}
#download-tag {
- background: url(images/download-tag-right.png) no-repeat right;
+ background: url(../images/download-tag-right.png) no-repeat right;
position: absolute;
top: 89px; right: 0px;
height: 40px;
@@ -186,7 +186,7 @@ ul.features {
}
ul.features li {
- list-style-image: url(images/check-mark.png);
+ list-style-image: url(../images/check-mark.png);
margin-bottom: 15px;
}
/** /Teaser cells **/
@@ -4,12 +4,12 @@
<title>foounit: Test your javascript everywhere!</title>
<link href="http://yui.yahooapis.com/2.9.0/build/reset/reset-min.css" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Neuton:regular,italic,bold" rel="stylesheet" type="text/css">
- <link href="resources/main.css" rel="stylesheet" type="text/css">
+ <link href="styles/main.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="header">
<div class="content">
- <a href="/index.html"><img id="logo" height="55" width="241" src="resources/images/logo.png"></a>
+ <a href="/index.html"><img id="logo" height="55" width="241" src="images/logo.png"></a>
<div id="nav">
<span><a href="">Get Started</a></span>
<span><a href="">Documentation</a></span>
@@ -57,7 +57,7 @@
<h2>{Clean easy to use UI}</h2>
<div class="cell-content">
<div class="frame light"></div>
- <img src="resources/images/screenshot-node.png" height="223" width="296">
+ <img src="images/screenshot-node.png" height="223" width="296">
</div>
</div>

0 comments on commit 8f8a518

Please sign in to comment.