def css = "$jalviewDir/$docDir/github.css"
def pandoc = pandoc_exec
+ def hostname = "hostname".execute().text.trim()
if (! file(pandoc).exists() && hostname.equals("jv-bamboo")) {
pandoc = System.getProperty("user.home")+"/buildtools/pandoc/bin/pandoc"
}
if (file(pandoc).exists()) {
commandLine pandoc, '-s', '-o', buildingHTML, '--metadata', 'pagetitle="Building Jalview from Source"', '--toc', '-H', css, buildingMD
+ } else {
+ commandLine "true"
}
+
ignoreExitValue true
inputs.file(buildingMD)