Browse code

updated rakefile, added some basic twitter files

B Mathis authored on 06/11/2009 at 03:58:04
Showing 3 changed files
... ...
@@ -20,35 +20,35 @@ end
20 20
 
21 21
 desc "generate website in output directory"
22 22
 task :default => [:generate_site, :generate_style] do
23
-  puts "--Site Generating Complete!--"
23
+  puts ">>> Site Generating Complete! <<<"
24 24
 end
25 25
 
26 26
 desc "list tasks"
27 27
 task :list do
28
-  puts "Tasks: #{(Rake::Task.tasks - [Rake::Task[:default]]).to_sentence}"
28
+  puts "Tasks: #{(Rake::Task.tasks - [Rake::Task[:list]]).to_sentence}"
29 29
   puts "(type rake -T for more detail)\n\n"
30 30
 end
31 31
 
32 32
 desc "remove files in output directory"
33 33
 task :clean do
34
-  puts "Removing output..."
34
+  puts ">>> Removing output <<<"
35 35
   Dir["#{site}/*"].each { |f| rm_rf(f) }
36 36
 end
37 37
 
38 38
 task :clean_debug do
39
-  puts "Removing debug pages..."
39
+  puts ">>> Removing debug pages <<<"
40 40
   Dir["#{site}/debug"].each { |f| rm_rf(f) }
41 41
 end
42 42
 
43 43
 desc "Generate styles only"
44 44
 task :generate_style do
45
-  puts "Generating website..."
45
+  puts ">>> Generating styles <<<"
46 46
   system "compass"
47 47
 end
48 48
 
49 49
 desc "Generate site files only"
50 50
 task :generate_site => :clean do
51
-  puts "Generating website..."
51
+  puts ">>> Generating site files <<<"
52 52
   system "jekyll"
53 53
   system "mv #{site}/atom.html #{site}/atom.xml"
54 54
 end
... ...
@@ -75,20 +75,18 @@ task :watch do
75 75
       delete {|base, relative| rebuild_site(relative)}
76 76
       create {|base, relative| rebuild_site(relative)}
77 77
     end
78
-    path "#{File.dirname(__FILE__)}/#{source}/stylesheets" do
78
+    path "#{File.dirname(__FILE__)}/stylesheets" do
79 79
       glob '**/*.sass'
80 80
       update {|base, relative| rebuild_style(relative)}
81 81
       delete {|base, relative| rebuild_style(relative)}
82 82
       create {|base, relative| rebuild_style(relative)}
83 83
     end
84 84
   end
85
-  FSSM.monitor("#{File.dirname(__FILE__)}/#{source}/stylesheets", '**/*') do
86
-    
87 85
 end
88 86
 
89 87
 desc "generate and deploy website"
90 88
 multitask :deploy => [:default, :clean_debug] do
91
-  print "Deploying website..."
89
+  print ">>> Deploying website <<<"
92 90
   ok_failed system("rsync -avz --delete #{site}/ #{ssh_user}:#{document_root}")
93 91
 end
94 92
 
... ...
@@ -58,7 +58,7 @@
58 58
 
59 59
 =typography-defaults(!font_size = !base_font_size)
60 60
   body
61
-    line-height= ceil(!font_size * 1.625)
61
+    line-height: 1.625em
62 62
     color= !base_font_color
63 63
   p
64 64
     +p-style(!font_size)
... ...
@@ -1,2 +1,8 @@
1 1
 #twitter
2
-  font-size: 85%
3 2
\ No newline at end of file
3
+  font-size: 85%
4
+  p
5
+    +border-radius
6
+    padding: 10px 15px
7
+    margin-bottom: 15px
8
+    background: #eee
9
+    line-height: 1.625em
4 10
\ No newline at end of file