Skip to content

Commit

Permalink
Make sure docfx tool is installed when building the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
flemming-n-larsen committed Sep 19, 2024
1 parent 452e23a commit da6194b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions buildDocs/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ tasks {
}
}

// Install latest docfx
val installDocfx = register<Exec>("updateDocfx") {
commandLine("dotnet", "tool", "install", "-g", "docfx", "--version", "2.77.0")
}

val npmBuild by registering(NpmTask::class) {
dependsOn(npmInstall)

Expand All @@ -34,6 +39,7 @@ tasks {

register<Copy>("uploadDocs") {
dependsOn(clean, npmBuild)
dependsOn(installDocfx)

duplicatesStrategy = DuplicatesStrategy.EXCLUDE

Expand Down

0 comments on commit da6194b

Please sign in to comment.