Merge branch 'master' into 2257-inequality-conditions
[arvados.git] / doc / Rakefile
1 #!/usr/bin/env rake
2
3 require "rubygems"
4 require "colorize"
5
6 task :generate do
7   vars = ['baseurl', 'arvados_api_host', 'arvados_workbench_host']
8   vars.each do |v|
9     if ENV[v]
10       website.config.h[v] = ENV[v]
11     end
12   end
13 end
14
15 require "zenweb/tasks"
16 load "zenweb-textile.rb"
17 load "zenweb-liquid.rb"
18
19 file "sdk/python/arvados/index.html" do |t|
20   `which epydoc`
21   if $? == 0
22     `epydoc --html -o sdk/python/arvados arvados`
23     Dir["sdk/python/arvados/*"].each do |f|
24       puts f
25       $website.pages[f] = Zenweb::Page.new($website, f)
26     end
27   else
28     puts "Warning: epydoc not found, Python documentation will not be generated".colorize(:light_red)
29   end
30 end
31
32 task :extra_wirings do
33   $website.pages["sdk/python/python.html.textile.liquid"].depends_on("sdk/python/arvados/index.html")
34 end