From 49dea3f09cbba5d786df10332a76d516b1ddfab2 Mon Sep 17 00:00:00 2001 From: nikpachoo Date: Fri, 17 Jan 2025 14:22:16 +0100 Subject: [PATCH 1/2] ktl-2025 chore: return grammar to the dependency chain --- .../kotlinlang/templates/DockerImageBuilder.kt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.teamcity/builds/kotlinlang/templates/DockerImageBuilder.kt b/.teamcity/builds/kotlinlang/templates/DockerImageBuilder.kt index 01c00fec8a0..7205aac40b6 100644 --- a/.teamcity/builds/kotlinlang/templates/DockerImageBuilder.kt +++ b/.teamcity/builds/kotlinlang/templates/DockerImageBuilder.kt @@ -34,9 +34,15 @@ object DockerImageBuilder : Template({ onDependencyCancel = FailureAction.CANCEL } - artifacts(BuildKotlinGrammar) { - buildRule = lastPinned("+:*") - artifactRules = "grammar.xml" + dependency(BuildKotlinGrammar) { + snapshot { + onDependencyFailure = FailureAction.FAIL_TO_START + onDependencyCancel = FailureAction.CANCEL + } + + artifacts { + artifactRules = "grammar.xml" + } } } }) From dd5ba89060e998421ae8381725eb65b289287e23 Mon Sep 17 00:00:00 2001 From: nikpachoo Date: Mon, 20 Jan 2025 16:42:27 +0100 Subject: [PATCH 2/2] ktl-2025 chore: hide the "Edit Page" button for Grammar --- templates/inc/edit-on-github-link.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/templates/inc/edit-on-github-link.html b/templates/inc/edit-on-github-link.html index b3595b8691f..92e2f51742b 100644 --- a/templates/inc/edit-on-github-link.html +++ b/templates/inc/edit-on-github-link.html @@ -1,7 +1,9 @@ - - - Edit Page - \ No newline at end of file +{% if edit_on_github_url %} + + + Edit Page + +{% endif %} \ No newline at end of file