Skip to content

Commit f50d0c8

Browse files
committed
Update Docs layout and navigation links
- Added a new "Charts" LinkGroup in DocsMainLayout.razor.cs. - Introduced a link to "Docs" in MainLayoutBaseFooter.razor, replacing the old "Docs" link. - Changed layout in GettingStartedDocumentation.razor from DemosMainLayout to DocsMainLayout. NOTE: This commit message is auto-generated using GitHub Copilot.
1 parent 3ddfeca commit f50d0c8

3 files changed

Lines changed: 16 additions & 16 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/Layout/MainLayoutBaseFooter.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
<p class="is-size-5">Links</p>
3131
<ul class="menu-list">
3232
<li><a href="/">Home</a></li>
33+
<li><a href="@DemoRouteConstants.Docs_Getting_Started_Introduction">Docs</a></li>
3334
<li><a href="@DemoRouteConstants.Demos_BarChart">Demos</a></li>
34-
<li><a href="@DemoRouteConstants.Docs_Prefix">Docs</a></li>
3535
<li><a href="/">Blog</a></li>
3636
<li><a href="@GithubUrl" target="_blank">GitHub</a></li>
3737
</ul>

BlazorExpress.ChartJS.Demo.RCL/Pages/Docs/GettingStarted/GettingStartedDocumentation.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@attribute [Route(pageUrl)]
22
@attribute [Route(pageUrl2)]
3-
@layout DemosMainLayout
3+
@layout DocsMainLayout
44

55
<PageMetaTags PageUrl="@pageUrl" Title="@metaTitle" Description="@metaDescription" ImageUrl="@imageUrl" />
66

0 commit comments

Comments
 (0)