Skip to content

Commit

Permalink
Update API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwhite committed Feb 13, 2009
1 parent b551fbb commit c9f084c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Rakefile
Expand Up @@ -36,6 +36,9 @@ task :rdoc => 'doc:build'
task :doc => 'doc:build'

namespace :doc do

current_sha = `git log HEAD -1 --pretty=format:"%H"`[0..6]

Rake::RDocTask.new(:build) do |d|
d.rdoc_dir = 'doc'
d.main = 'README.rdoc'
Expand All @@ -61,10 +64,6 @@ namespace :doc do
`cat #{docpath1}/index.html | grep "<title>"` != `cat #{docpath2}/index.html | grep "<title>"`
end

def current_sha
`git log HEAD -1 --pretty=format:"%H"`[0..6]
end

def on_gh_pages(&block)
`git branch -m gh-pages orig-gh-pages > /dev/null 2>&1`
`git checkout -b gh-pages origin/gh-pages`
Expand Down

0 comments on commit c9f084c

Please sign in to comment.