Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Correctly generate documentation files

  • Loading branch information...
commit 59d50de591a308866bf90c3de65f4a260d24c73c 1 parent 78f4b21
Hongli Lai authored

Showing 1 changed file with 14 additions and 3 deletions. Show diff stats Hide diff stats

  1. 17  build/documentation.rb
17  build/documentation.rb
@@ -29,13 +29,24 @@
29 29
 	file target => [source] + Dir["doc/users_guide_snippets/**/*"] do
30 30
 		if PlatformInfo.find_command('mizuho')
31 31
 			if target =~ /apache/i
32  
-				type = "-a apache"
  32
+				type = "apache"
  33
+				juvia_site_key = "5jpmkyjqlml8rktsfldfpbwth8ig7w9"
33 34
 			elsif target =~ /nginx/i
34  
-				type = "-a nginx"
  35
+				type = "nginx"
  36
+				juvia_site_key = "q0ptarhn8o9xanwomq8zkgewbtwffyz"
  37
+			elsif target =~ /standalone/i
  38
+				type = nil
  39
+				juvia_site_key = "amggdy0k65hb4hbjg3dh7pnb9zd8dwy"
35 40
 			else
36 41
 				type = nil
  42
+				juvia_site_key = nil
  43
+			end
  44
+			command = "mizuho '#{source}'"
  45
+			command << " -a #{type}" if type
  46
+			if juvia_site_key
  47
+				command << " -c juvia --juvia-url http://juvia.phusion.nl --juvia-site-key #{juvia_site_key}"
37 48
 			end
38  
-	  		sh "mizuho -c juvia --juvia-url http://juvia.phusion.nl --juvia-site-key q0ptarhn8o9xanwomq8zkgewbtwffyz #{type} '#{source}'"
  49
+			sh(command)
39 50
 		else
40 51
 			sh "echo 'Mizuho required to build docs' > '#{target}'"
41 52
 		end

0 notes on commit 59d50de

Please sign in to comment.
Something went wrong with that request. Please try again.