try to fix runcoderun
This commit is contained in:
parent
b245da5d1b
commit
ffa2f4da51
1 changed files with 28 additions and 26 deletions
14
Rakefile
14
Rakefile
|
@ -52,10 +52,11 @@ task :spec => :check_dependencies
|
|||
|
||||
task :default => :spec
|
||||
|
||||
require 'rake/rdoctask'
|
||||
require 'sdoc'
|
||||
unless ENV["RUN_CODE_RUN"]
|
||||
require 'rake/rdoctask'
|
||||
require 'sdoc'
|
||||
|
||||
Rake::RDocTask.new do |rdoc|
|
||||
Rake::RDocTask.new do |rdoc|
|
||||
if File.exist?('VERSION')
|
||||
version = File.read('VERSION')
|
||||
else
|
||||
|
@ -70,10 +71,10 @@ Rake::RDocTask.new do |rdoc|
|
|||
rdoc.rdoc_files.include('lib/**/*.rb')
|
||||
rdoc.rdoc_files.exclude('lib/middleman/features/sprockets+ruby19.rb')
|
||||
rdoc.rdoc_files.exclude('lib/middleman/templater+dynamic_renderer.rb')
|
||||
end
|
||||
end
|
||||
|
||||
desc "Build and publish documentation using GitHub Pages."
|
||||
task :pages do
|
||||
desc "Build and publish documentation using GitHub Pages."
|
||||
task :pages do
|
||||
if !`git status`.include?('nothing to commit')
|
||||
abort "dirty index - not publishing!"
|
||||
end
|
||||
|
@ -83,4 +84,5 @@ task :pages do
|
|||
`ls -1 | grep -v rdoc | xargs rm -rf; mv rdoc/* .; rm -rf rdoc`
|
||||
`git commit -a -m "update docs"; git push origin gh-pages`
|
||||
`git checkout master`
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue