From 060374d763e1431c1593273fda02eaa1249fcbad Mon Sep 17 00:00:00 2001 From: Kristjan Nielsen Date: Fri, 13 Oct 2023 22:32:00 +0200 Subject: [PATCH] remove beta warning --- DocsGeneration/MarkDowns/Components.cs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/DocsGeneration/MarkDowns/Components.cs b/DocsGeneration/MarkDowns/Components.cs index c1560e67a..567309e0f 100644 --- a/DocsGeneration/MarkDowns/Components.cs +++ b/DocsGeneration/MarkDowns/Components.cs @@ -8,15 +8,6 @@ namespace DocsGeneration.MarkDowns { public class Components { - public static readonly string ComponentsOverview = - "# Components\n" + - "\n" + - ":::caution" + - "\nGSA-Grasshopper plugin is pre-release and under active development, including further testing to be undertaken. It is provided \\\"as-is\\\" and you bear the risk of using it. Future versions may contain breaking changes. Any files, results, or other types of output information created using the plugin should not be relied upon without thorough and independent checking.\n:::\n" + - "\n" + - "![GsaGH-Ribbon](./images/RibbonLayout.gif)\n" + - "\n"; - public static void CreateOverview( Dictionary> components, List parameters) { CreateComponentOverview(components.Keys.ToList()); @@ -165,7 +156,13 @@ private static void CreateComponentOverview(List categories) { string filePath = $@"Output\gsagh-components.md"; Console.WriteLine($"Writing {filePath}"); - string text = ComponentsOverview; + string text = "# Components\n\n"; + if (GsaGH.GsaGhInfo.isBeta) { + text += StringHelper.AddBetaWarning(); + text += "\n"; + } + + text += "![GsaGH-Ribbon](./images/RibbonLayout.gif)\n\n"; foreach (string category in categories) { text += $"[{category} components](gsagh-{category.ToLower()}-components-overview.md)\n\n";