Skip to content

Commit 3954565

Browse files
committed
Docs update
1 parent eadd26b commit 3954565

22 files changed

Lines changed: 160 additions & 163 deletions

BlazorExpress.Bulma.Demo.RCL/BlazorExpress.Bulma.Demo.RCL.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<Compile Remove="Pages\Demos\GettingStarted\01_A_Manual_Install_05_Snippet.cs" />
10+
<Content Remove="Pages\Docs\GettingStarted\01_A_Manual_Install_04_Snippet.razor" />
1111
</ItemGroup>
1212

1313
<ItemGroup>
14-
<Content Remove="Pages\Demos\GettingStarted\01_A_Manual_Install_04_Snippet.razor" />
14+
<None Include="Pages\Docs\GettingStarted\01_A_Manual_Install_04_Snippet.razor" />
1515
</ItemGroup>
1616

1717
<ItemGroup>
18-
<Content Include="Pages\Demos\GettingStarted\01_A_Manual_Install_05_Snippet.cs" />
18+
<Compile Remove="Pages\Docs\GettingStarted\01_A_Manual_Install_05_Snippet.cs" />
1919
</ItemGroup>
2020

2121
<ItemGroup>
22-
<None Include="Pages\Demos\GettingStarted\01_A_Manual_Install_04_Snippet.razor" />
22+
<Content Include="Pages\Docs\GettingStarted\01_A_Manual_Install_05_Snippet.cs" />
2323
</ItemGroup>
2424

2525
<ItemGroup>

BlazorExpress.Bulma.Demo.RCL/Constants/RouteConstants.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ public static class RouteConstants
88

99
#region Docs
1010

11+
// Getting Started
12+
public const string Docs_Getting_Started = Docs_Prefix + "/getting-started";
13+
public const string Docs_Getting_Started_Introduction = Docs_Getting_Started + "/introduction";
14+
public const string Docs_Getting_Started_WebAssembly_NET_8 = Docs_Getting_Started + "/blazor-webassembly-net-8";
15+
public const string Docs_Getting_Started_WebApp_Server_NET_8 = Docs_Getting_Started + "/blazor-webapp-server-global-net-8";
16+
public const string Docs_Getting_Started_WebApp_Auto_NET_8 = Docs_Getting_Started + "/blazor-webapp-auto-global-net-8";
17+
public const string Docs_Getting_Started_MAUI_NET_8 = Docs_Getting_Started + "/maui-blazor-net-8";
18+
1119
// Features
1220
public const string Docs_Skeletons_Documentation = Docs_Prefix + "/skeletons";
1321

@@ -83,14 +91,6 @@ public static class RouteConstants
8391

8492
#region Demos
8593

86-
// Getting Started
87-
public const string Demos_Getting_Started = Demos_Prefix + "/getting-started";
88-
public const string Demos_Getting_Started_Introduction = Demos_Getting_Started + "/introduction";
89-
public const string Demos_Getting_Started_WebAssembly_NET_8 = Demos_Getting_Started + "/blazor-webassembly-net-8";
90-
public const string Demos_Getting_Started_WebApp_Server_NET_8 = Demos_Getting_Started + "/blazor-webapp-server-global-net-8";
91-
public const string Demos_Getting_Started_WebApp_Auto_NET_8 = Demos_Getting_Started + "/blazor-webapp-auto-global-net-8";
92-
public const string Demos_Getting_Started_MAUI_NET_8 = Demos_Getting_Started + "/maui-blazor-net-8";
93-
9494
// Features
9595
public const string Demos_Skeletons_Documentation = Demos_Prefix + "/skeletons";
9696

BlazorExpress.Bulma.Demo.RCL/Layout/BlogMainLayout.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ private HashSet<LinkGroup> GetLinkGroups()
3838
Name = "GETTING STARTED",
3939
CssClass = "is-size-7 has-text-weight-bold has-text-danger",
4040
Links = [
41-
new Link { Href = RouteConstants.Demos_Getting_Started_Introduction, Text = "Introduction" },
41+
new Link { Href = RouteConstants.Docs_Getting_Started_Introduction, Text = "Introduction" },
4242
]
4343
});
4444

BlazorExpress.Bulma.Demo.RCL/Layout/DemosMainLayout.razor.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,6 @@ private HashSet<LinkGroup> GetLinkGroups()
3232
{
3333
var groups = new HashSet<LinkGroup>();
3434

35-
// GETTING STARTED
36-
groups.Add(new LinkGroup
37-
{
38-
Name = "GETTING STARTED",
39-
CssClass = "is-size-7 has-text-weight-bold has-text-danger",
40-
Links = [
41-
new Link { Href = RouteConstants.Demos_Getting_Started_Introduction, Text = "Introduction" },
42-
new Link { Href = RouteConstants.Demos_Getting_Started_WebAssembly_NET_8, Text = "Blazor WebAssembly (.NET 8)" },
43-
new Link { Href = RouteConstants.Demos_Getting_Started_WebApp_Server_NET_8, Text = "Blazor WebApp (.NET 8) Server" },
44-
new Link { Href = RouteConstants.Demos_Getting_Started_WebApp_Auto_NET_8, Text = "Blazor WebApp (.NET 8) Auto" },
45-
new Link { Href = RouteConstants.Demos_Getting_Started_MAUI_NET_8, Text = "MAUI Blazor Hybrid App (.NET 8)" },
46-
]
47-
});
48-
4935
// FEATURES
5036
groups.Add(new LinkGroup
5137
{

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ private HashSet<LinkGroup> GetLinkGroups()
3232
{
3333
var groups = new HashSet<LinkGroup>();
3434

35+
// GETTING STARTED
36+
groups.Add(new LinkGroup
37+
{
38+
Name = "GETTING STARTED",
39+
CssClass = "is-size-7 has-text-weight-bold has-text-danger",
40+
Links = [
41+
new Link { Href = RouteConstants.Docs_Getting_Started_Introduction, Text = "Introduction" },
42+
new Link { Href = RouteConstants.Docs_Getting_Started_WebAssembly_NET_8, Text = "Blazor WebAssembly (.NET 8)" },
43+
new Link { Href = RouteConstants.Docs_Getting_Started_WebApp_Server_NET_8, Text = "Blazor WebApp (.NET 8) Server" },
44+
new Link { Href = RouteConstants.Docs_Getting_Started_WebApp_Auto_NET_8, Text = "Blazor WebApp (.NET 8) Auto" },
45+
new Link { Href = RouteConstants.Docs_Getting_Started_MAUI_NET_8, Text = "MAUI Blazor Hybrid App (.NET 8)" },
46+
]
47+
});
48+
3549
// FEATURES
3650
groups.Add(new LinkGroup
3751
{

BlazorExpress.Bulma.Demo.RCL/Layout/MainLayout.razor.cs

Lines changed: 102 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public partial class MainLayout : MainLayoutBase
55
#region Fields and Constants
66

77
private bool isSidebarVisible = false;
8-
private HashSet<LinkGroup> linkGroups = new();
8+
//private HashSet<LinkGroup> linkGroups = new();
99
private Menu menuRef = default!;
1010

1111
#endregion
@@ -20,107 +20,107 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
2020
await base.OnAfterRenderAsync(firstRender);
2121
}
2222

23-
protected override void OnInitialized()
24-
{
25-
if (!linkGroups.Any())
26-
linkGroups = GetLinkGroups();
27-
28-
base.OnInitialized();
29-
}
30-
31-
private HashSet<LinkGroup> GetLinkGroups()
32-
{
33-
var groups = new HashSet<LinkGroup>();
34-
35-
// GETTING STARTED
36-
groups.Add(new LinkGroup
37-
{
38-
Name = "GETTING STARTED",
39-
CssClass = "is-size-7 has-text-weight-bold has-text-danger",
40-
Links = [
41-
new Link { Href = RouteConstants.Demos_Getting_Started_Introduction, Text = "Introduction" },
42-
]
43-
});
44-
45-
// FEATURES
46-
groups.Add(new LinkGroup
47-
{
48-
Name = "FEATURES",
49-
CssClass = "is-size-7 has-text-weight-bold has-text-warning",
50-
Links = [
51-
new Link { Href = RouteConstants.Demos_Skeletons_Documentation, Text = "Skeletons" }
52-
]
53-
});
54-
55-
// ICONS
56-
groups.Add(new LinkGroup
57-
{
58-
Name = "ICONS",
59-
CssClass = "is-size-7 has-text-weight-bold has-text-info",
60-
Links = [
61-
new Link { Href = RouteConstants.Demos_BootstrapIcons_Documentation, Text = "Bootstrap Icons" },
62-
new Link { Href = RouteConstants.Demos_GoogleFontIcons_Documentation, Text = "Google Font Icons" }
63-
]
64-
});
65-
66-
// ELEMENTS
67-
groups.Add(new LinkGroup
68-
{
69-
Name = "ELEMENTS",
70-
CssClass = "is-size-7 has-text-weight-bold has-text-primary",
71-
Links = [
72-
new Link { Href = RouteConstants.Demos_Block_Documentation, Text = "Block" },
73-
new Link { Href = RouteConstants.Demos_Box_Documentation, Text = "Box" },
74-
new Link { Href = RouteConstants.Demos_Button_Documentation, Text = "Button" },
75-
new Link { Href = RouteConstants.Demos_DeleteButton_Documentation, Text = "Delete Button" },
76-
new Link { Href = RouteConstants.Demos_Image_Documentation, Text = "Image" },
77-
new Link { Href = RouteConstants.Demos_Notification_Documentation, Text = "Notification" },
78-
new Link { Href = RouteConstants.Demos_ProgressBar_Documentation, Text = "Progress Bar" },
79-
new Link { Href = RouteConstants.Demos_Tags_Documentation, Text = "Tags" },
80-
]
81-
});
82-
83-
// FORM
84-
groups.Add(new LinkGroup
85-
{
86-
Name = "FORM",
87-
CssClass = "is-size-7 has-text-weight-bold has-text-primary",
88-
Links = [
89-
new Link { Href = RouteConstants.Demos_Form_DateInput_Documentation , Text = "Date Input" },
90-
new Link { Href = RouteConstants.Demos_Form_OTPInput_Documentation , Text = "OTP Input" },
91-
new Link { Href = RouteConstants.Demos_Form_TextInput_Documentation , Text = "Text Input" },
92-
]
93-
});
94-
95-
// COMPONENTS
96-
groups.Add(new LinkGroup
97-
{
98-
Name = "COMPONENTS",
99-
CssClass = "is-size-7 has-text-weight-bold has-text-dark",
100-
Links = [
101-
new Link { Href = RouteConstants.Demos_ConfirmDialog_Documentation, Text = "Confirm Dialog" },
102-
new Link { Href = RouteConstants.Demos_GoogleMaps_Documentation, Text = "Google Maps" },
103-
new Link { Href = RouteConstants.Demos_Grid_Documentation, Text = "Grid" },
104-
new Link { Href = RouteConstants.Demos_Message_Documentation, Text = "Message" },
105-
new Link { Href = RouteConstants.Demos_Modal_Documentation, Text = "Modal" },
106-
new Link { Href = RouteConstants.Demos_Pagination_Documentation, Text = "Pagination" },
107-
new Link { Href = RouteConstants.Demos_ScriptLoader_Documentation, Text = "Script Loader" },
108-
new Link { Href = RouteConstants.Demos_Tabs_Documentation, Text = "Tabs" }
109-
]
110-
});
111-
112-
// LAYOUT
113-
groups.Add(new LinkGroup
114-
{
115-
Name = "LAYOUT",
116-
CssClass = "is-size-7 has-text-weight-bold has-text-success",
117-
Links = [
118-
new Link { Href = RouteConstants.Demos_Hero_Documentation, Text = "Hero" }
119-
]
120-
});
121-
122-
return groups;
123-
}
23+
//protected override void OnInitialized()
24+
//{
25+
// if (!linkGroups.Any())
26+
// linkGroups = GetLinkGroups();
27+
28+
// base.OnInitialized();
29+
//}
30+
31+
//private HashSet<LinkGroup> GetLinkGroups()
32+
//{
33+
// var groups = new HashSet<LinkGroup>();
34+
35+
// // GETTING STARTED
36+
// groups.Add(new LinkGroup
37+
// {
38+
// Name = "GETTING STARTED",
39+
// CssClass = "is-size-7 has-text-weight-bold has-text-danger",
40+
// Links = [
41+
// new Link { Href = RouteConstants.Demos_Getting_Started_Introduction, Text = "Introduction" },
42+
// ]
43+
// });
44+
45+
// // FEATURES
46+
// groups.Add(new LinkGroup
47+
// {
48+
// Name = "FEATURES",
49+
// CssClass = "is-size-7 has-text-weight-bold has-text-warning",
50+
// Links = [
51+
// new Link { Href = RouteConstants.Demos_Skeletons_Documentation, Text = "Skeletons" }
52+
// ]
53+
// });
54+
55+
// // ICONS
56+
// groups.Add(new LinkGroup
57+
// {
58+
// Name = "ICONS",
59+
// CssClass = "is-size-7 has-text-weight-bold has-text-info",
60+
// Links = [
61+
// new Link { Href = RouteConstants.Demos_BootstrapIcons_Documentation, Text = "Bootstrap Icons" },
62+
// new Link { Href = RouteConstants.Demos_GoogleFontIcons_Documentation, Text = "Google Font Icons" }
63+
// ]
64+
// });
65+
66+
// // ELEMENTS
67+
// groups.Add(new LinkGroup
68+
// {
69+
// Name = "ELEMENTS",
70+
// CssClass = "is-size-7 has-text-weight-bold has-text-primary",
71+
// Links = [
72+
// new Link { Href = RouteConstants.Demos_Block_Documentation, Text = "Block" },
73+
// new Link { Href = RouteConstants.Demos_Box_Documentation, Text = "Box" },
74+
// new Link { Href = RouteConstants.Demos_Button_Documentation, Text = "Button" },
75+
// new Link { Href = RouteConstants.Demos_DeleteButton_Documentation, Text = "Delete Button" },
76+
// new Link { Href = RouteConstants.Demos_Image_Documentation, Text = "Image" },
77+
// new Link { Href = RouteConstants.Demos_Notification_Documentation, Text = "Notification" },
78+
// new Link { Href = RouteConstants.Demos_ProgressBar_Documentation, Text = "Progress Bar" },
79+
// new Link { Href = RouteConstants.Demos_Tags_Documentation, Text = "Tags" },
80+
// ]
81+
// });
82+
83+
// // FORM
84+
// groups.Add(new LinkGroup
85+
// {
86+
// Name = "FORM",
87+
// CssClass = "is-size-7 has-text-weight-bold has-text-primary",
88+
// Links = [
89+
// new Link { Href = RouteConstants.Demos_Form_DateInput_Documentation , Text = "Date Input" },
90+
// new Link { Href = RouteConstants.Demos_Form_OTPInput_Documentation , Text = "OTP Input" },
91+
// new Link { Href = RouteConstants.Demos_Form_TextInput_Documentation , Text = "Text Input" },
92+
// ]
93+
// });
94+
95+
// // COMPONENTS
96+
// groups.Add(new LinkGroup
97+
// {
98+
// Name = "COMPONENTS",
99+
// CssClass = "is-size-7 has-text-weight-bold has-text-dark",
100+
// Links = [
101+
// new Link { Href = RouteConstants.Demos_ConfirmDialog_Documentation, Text = "Confirm Dialog" },
102+
// new Link { Href = RouteConstants.Demos_GoogleMaps_Documentation, Text = "Google Maps" },
103+
// new Link { Href = RouteConstants.Demos_Grid_Documentation, Text = "Grid" },
104+
// new Link { Href = RouteConstants.Demos_Message_Documentation, Text = "Message" },
105+
// new Link { Href = RouteConstants.Demos_Modal_Documentation, Text = "Modal" },
106+
// new Link { Href = RouteConstants.Demos_Pagination_Documentation, Text = "Pagination" },
107+
// new Link { Href = RouteConstants.Demos_ScriptLoader_Documentation, Text = "Script Loader" },
108+
// new Link { Href = RouteConstants.Demos_Tabs_Documentation, Text = "Tabs" }
109+
// ]
110+
// });
111+
112+
// // LAYOUT
113+
// groups.Add(new LinkGroup
114+
// {
115+
// Name = "LAYOUT",
116+
// CssClass = "is-size-7 has-text-weight-bold has-text-success",
117+
// Links = [
118+
// new Link { Href = RouteConstants.Demos_Hero_Documentation, Text = "Hero" }
119+
// ]
120+
// });
121+
122+
// return groups;
123+
//}
124124

125125

126126
#endregion

BlazorExpress.Bulma.Demo.RCL/Layout/MainLayoutBaseFooter.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@
3030
<p class="is-size-5">Links</p>
3131
<ul class="menu-list">
3232
<li><a href="/">Home</a></li>
33-
<li><a href="@RouteConstants.Demos_Getting_Started_Introduction">Demos</a></li>
34-
<li><a href="@RouteConstants.Docs_Skeletons_Documentation">Docs</a></li>
35-
<li><a href="/">Blog</a></li>
33+
<li><a href="@RouteConstants.Docs_Getting_Started_Introduction">Docs</a></li>
34+
<li><a href="@RouteConstants.Demos_Skeletons_Documentation">Demos</a></li>
35+
@* <li><a href="/">Blog</a></li> *@
3636
<li><a href="@GithubUrl" target="_blank">GitHub</a></li>
3737
</ul>
3838
</div>
3939
<div class="column">
4040
<p class="is-size-5">Guides</p>
4141
<ul class="menu-list">
42-
<li><a href="@RouteConstants.Demos_Getting_Started_Introduction">Getting started</a></li>
42+
<li><a href="@RouteConstants.Docs_Getting_Started_Introduction">Getting started</a></li>
4343
<li><a href="/">Install NuGet package</a></li>
4444
<li><a href="/">Starter templates</a></li>
4545
</ul>
@@ -49,7 +49,7 @@
4949
<ul class="menu-list">
5050
<li><a href="@GithubIssuesUrl" target="_blank">Issues</a></li>
5151
<li><a href="@GithubDiscussionsUrl" target="_blank">Discussions</a></li>
52-
<li><a href="@OpenCollectiveUrl" target="_blank">Open Collective</a></li>
52+
@* <li><a href="@OpenCollectiveUrl" target="_blank">Open Collective</a></li> *@
5353
<li><a href="@StackoverflowUrl" target="_blank">Stack Overflow</a></li>
5454
</ul>
5555
</div>

BlazorExpress.Bulma.Demo.RCL/Pages/Demos/Skeletons/SkeletonsDocumentation.razor

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@attribute [Route(pageUrl)]
2+
@attribute [Route(pageUrl2)]
23
@layout DemosMainLayout
34

45
<PageMetaTags PageUrl="@pageUrl" Title="@metaTitle" Description="@metaDescription" ImageUrl="@imageUrl" />
@@ -71,6 +72,7 @@
7172

7273
@code {
7374
private const string pageUrl = RouteConstants.Demos_Skeletons_Documentation;
75+
private const string pageUrl2 = RouteConstants.Demos_Prefix;
7476
private const string pageTitle = "Skeleton";
7577
private const string pageDescription = "A <code>Skeleton</code> component is a loading state that acts as a placeholder for content within an interface.";
7678
private const string metaTitle = "Blazor Skeleton Component";

BlazorExpress.Bulma.Demo.RCL/Pages/Demos/GettingStarted/01_A_Manual_Install_01_Snippet.razor renamed to BlazorExpress.Bulma.Demo.RCL/Pages/Docs/GettingStarted/01_A_Manual_Install_01_Snippet.razor

File renamed without changes.

BlazorExpress.Bulma.Demo.RCL/Pages/Demos/GettingStarted/01_A_Manual_Install_02_Snippet.html renamed to BlazorExpress.Bulma.Demo.RCL/Pages/Docs/GettingStarted/01_A_Manual_Install_02_Snippet.html

File renamed without changes.

0 commit comments

Comments
 (0)