JAL-4004 Temporary mechanism to add JalviewJS link for selected versions to hugo...
authorBen Soares <bsoares@dundee.ac.uk>
Mon, 9 May 2022 11:27:27 +0000 (12:27 +0100)
committerBen Soares <bsoares@dundee.ac.uk>
Mon, 9 May 2022 11:27:27 +0000 (12:27 +0100)
build.gradle
gradle.properties
utils/hugo/jalviewjs.txt [new file with mode: 0644]
utils/hugo/templates/content/development/archive/Version-__VERSION_UNDERSCORES__/_index.md

index 18af797..17aec88 100644 (file)
@@ -2463,6 +2463,7 @@ task hugoTemplates {
   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
@@ -2486,6 +2487,7 @@ task hugoTemplates {
     }
 
     def oldJvl = oldJvlFile.exists() ? oldJvlFile.collect{it} : []
+    def jalviewjsLink = jalviewjsFile.exists() ? jalviewjsFile.collect{it} : []
 
     def changesHugo = null
     if (changes != null) {
@@ -2549,6 +2551,7 @@ task hugoTemplates {
           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" : ""
         ]
       )
index cd4bc4a..acb65e9 100644 (file)
@@ -59,6 +59,7 @@ shadow_jar_main_class = jalview.bin.Launcher
 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
diff --git a/utils/hugo/jalviewjs.txt b/utils/hugo/jalviewjs.txt
new file mode 100644 (file)
index 0000000..0637dcb
--- /dev/null
@@ -0,0 +1,2 @@
+2.11.1.0
+2.11.2.0