Skip to content

Commit

Permalink
remove beta warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristjan Nielsen committed Oct 13, 2023
1 parent 1dff9ed commit 060374d
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions DocsGeneration/MarkDowns/Components.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, List<Component>> components, List<Parameter> parameters) {
CreateComponentOverview(components.Keys.ToList());
Expand Down Expand Up @@ -165,7 +156,13 @@ private static void CreateComponentOverview(List<string> 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";
Expand Down

0 comments on commit 060374d

Please sign in to comment.