2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: CC-BY-SA-3.0
9 task :generate => [ :realclean, 'sdk/python/arvados/index.html' ] do
10 vars = ['baseurl', 'arvados_api_host', 'arvados_workbench_host']
13 website.config.h[v] = ENV[v]
18 file "sdk/python/arvados/index.html" do |t|
21 STDERR.puts `epydoc --html --parse-only -o sdk/python/arvados ../sdk/python/arvados/ 2>&1`
24 puts "Warning: epydoc not found, Python documentation will not be generated".colorize(:light_red)
28 task :linkchecker => [ :generate ] do
32 system "linkchecker index.html --ignore-url='!file://'" or exit $?.exitstatus
34 puts "Warning: linkchecker not found, skipping run".colorize(:light_red)
40 rm_rf "sdk/python/arvados"
43 require "zenweb/tasks"
44 load "zenweb-textile.rb"
45 load "zenweb-liquid.rb"
47 task :extra_wirings do
48 $website.pages["sdk/python/python.html.textile.liquid"].depends_on("sdk/python/arvados/index.html")