X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/68ad3cbe4aaaa986b5b6e9f5cfcbf9d9d4c1c319..8eee8df8850c6e2cb7f531459a89a1ab6660a2ff:/doc/Rakefile diff --git a/doc/Rakefile b/doc/Rakefile old mode 100755 new mode 100644 index 12f87b1949..a10d54cdee --- a/doc/Rakefile +++ b/doc/Rakefile @@ -1,6 +1,25 @@ #!/usr/bin/env rake require "rubygems" +require "colorize" + require "zenweb/tasks" load "zenweb-textile.rb" +load "zenweb-liquid.rb" + +file "sdk/python/arvados/index.html" do |t| + `which epydoc` + if $? == 0 + `epydoc --html -o sdk/python/arvados arvados` + Dir["sdk/python/arvados/*"].each do |f| + puts f + $website.pages[f] = Zenweb::Page.new($website, f) + end + else + puts "Warning: epydoc not found, Python documentation will not be generated".colorize(:light_red) + end +end +task :extra_wirings do + $website.pages["sdk/python/python.html.textile.liquid"].depends_on("sdk/python/arvados/index.html") +end