mirror of
https://github.com/moparisthebest/www.moparscape.org
synced 2024-12-25 00:48:49 -05:00
updated rakefile, added some basic twitter files
This commit is contained in:
parent
f7700443ec
commit
6c9f1567ce
18
Rakefile
18
Rakefile
@ -20,35 +20,35 @@ end
|
|||||||
|
|
||||||
desc "generate website in output directory"
|
desc "generate website in output directory"
|
||||||
task :default => [:generate_site, :generate_style] do
|
task :default => [:generate_site, :generate_style] do
|
||||||
puts "--Site Generating Complete!--"
|
puts ">>> Site Generating Complete! <<<"
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "list tasks"
|
desc "list tasks"
|
||||||
task :list do
|
task :list do
|
||||||
puts "Tasks: #{(Rake::Task.tasks - [Rake::Task[:default]]).to_sentence}"
|
puts "Tasks: #{(Rake::Task.tasks - [Rake::Task[:list]]).to_sentence}"
|
||||||
puts "(type rake -T for more detail)\n\n"
|
puts "(type rake -T for more detail)\n\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "remove files in output directory"
|
desc "remove files in output directory"
|
||||||
task :clean do
|
task :clean do
|
||||||
puts "Removing output..."
|
puts ">>> Removing output <<<"
|
||||||
Dir["#{site}/*"].each { |f| rm_rf(f) }
|
Dir["#{site}/*"].each { |f| rm_rf(f) }
|
||||||
end
|
end
|
||||||
|
|
||||||
task :clean_debug do
|
task :clean_debug do
|
||||||
puts "Removing debug pages..."
|
puts ">>> Removing debug pages <<<"
|
||||||
Dir["#{site}/debug"].each { |f| rm_rf(f) }
|
Dir["#{site}/debug"].each { |f| rm_rf(f) }
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Generate styles only"
|
desc "Generate styles only"
|
||||||
task :generate_style do
|
task :generate_style do
|
||||||
puts "Generating website..."
|
puts ">>> Generating styles <<<"
|
||||||
system "compass"
|
system "compass"
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Generate site files only"
|
desc "Generate site files only"
|
||||||
task :generate_site => :clean do
|
task :generate_site => :clean do
|
||||||
puts "Generating website..."
|
puts ">>> Generating site files <<<"
|
||||||
system "jekyll"
|
system "jekyll"
|
||||||
system "mv #{site}/atom.html #{site}/atom.xml"
|
system "mv #{site}/atom.html #{site}/atom.xml"
|
||||||
end
|
end
|
||||||
@ -75,20 +75,18 @@ task :watch do
|
|||||||
delete {|base, relative| rebuild_site(relative)}
|
delete {|base, relative| rebuild_site(relative)}
|
||||||
create {|base, relative| rebuild_site(relative)}
|
create {|base, relative| rebuild_site(relative)}
|
||||||
end
|
end
|
||||||
path "#{File.dirname(__FILE__)}/#{source}/stylesheets" do
|
path "#{File.dirname(__FILE__)}/stylesheets" do
|
||||||
glob '**/*.sass'
|
glob '**/*.sass'
|
||||||
update {|base, relative| rebuild_style(relative)}
|
update {|base, relative| rebuild_style(relative)}
|
||||||
delete {|base, relative| rebuild_style(relative)}
|
delete {|base, relative| rebuild_style(relative)}
|
||||||
create {|base, relative| rebuild_style(relative)}
|
create {|base, relative| rebuild_style(relative)}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
FSSM.monitor("#{File.dirname(__FILE__)}/#{source}/stylesheets", '**/*') do
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "generate and deploy website"
|
desc "generate and deploy website"
|
||||||
multitask :deploy => [:default, :clean_debug] do
|
multitask :deploy => [:default, :clean_debug] do
|
||||||
print "Deploying website..."
|
print ">>> Deploying website <<<"
|
||||||
ok_failed system("rsync -avz --delete #{site}/ #{ssh_user}:#{document_root}")
|
ok_failed system("rsync -avz --delete #{site}/ #{ssh_user}:#{document_root}")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
=typography-defaults(!font_size = !base_font_size)
|
=typography-defaults(!font_size = !base_font_size)
|
||||||
body
|
body
|
||||||
line-height= ceil(!font_size * 1.625)
|
line-height: 1.625em
|
||||||
color= !base_font_color
|
color= !base_font_color
|
||||||
p
|
p
|
||||||
+p-style(!font_size)
|
+p-style(!font_size)
|
||||||
|
@ -1,2 +1,8 @@
|
|||||||
#twitter
|
#twitter
|
||||||
font-size: 85%
|
font-size: 85%
|
||||||
|
p
|
||||||
|
+border-radius
|
||||||
|
padding: 10px 15px
|
||||||
|
margin-bottom: 15px
|
||||||
|
background: #eee
|
||||||
|
line-height: 1.625em
|
Loading…
Reference in New Issue
Block a user