Skip to content

Commit

Permalink
Move templates to source directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
trans committed Apr 22, 2012
1 parent 0651e2e commit 72a867d
Show file tree
Hide file tree
Showing 18 changed files with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions Rulefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ignore 'web'
# Run thin server to give site a spin.
#
desc "start thin server"
task "server" do
task "serve" do
sh "thin start -A file"
end

Expand All @@ -15,7 +15,7 @@ end
#
desc "compile templates"
task 'compile' do
sh "handlebars assets/templates/*.handlebars -f assets/javascripts/handlebars.templates.js"
sh "handlebars source/templates/*.handlebars -f assets/javascripts/handlebars.templates.js"
end

#
Expand All @@ -24,6 +24,11 @@ end
#
desc "publish to github"
task 'publish' do
mkdir_p 'website'
install 'index.html', 'website/index.html'
install 'doc.json', 'website/doc.json'
sync 'assets', 'website/assets'

github.publish
end

Expand All @@ -44,12 +49,12 @@ def github
require 'detroit-github'

Detroit::GitHub.new(
:folder => 'web',
:sitemap => {
'index.html' => 'index.html',
'doc.json' => 'doc.json',
'assets' => 'assets'
}
:folder => 'web'
#:sitemap => {
# 'index.html' => 'index.html',
# 'doc.json' => 'doc.json',
# 'assets' => 'assets'
#}
)
)
end
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 72a867d

Please sign in to comment.