Python documentation step will now report a warning if epydoc isn't in PATH.
[arvados.git] / doc / Rakefile
1 #!/usr/bin/env rake
2
3 require "rubygems"
4 require "colorize"
5
6 Rake.application.rake_require "zenweb/tasks"
7 load "zenweb-textile.rb"
8 load "zenweb-liquid.rb"
9
10 file "sdk/python/arvados/index.html" do |t|
11   `which epydoc`
12   if $? == 0
13     `epydoc --html -o sdk/python/arvados arvados`
14     Dir["sdk/python/arvados/*"].each do |f|
15       puts f
16       $website.pages[f] = Zenweb::Page.new($website, f)
17     end
18   else
19     puts "Warning: epydoc not found, Python documentation will not be generated".colorize(:light_red)
20   end
21 end
22
23 task :extra_wirings do
24   $website.pages["sdk/python/python.html.textile.liquid"].depends_on("sdk/python/arvados/index.html")
25 end