Skip to content
Browse files

Initial commit

  • Loading branch information...
0 parents commit 643d23cca3de7c3a023259cd17cc59170ccdd15f Adam Stacoviak committed Sep 30, 2009
Showing with 122 additions and 0 deletions.
  1. +1 −0 Rakefile
  2. +12 −0 Rules
  3. +6 −0 config.yaml
  4. +18 −0 content/index.haml
  5. +2 −0 content/index.yaml
  6. +30 −0 layouts/default.html
  7. +2 −0 layouts/default.yaml
  8. +2 −0 lib/default.rb
  9. +49 −0 output/index.html
  10. BIN tmp/dependencies
1 Rakefile
@@ -0,0 +1 @@
+require 'nanoc3/tasks'
12 Rules
@@ -0,0 +1,12 @@
+#!/usr/bin/env ruby
+
+compile '*' do
+ filter :haml
+ layout 'default'
+end
+
+route '*' do
+ item.identifier + 'index.html'
+end
+
+layout '*', :haml
6 config.yaml
@@ -0,0 +1,6 @@
+---
+output_dir: output
+data_sources:
+- items_root: /
+ layouts_root: /
+ type: filesystem_compact
18 content/index.haml
@@ -0,0 +1,18 @@
+%h1
+ A Brand New nanoc Site
+%p
+ You've just created a new nanoc site. The page you are looking at right now is the home page for your site (and it's probably the only page).
+%p
+ To get started, consider replacing this default homepage with your own customized homepage. Some pointers on how to do so:
+%ul
+ %li
+ %p
+ %strong
+ Change this page's content
+ by editing "content.html" file in the "content" directory. This is the actual page content, and therefore doesn't include the header, sidebar or style information (those are part of the layout).
+ %li
+ %p
+ Change the layout, which is the "default.txt" file in the "layouts/default" directory, and create something unique (and hopefully less bland).
+ %p
+ If you need any help with customizing your nanoc web site, be sure to check out the documentation (see sidebar), and be sure to subscribe to the discussion group (also see sidebar). Enjoy!
+ %p Lorem ipsum dolor sit amet, consectetur adipisicing elit.
2 content/index.yaml
@@ -0,0 +1,2 @@
+---
+title: Home
30 layouts/default.html
@@ -0,0 +1,30 @@
+!!!
+%html
+ %head
+ %title
+ A Brand New nanoc Site - <%= @item[:title] %>
+ %link{ :href => "/style.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
+ %body
+ #main
+ #sidebar
+ %h2
+ Documentation
+ %ul
+ %li
+ %a{ :href => "http://nanoc.stoneship.org/help/tutorial/" }
+ Tutorial
+ %li
+ %a{ :href => "http://nanoc.stoneship.org/help/manual/" }
+ Manual
+ %h2
+ Community
+ %ul
+ %li
+ %a{ :href => "http://groups.google.com/group/nanoc/" }
+ Discussion Group
+ %li
+ %a{ :href => "http://groups.google.com/group/nanoc-es/" }
+ Spanish Discussion Group
+ %li
+ %a{ :href => "http://projects.stoneship.org/trac/nanoc/" }
+ Wiki
2 layouts/default.yaml
@@ -0,0 +1,2 @@
+--- {}
+
2 lib/default.rb
@@ -0,0 +1,2 @@
+# All files in the 'lib' directory will be loaded
+# before nanoc starts compiling.
49 output/index.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+ <head>
+ <title>
+ A Brand New nanoc Site - <%= @item[:title] %>
+ </title>
+ <link href='/style.css' media='screen' rel='stylesheet' type='text/css' />
+ </head>
+ <body>
+ <div id='main'></div>
+ <div id='sidebar'>
+ <h2>
+ Documentation
+ </h2>
+ <ul>
+ <li>
+ <a href='http://nanoc.stoneship.org/help/tutorial/'>
+ Tutorial
+ </a>
+ </li>
+ <li>
+ <a href='http://nanoc.stoneship.org/help/manual/'>
+ Manual
+ </a>
+ </li>
+ </ul>
+ <h2>
+ Community
+ </h2>
+ <ul>
+ <li>
+ <a href='http://groups.google.com/group/nanoc/'>
+ Discussion Group
+ </a>
+ </li>
+ <li>
+ <a href='http://groups.google.com/group/nanoc-es/'>
+ Spanish Discussion Group
+ </a>
+ </li>
+ <li>
+ <a href='http://projects.stoneship.org/trac/nanoc/'>
+ Wiki
+ </a>
+ </li>
+ </ul>
+ </div>
+ </body>
+</html>
BIN tmp/dependencies
Binary file not shown.

0 comments on commit 643d23c

Please sign in to comment.
Something went wrong with that request. Please try again.