fix(docs): stop builds from churning tracked docs screenshots (#6012)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
James Rich
2026-06-29 10:28:29 -05:00
committed by GitHub
parent 8cc8185048
commit fef124bc1f

View File

@@ -95,8 +95,12 @@ tasks
}
.configureEach { dependsOn(syncDocsToComposeResources) }
// FR-038: Ensure screenshots are generated before syncing docs resources
syncDocsToComposeResources.configure { dependsOn(":screenshot-tests:copyDocsScreenshots") }
// ponytail: do NOT wire copyDocsScreenshots into the build. It writes into the tracked
// docs/assets/screenshots/, so a build-time dependsOn rewrote those PNGs on every assemble/test
// run and churned the working tree. The app bundles the committed copies as-is; regenerate on
// demand for local viewing (./gradlew :screenshot-tests:copyDocsScreenshots) and `git checkout` to
// clean, or commit deliberately when refreshing the docs/Jekyll image set. Add a CI staleness gate
// if drift becomes a problem.
val syncTranslatedDocsToComposeResources by
tasks.registering(Copy::class) {