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