Permalink
Browse files

Updated README and nunja configuration file, added "preview" task.

  • Loading branch information...
1 parent 69f6708 commit 34a6709c0ead9ec9622e27489f377afa7f870a34 Tim Burks committed May 12, 2008
Showing with 18 additions and 10 deletions.
  1. +7 −4 Nukefile
  2. +8 −1 README
  3. +1 −3 builder.nu
  4. +2 −2 nunja.nu
View
@@ -1,12 +1,15 @@
-
(task "build" is
(SH "nush builder.nu"))
-(task "publish" is
- (SH "rsync -ave ssh site/public/ helium:/Sites/programming.nu/public/"))
+(task "preview" is
+ (SH "nunjad -s site"))
-(task "default" => "build")
+(task "publish" is ;; requires a password
+ (SH "rsync -ave ssh site/public/ programming.nu:/Sites/programming.nu/public/"))
(task "clean" is
(SH "rm -rf site"))
+
+(task "default" => "build")
+
View
9 README
@@ -5,9 +5,16 @@ It includes the text of the site and build scripts.
All contents copyright 2007-2008, Neon Design Technology, Inc.
-Build scripts are released under the Apache Public License, v. 2.0.
+Build scripts are released under the Apache License, v. 2.0.
See the LICENSE file for details.
Text is released under the Creative Commons
Attribution-Noncommercial-No Derivative Works 3.0 United States License.
+==
+
+To build the site, just run "nuke". Building requires NuMarkdown
+and NuYAML. Both are available on github.
+
+To preview the site, run "nuke preview". This requires Nunja, which
+is also available on github.
View
@@ -14,8 +14,6 @@
(class NSString
- (- lines is ((self componentsSeparatedByString:"\n") select:(do (x) (!= x ""))))
-
(- (id) markdownToHTML is (NuMarkdown convert:self))
;; Convert a Textile-formatted string to HTML.
@@ -28,7 +26,7 @@
;; require 'RedCloth' <br/>
;; puts RedCloth.new(STDIN.read).to_html
;; </code>
- (- (id) textileToHTML is
+ (- (id) _UNUSED_textileToHTML is
(unless $textileCache (set $textileCache (dict)))
(unless (set results ($textileCache objectForKey:self))
(set input (NSPipe pipe))
View
@@ -14,6 +14,6 @@
;; See the License for the specific language governing permissions and
;; limitations under the License.
-(get "/" (self redirectResponse:request toLocation:"/index"))
+(get "/" (Nunja redirectResponse:REQUEST toLocation:"/index"))
-;; everything else falls through to static files
+;; everything else falls through to static files

0 comments on commit 34a6709

Please sign in to comment.