Skip to content

Commit

Permalink
update to vodml plugin 0.5.4
Browse files Browse the repository at this point in the history
also put in more flexible yq site nav integration option - it allows for the nav to be at any level
  • Loading branch information
pahjbo committed Jul 22, 2024
1 parent 70f8ef1 commit f3002bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
// this plugin provides all the vo-dml functionality
id("net.ivoa.vo-dml.vodmltools") version "0.5.2"
id("net.ivoa.vo-dml.vodmltools") version "0.5.4"
}

vodml {
Expand Down Expand Up @@ -43,6 +43,8 @@ dependencies {
testImplementation("org.javastro:jaxbjpa-utils:0.1.2:test")
}


// site tasks
tasks.register<Copy>("copyJavaDocForSite") {
from(layout.buildDirectory.dir("docs/javadoc"))
into(vodml.outputSiteDir.dir("javadoc"))
Expand All @@ -52,7 +54,7 @@ tasks.register<Copy>("copyJavaDocForSite") {

tasks.register<Exec>("makeSiteNav")
{
commandLine("yq","eval", "(.nav.[]|select(has(\"AutoGenerated Documentation\"))|.[\"AutoGenerated Documentation\"]) += load(\"allnav.yml\")", "mkdocs_template.yml")
commandLine("yq","eval", "(.nav | .. | select(has(\"AutoGenerated Documentation\"))|.[\"AutoGenerated Documentation\"]) += (load(\"doc/site/generated/allnav.yml\")|sort_by(keys|.[0]))", "mkdocs_template.yml")
standardOutput= file("mkdocs.yml").outputStream()
dependsOn("vodmlSite")
dependsOn("copyJavaDocForSite")
Expand Down

0 comments on commit f3002bb

Please sign in to comment.