X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/42fff42165a0fa1602758a078746f8697f265f83..be5771dd0fe41d5108d8fd72e62223b37948cf2d:/doc/Rakefile diff --git a/doc/Rakefile b/doc/Rakefile index 2b4b6af2e0..1390aa0e9c 100644 --- a/doc/Rakefile +++ b/doc/Rakefile @@ -76,7 +76,6 @@ file "sdk/R/arvados/index.html" do |t| cp('css/R.css', 'sdk/R/arvados') docfiles = [] Dir.chdir("../sdk/R/") do - STDERR.puts `Rscript createDoc.R README.Rmd #{tgt}/sdk/R/README.md 2>&1` Dir.entries("man").each do |rd| if rd[-3..-1] == ".Rd" htmlfile = "#{rd[0..-4]}.html" @@ -87,7 +86,7 @@ file "sdk/R/arvados/index.html" do |t| end raise if $? != 0 - File.open("sdk/R/README.md", "r") do |rd| + File.open("../sdk/R/README.md", "r") do |rd| File.open("sdk/R/index.html.md", "w") do |fn| fn.write(<<-EOF --- @@ -97,7 +96,7 @@ navmenu: R title: "R SDK Overview" ... -#{rd.read.gsub(/^```$/, "~~~").gsub(/^```(\w)$/, "~~~\\1")} +#{rd.read} EOF ) end @@ -160,7 +159,8 @@ task :linkchecker => [ :generate ] do Dir.chdir(".site") do `which linkchecker` if $? == 0 - system "linkchecker index.html --ignore-url='!file://'" or exit $?.exitstatus + # we need --check-extern to check relative links, weird but true + system "linkchecker index.html --check-extern --ignore-url='!file://'" or exit $?.exitstatus else puts "Warning: linkchecker not found, skipping run".colorize(:light_red) end