6 task :generate => [ :realclean, 'sdk/python/arvados/index.html' ] do
7 vars = ['baseurl', 'arvados_api_host', 'arvados_workbench_host']
10 website.config.h[v] = ENV[v]
15 file "sdk/python/arvados/index.html" do |t|
18 STDERR.puts `epydoc --html --parse-only -o sdk/python/arvados ../sdk/python/arvados/ 2>&1`
21 puts "Warning: epydoc not found, Python documentation will not be generated".colorize(:light_red)
25 task :linkchecker => [ :generate ] do
29 system "linkchecker index.html --ignore-url='!file://'" or exit $?.exitstatus
31 puts "Warning: linkchecker not found, skipping run".colorize(:light_red)
37 rm_rf "sdk/python/arvados"
40 require "zenweb/tasks"
41 load "zenweb-textile.rb"
42 load "zenweb-liquid.rb"
44 task :extra_wirings do
45 $website.pages["sdk/python/python.html.textile.liquid"].depends_on("sdk/python/arvados/index.html")