Skip to content

Commit 6224618

Browse files
Quattro8zoobestik
authored andcommitted
KTL-2775 remove BuildReferenceDocs from files
1 parent 06a131c commit 6224618

File tree

1 file changed

+0
-64
lines changed

1 file changed

+0
-64
lines changed
Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +0,0 @@
1-
package kotlinlang.builds
2-
3-
import jetbrains.buildServer.configs.kotlin.AbsoluteId
4-
import jetbrains.buildServer.configs.kotlin.BuildType
5-
import jetbrains.buildServer.configs.kotlin.buildSteps.ScriptBuildStep
6-
import jetbrains.buildServer.configs.kotlin.buildSteps.script
7-
import java.io.File
8-
import java.nio.file.Paths
9-
10-
private fun readScript(name: String): String {
11-
val file = File(Paths.get("scripts/$name.mjs").toAbsolutePath().toString())
12-
return file.readText()
13-
}
14-
15-
object BuildReferenceDocs : BuildType({
16-
name = "Reference Docs"
17-
description = "Build documentation pages https://kotlinlang.org/docs/"
18-
19-
artifactRules = """
20-
+:images => docs.zip!images
21-
+:static => docs.zip!static
22-
+:pages/*.html => docs.zip
23-
+:pages/*.json => docs.zip
24-
""".trimIndent()
25-
26-
params {
27-
param("WEBHELP_FRONTEND_VERSION", "6.24.0-api-nav")
28-
param("WH_DOCS_PATH_REGEX", "docs")
29-
param("WH_PROJECT_NAME", "kotlin-reference")
30-
}
31-
32-
steps {
33-
script {
34-
name = "Fix paths"
35-
scriptContent = """
36-
find pages -type f -name '*.html' -exec sed -i -E 's/((https?:)?\/\/resources.jetbrains.com)?\/storage\/help-app\/v[0-9]\//static\/v3\//g' {} +
37-
find pages -type f -name '*.html' -exec sed -i -E "s/((https?:)?\/\/resources.jetbrains.com)?\/help\/app\//static\//g" {} +
38-
39-
find pages -type f -name '*.html' -exec sed -i -E "s/(static\/v3\/app.css)/\1?v=%WEBHELP_FRONTEND_VERSION%/g" {} +
40-
""".trimIndent()
41-
dockerImage = "alpine"
42-
dockerImagePlatform = ScriptBuildStep.ImagePlatform.Linux
43-
}
44-
}
45-
46-
dependencies {
47-
dependency(AbsoluteId("Documentation_TransitioningProducts_KotlinReferenceWithCoroutines")) {
48-
snapshot {}
49-
50-
artifacts {
51-
cleanDestination = true
52-
artifactRules = """
53-
+:webHelpImages.zip!** => images/
54-
+:webHelpKR2.zip!** => pages/
55-
""".trimIndent()
56-
}
57-
}
58-
artifacts(BuildWebHelpFrontend) {
59-
buildRule = lastPinned("+:*")
60-
cleanDestination = true
61-
artifactRules = "+:static.zip!** => static/v3"
62-
}
63-
}
64-
})

0 commit comments

Comments
 (0)