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 `epydoc --html --parse-only -o sdk/python/arvados ../sdk/python/arvados/`
20 puts "Warning: epydoc not found, Python documentation will not be generated".colorize(:light_red)
24 task :linkchecker => [ :generate ] do
28 system "linkchecker index.html --ignore-url='!file://'" or exit $?.exitstatus
30 puts "Warning: linkchecker not found, skipping run".colorize(:light_red)
36 rm_rf "sdk/python/arvados"
39 require "zenweb/tasks"
40 load "zenweb-textile.rb"
41 load "zenweb-liquid.rb"
43 task :extra_wirings do
44 $website.pages["sdk/python/python.html.textile.liquid"].depends_on("sdk/python/arvados/index.html")