Permalink
Browse files

Correctly generate documentation files

  • Loading branch information...
FooBarWidget committed Apr 15, 2012
1 parent 78f4b21 commit 59d50de591a308866bf90c3de65f4a260d24c73c
Showing with 14 additions and 3 deletions.
  1. +14 −3 build/documentation.rb
View
@@ -29,13 +29,24 @@
file target => [source] + Dir["doc/users_guide_snippets/**/*"] do
if PlatformInfo.find_command('mizuho')
if target =~ /apache/i
- type = "-a apache"
+ type = "apache"
+ juvia_site_key = "5jpmkyjqlml8rktsfldfpbwth8ig7w9"
elsif target =~ /nginx/i
- type = "-a nginx"
+ type = "nginx"
+ juvia_site_key = "q0ptarhn8o9xanwomq8zkgewbtwffyz"
+ elsif target =~ /standalone/i
+ type = nil
+ juvia_site_key = "amggdy0k65hb4hbjg3dh7pnb9zd8dwy"
else
type = nil
+ juvia_site_key = nil
+ end
+ command = "mizuho '#{source}'"
+ command << " -a #{type}" if type
+ if juvia_site_key
+ command << " -c juvia --juvia-url http://juvia.phusion.nl --juvia-site-key #{juvia_site_key}"
end
- sh "mizuho -c juvia --juvia-url http://juvia.phusion.nl --juvia-site-key q0ptarhn8o9xanwomq8zkgewbtwffyz #{type} '#{source}'"
+ sh(command)
else
sh "echo 'Mizuho required to build docs' > '#{target}'"
end

0 comments on commit 59d50de

Please sign in to comment.