From 26b29984e06dc917cb1f6168a486c628c4b0fc80 Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger | alu-one Date: Fri, 12 Jun 2026 08:49:46 +0200 Subject: [PATCH] Re-brand the mermaid execution plan (`--plan`) --- src/Fallout.Build.Shared/Constants.cs | 16 ++++++++-------- .../Extensions/HandlePlanRequestsAttribute.cs | 4 +++- .../Execution/Extensions/execution-plan.html | 18 +++++++++--------- 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/src/Fallout.Build.Shared/Constants.cs b/src/Fallout.Build.Shared/Constants.cs index 0b5b34454..6df0637e7 100644 --- a/src/Fallout.Build.Shared/Constants.cs +++ b/src/Fallout.Build.Shared/Constants.cs @@ -46,19 +46,19 @@ internal static class Constants // Canonical project URLs. Until P7 (domain registration) lands, these all point at the GitHub fork. // To migrate to fallout., edit FalloutWebsite / FalloutRepository here — call sites already use the constants. - internal const string FalloutOwner = "ChrisonSimtian"; + internal const string FalloutOwner = "Fallout-build"; internal const string FalloutRepoName = "Fallout"; - internal const string FalloutWebsite = "https://github.com/" + FalloutOwner + "/" + FalloutRepoName; + internal const string FalloutWebsite = $"https://github.com/{FalloutOwner}/{FalloutRepoName}"; internal const string FalloutRepository = FalloutWebsite; - internal const string FalloutRepositoryGit = FalloutWebsite + ".git"; - internal const string FalloutRawRepository = "https://raw.githubusercontent.com/" + FalloutOwner + "/" + FalloutRepoName + "/main"; - internal const string FalloutDocsUrl = FalloutWebsite; // Replaced by docs.fallout. after #41. - internal const string FalloutTelemetryDocsUrl = FalloutWebsite + "#telemetry"; - internal const string FalloutNotificationsUrl = FalloutRawRepository + "/notifications.json"; + internal const string FalloutRepositoryGit = $"{FalloutWebsite}.git"; + internal const string FalloutRawRepository = $"https://raw.githubusercontent.com/{FalloutOwner}/{FalloutRepoName}/main"; + internal const string FalloutDocsUrl = "https://docs.fallout.build/"; + internal const string FalloutTelemetryDocsUrl = $"{FalloutWebsite}#telemetry"; + internal const string FalloutNotificationsUrl = $"{FalloutRawRepository}/notifications.json"; // Upstream NUKE references — only for attribution / fallback recognition of legacy project URLs. internal const string UpstreamNukeRepository = "https://github.com/nuke-build/nuke"; - internal const string UpstreamNukeRepositoryGit = UpstreamNukeRepository + ".git"; + internal const string UpstreamNukeRepositoryGit = $"{UpstreamNukeRepository}.git"; internal static AbsolutePath GlobalTemporaryDirectory => Path.GetTempPath(); internal static AbsolutePath GlobalFalloutDirectory => EnvironmentInfo.SpecialFolder(SpecialFolders.UserProfile) / ".fallout"; diff --git a/src/Fallout.Build/Execution/Extensions/HandlePlanRequestsAttribute.cs b/src/Fallout.Build/Execution/Extensions/HandlePlanRequestsAttribute.cs index 98d9dfc0d..8d23c44aa 100644 --- a/src/Fallout.Build/Execution/Extensions/HandlePlanRequestsAttribute.cs +++ b/src/Fallout.Build/Execution/Extensions/HandlePlanRequestsAttribute.cs @@ -3,6 +3,7 @@ using System.Diagnostics; using System.Linq; using System.Text; +using Fallout.Common; using Fallout.Common.Execution; using Fallout.Common.IO; using Fallout.Common.Utilities; @@ -32,7 +33,8 @@ public void ShowPlan() var resourceText = ResourceUtility.GetResourceAllText(HtmlFileName); var contents = resourceText .Replace("__GRAPH__", GetGraphDefinition()) - .Replace("__EVENTS__", GetEvents()); + .Replace("__EVENTS__", GetEvents()) + .Replace("__DOCS_URL__", Constants.FalloutDocsUrl); HtmlFile.WriteAllText(contents); diff --git a/src/Fallout.Build/Execution/Extensions/execution-plan.html b/src/Fallout.Build/Execution/Extensions/execution-plan.html index 66dc3486f..fbf94beb0 100644 --- a/src/Fallout.Build/Execution/Extensions/execution-plan.html +++ b/src/Fallout.Build/Execution/Extensions/execution-plan.html @@ -1,8 +1,8 @@ - + - - NUKE Execution Plan + + Fallout Execution Plan