Skip to content

Commit ba2e612

Browse files
authored
Fix generateAndPublishDocs (apple#25)
Fixes an issue where new docs get generated, but not published.
1 parent b511d21 commit ba2e612

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

.idea/sbt.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/main/kotlin/org/pkl/package_docs/Main.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
2+
* Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
1616
package org.pkl.package_docs
1717

1818
import java.nio.file.Path
19+
import kotlin.system.exitProcess
1920

2021
fun main(args: Array<String>) {
2122
val gitRootDir = Path.of(args[0])
@@ -30,4 +31,8 @@ fun main(args: Array<String>) {
3031
if (doPublish) {
3132
docsGenerator.uploadDocs()
3233
}
34+
// hotfix: call `exitProcess` here to workaround something
35+
// causing the docs generator to hang.
36+
// TODO: figure out why this is hanging.
37+
exitProcess(0)
3338
}

src/main/kotlin/org/pkl/package_docs/PackageDocs.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ class PackageDocs(
9494
).run()
9595
println("Wrote docs to $docsOutputDir")
9696
print(packages.joinToString("\n"))
97-
exitProcess(0)
9897
}
9998

10099
fun uploadDocs() {

0 commit comments

Comments
 (0)