Skip to content

Commit 3ddfeca

Browse files
committed
Disable Charts LinkGroup and update filtering logic
Commented out the "Charts" LinkGroup in `DocsMainLayout.razor.cs` to disable it without deletion. Updated the filtering logic in `IndexComponentLinks.razor` to include links with the text "Getting Started" in the `componentsLinks` collection. NOTE: This commit message is auto-generated using GitHub Copilot.
1 parent d309608 commit 3ddfeca

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

BlazorExpress.ChartJS.Demo.RCL/Layout/DocsMainLayout.razor.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,20 @@ private HashSet<LinkGroup> GetLinkGroups()
4747
});
4848

4949
// CHARTS
50-
groups.Add(new LinkGroup
51-
{
52-
Name = "Charts",
53-
CssClass = "is-size-7 has-text-weight-bold has-text-warning",
54-
Links = [
55-
new Link { Href = DemoRouteConstants.Docs_BarChart, Text = "Bar chart" },
56-
new Link { Href = DemoRouteConstants.Docs_DoughnutChart, Text = "Doughnut chart" },
57-
new Link { Href = DemoRouteConstants.Docs_LineChart, Text = "Line chart" },
58-
new Link { Href = DemoRouteConstants.Docs_PieChart, Text = "Pie chart" },
59-
new Link { Href = DemoRouteConstants.Docs_PolarAreaChart, Text = "PolarArea chart" },
60-
new Link { Href = DemoRouteConstants.Docs_RadarChart, Text = "Radar chart" },
61-
new Link { Href = DemoRouteConstants.Docs_ScatterChart, Text = "Scatter chart" }
62-
]
63-
});
50+
//groups.Add(new LinkGroup
51+
//{
52+
// Name = "Charts",
53+
// CssClass = "is-size-7 has-text-weight-bold has-text-warning",
54+
// Links = [
55+
// new Link { Href = DemoRouteConstants.Docs_BarChart, Text = "Bar chart" },
56+
// new Link { Href = DemoRouteConstants.Docs_DoughnutChart, Text = "Doughnut chart" },
57+
// new Link { Href = DemoRouteConstants.Docs_LineChart, Text = "Line chart" },
58+
// new Link { Href = DemoRouteConstants.Docs_PieChart, Text = "Pie chart" },
59+
// new Link { Href = DemoRouteConstants.Docs_PolarAreaChart, Text = "PolarArea chart" },
60+
// new Link { Href = DemoRouteConstants.Docs_RadarChart, Text = "Radar chart" },
61+
// new Link { Href = DemoRouteConstants.Docs_ScatterChart, Text = "Scatter chart" }
62+
// ]
63+
//});
6464

6565
// UTILS
6666
groups.Add(new LinkGroup

BlazorExpress.ChartJS.Demo.RCL/Pages/Home/IndexComponentLinks.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
protected override void OnInitialized()
4949
{
5050
componentsLinks = DemoPageLinkUtil.GetDemosLinks()
51-
.Where(link => link.Categories.Contains(Category) && link.IsActive && link.Text != "Getting Started")
51+
.Where(link => link.Categories.Contains(Category) && link.IsActive && !link.ExcludedFromHomePage)
5252
.ToHashSet();
5353
}
5454
}

0 commit comments

Comments
 (0)