def releaseMdFile = file("${jalviewDir}/${releases_dir}/release-${JALVIEW_VERSION_UNDERSCORES}.md")
def whatsnewMdFile = file("${jalviewDir}/${whatsnew_dir}/whatsnew-${JALVIEW_VERSION_UNDERSCORES}.md")
def oldJvlFile = file("${jalviewDir}/${hugo_old_jvl}")
+ def jalviewjsFile = file("${jalviewDir}/${hugo_jalviewjs}")
doFirst {
// specific release template for version archive
}
def oldJvl = oldJvlFile.exists() ? oldJvlFile.collect{it} : []
+ def jalviewjsLink = jalviewjsFile.exists() ? jalviewjsFile.collect{it} : []
def changesHugo = null
if (changes != null) {
CHANGES: changesHugo,
DATE: givenDate == null ? "" : givenDate.format("yyyy-MM-dd"),
DRAFT: givenDate == null ? "true" : "false",
+ JALVIEWJSLINK: jalviewjsLink.contains(JALVIEW_VERSION) ? "true" : "false",
JVL_HEADER: oldJvl.contains(JALVIEW_VERSION) ? "jvl: true" : ""
]
)
jalview_name = Jalview
hugo_old_jvl = utils/hugo/old_jvl.txt
+hugo_jalviewjs = utils/hugo/jalviewjs.txt
hugo_build_dir = build/website/hugo
hugo_data_installers_dir = data/installers
hugo_version_archive_dir = content/development/archive