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', 'sdk/R/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 file "sdk/R/arvados/index.html" do |t|
31 Dir.chdir("../sdk/R/") do
32 STDERR.puts `R --quiet --vanilla -e 'pkgdown::build_site()' 2>&1`
35 cp_r("../sdk/R/docs", "sdk/R/arvados")
37 puts "Warning: R not found, R documentation will not be generated".colorize(:light_red)
41 task :linkchecker => [ :generate ] do
45 system "linkchecker index.html --ignore-url='!file://'" or exit $?.exitstatus
47 puts "Warning: linkchecker not found, skipping run".colorize(:light_red)
53 rm_rf "sdk/python/arvados"
58 require "zenweb/tasks"
59 load "zenweb-textile.rb"
60 load "zenweb-liquid.rb"
62 task :extra_wirings do
63 $website.pages["sdk/python/python.html.textile.liquid"].depends_on("sdk/python/arvados/index.html")