projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
20680: Fix nginx_balancer_configuration & add note about defaults
[arvados.git]
/
doc
/
Rakefile
diff --git
a/doc/Rakefile
b/doc/Rakefile
index 4427f7822e855e0a0a9d10e5ebb140168114f2b9..676f2845c5bb073d9ef3662a5571011f320e19d5 100644
(file)
--- a/
doc/Rakefile
+++ b/
doc/Rakefile
@@
-56,8
+56,10
@@
file "sdk/python/arvados/index.html" do |t|
end
`which pdoc`
if $? == 0
end
`which pdoc`
if $? == 0
- STDERR.puts `pdoc --html -o sdk/python ../sdk/python/arvados/ 2>&1`
- raise if $? != 0
+ raise unless system("python3", "setup.py", "build",
+ chdir: "../sdk/python", out: :err)
+ raise unless system("pdoc", "--html", "-o", "sdk/python", "../sdk/python/build/lib/arvados/",
+ out: :err)
else
puts "Warning: pdoc3 not found, Python documentation will not be generated".colorize(:light_red)
end
else
puts "Warning: pdoc3 not found, Python documentation will not be generated".colorize(:light_red)
end
@@
-76,7
+78,6
@@
file "sdk/R/arvados/index.html" do |t|
cp('css/R.css', 'sdk/R/arvados')
docfiles = []
Dir.chdir("../sdk/R/") do
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"
Dir.entries("man").each do |rd|
if rd[-3..-1] == ".Rd"
htmlfile = "#{rd[0..-4]}.html"
@@
-87,7
+88,7
@@
file "sdk/R/arvados/index.html" do |t|
end
raise if $? != 0
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
---
File.open("sdk/R/index.html.md", "w") do |fn|
fn.write(<<-EOF
---
@@
-97,7
+98,7
@@
navmenu: R
title: "R SDK Overview"
...
title: "R SDK Overview"
...
-#{rd.read
.gsub(/^```$/, "~~~").gsub(/^```(\w)$/, "~~~\\1")
}
+#{rd.read}
EOF
)
end
EOF
)
end