Skip to content

Commit d9a26e7

Browse files
committed
octicons
1 parent d89f00f commit d9a26e7

File tree

20 files changed

+452
-18
lines changed

20 files changed

+452
-18
lines changed

README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# RSCG - 246 Examples of Roslyn Source Code Generators / 16 created by Microsoft /
1+
# RSCG - 247 Examples of Roslyn Source Code Generators / 16 created by Microsoft /
22

3-
The RSCG_Examples repository is a comprehensive documentation system that automatically processes and showcases 246 Roslyn Source Code Generator (RSCG) examples. The system transforms individual RSCG projects into structured documentation with code examples and cross-referenced content with a searchable website and code example exports.
3+
The RSCG_Examples repository is a comprehensive documentation system that automatically processes and showcases 247 Roslyn Source Code Generator (RSCG) examples. The system transforms individual RSCG projects into structured documentation with code examples and cross-referenced content with a searchable website and code example exports.
44

55
This system serves as both a learning resource for .NET developers interested in source generators and an automated pipeline for maintaining up-to-date documentation about the RSCG ecosystem
66

7-
## Latest Update : 2025-12-13 => 13 December 2025
7+
## Latest Update : 2025-12-14 => 14 December 2025
88

99
If you want to see examples with code, please click ***[List V2](https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG)***
1010

@@ -24,8 +24,30 @@ If you want to be notified each time I add a new RSCG example , please click htt
2424

2525
## Content
2626

27-
Those are the 246 Roslyn Source Code Generators that I have tested you can see and download source code example.
27+
Those are the 247 Roslyn Source Code Generators that I have tested you can see and download source code example.
2828
( including 16 from Microsoft )
29+
### 247. [BlazorOcticons](https://ignatandrei.github.io/RSCG_Examples/v2/docs/BlazorOcticons) , in the [Blazor](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#blazor) category
30+
31+
Generated on : 2025-12-14 => 14 December 2025
32+
33+
<details>
34+
<summary>Expand</summary>
35+
36+
37+
38+
Author: Evgeniy K.
39+
40+
Package Description
41+
42+
Nuget: [https://www.nuget.org/packages/BlazorOcticons/](https://www.nuget.org/packages/BlazorOcticons/)
43+
44+
45+
Link: [https://ignatandrei.github.io/RSCG_Examples/v2/docs/BlazorOcticons](https://ignatandrei.github.io/RSCG_Examples/v2/docs/BlazorOcticons)
46+
47+
Source: [https://github.com/BlazorOcticons/BlazorOcticons](https://github.com/BlazorOcticons/BlazorOcticons)
48+
49+
</details>
50+
2951
### 246. [Imposter](https://ignatandrei.github.io/RSCG_Examples/v2/docs/Imposter) , in the [Tests](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#tests) category
3052

3153
Generated on : 2025-12-13 => 13 December 2025

later.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Just later
22

3-
## Latest Update : 2025-12-13 => 13 December 2025
3+
## Latest Update : 2025-12-14 => 14 December 2025
44

55

66

v2/.tours/BlazorOcticons.tour

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
{
3+
"$schema": "https://aka.ms/codetour-schema",
4+
"title": "BlazorOcticons",
5+
"steps":
6+
[
7+
{
8+
"file": "rscg_examples/BlazorOcticons/src/BlazorDemo/BlazorDemo.csproj",
9+
"description": "First, we add Nuget [BlazorOcticons](https://www.nuget.org/packages/BlazorOcticons/) in csproj ",
10+
"pattern": "BlazorOcticons"
11+
}
12+
13+
,{
14+
"file": "rscg_examples/BlazorOcticons/src/BlazorDemo/Octicons/Andrei16.razor",
15+
"description": "File Andrei16.razor ",
16+
"pattern": "this is the code"
17+
}
18+
19+
,{
20+
"file": "rscg_examples/BlazorOcticons/src/BlazorDemo/andrei-16.svg",
21+
"description": "File andrei-16.svg ",
22+
"pattern": "this is the code"
23+
}
24+
25+
,{
26+
"file": "rscg_examples/BlazorOcticons/src/BlazorDemo/Program.cs",
27+
"description": "File Program.cs \r\n>> dotnet run --project rscg_examples/BlazorOcticons/src/BlazorDemo/BlazorDemo.csproj ",
28+
"pattern": "this is the code"
29+
}
30+
31+
32+
],
33+
34+
"ref": "main"
35+
36+
}

v2/Generator/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ await File.WriteAllTextAsync(Path.Combine(examples,"description.json"),
154154

155155
long nr = await m.GenerateMSFT();
156156
Console.WriteLine("RSCG used by MSFT :" + nr);
157-
var lastGenerator = "RSCG_MCP2File";
157+
var lastGenerator = "Imposter";
158158

159159
await m.WrotePost(lastGenerator);
160160
await m.WroteDocusaurusAll(lastGenerator);

v2/Generator/all.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,4 @@ Nr,Key,Source,Category
245245
244,BoolParameterGenerator, https://github.com/9swampy/BoolEnumGenerator,Bool
246246
245,Monify, https://github.com/MooVC/monify,PrimitiveObsession
247247
246,Imposter, https://github.com/themidnightgospel/Imposter,Tests
248+
247,BlazorOcticons, https://github.com/BlazorOcticons/BlazorOcticons,Blazor

v2/RSCGExamplesData/GeneratorDataRec.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,4 +1492,10 @@
14921492
"dtStart": "2025-12-13T00:00:00",
14931493
"show": true
14941494
},
1495+
{
1496+
"ID": "BlazorOcticons",
1497+
"Category": 21,
1498+
"dtStart": "2025-12-14T00:00:00",
1499+
"show": true
1500+
}
14951501
]

v2/rscg_examples/BlazorOcticons/description.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"source":"https://github.com/BlazorOcticons/BlazorOcticons"
1010
},
1111
"data":{
12-
"goodFor":[""],
12+
"goodFor":["Generates Blazor components for GitHub Octicons SVG icons or from svg.","Easily integrate GitHub Octicons into your Blazor applications."],
1313
"csprojDemo":"BlazorDemo.csproj",
14-
"csFiles":["Program.cs"],
14+
"csFiles":["Program.cs","andrei-16.svg","Andrei16.razor"],
1515
"excludeDirectoryGenerated":["Microsoft.CodeAnalysis.Razor.Compiler"],
1616
"includeAdditionalFiles":[""]
1717
},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Package Description
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[![Backup Status](https://cloudback.it/badge/BlazorOcticons/BlazorOcticons)](https://cloudback.it)
2+
[![.NET](https://github.com/BlazorOcticons/BlazorOcticons/actions/workflows/dotnet.yml/badge.svg)](https://github.com/BlazorOcticons/BlazorOcticons/actions/workflows/dotnet.yml)
3+
[![GitHub](https://img.shields.io/github/license/BlazorOcticons/BlazorOcticons)](https://github.com/BlazorOcticons/BlazorOcticons/blob/main/LICENSE)
4+
[![Nuget (with prereleases)](https://img.shields.io/nuget/vpre/BlazorOcticons?logo=nuget)](https://www.nuget.org/packages/BlazorOcticons)
5+
6+
![image](https://github.com/BlazorOcticons/BlazorOcticons/assets/6689884/30a985b1-0938-4ba7-b0c1-9ced889636d0)
7+
8+
# BlazorOcticons
9+
10+
**BlazorOcticons** is an easy-to-use GitHub Octicons built as customizable `.razor` components.
11+
12+
| NuGet Package | Description |
13+
|-------------------------|-------------|
14+
| BlazorOcticons | Main package which contains only `.razor` components |
15+
| BlazorOcticonsGenerator | Helper package which contains Source Generators for Octicons |
16+
17+
## Installation
18+
19+
1. Install the BlazorOcticons NuGet package:
20+
21+
```
22+
dotnet add package BlazorOcticons
23+
```
24+
25+
2. In the `_Imports.razor` file add `@using BlazorOcticons.Octicons`:
26+
27+
``` razor
28+
29+
@using System.Net.Http
30+
@using System.Net.Http.Json
31+
...
32+
@using Microsoft.AspNetCore.Components
33+
@using Microsoft.JSInterop
34+
@using BlazorOcticons.Octicons
35+
36+
```
37+
38+
3. That's it! Now you can use the components in your project.
39+
40+
## Usage
41+
42+
Inside your code, use any of GitHub Octicons as `.razor` components:
43+
44+
``` razor
45+
<div class="p-3">
46+
...
47+
<MarkGithub16 Color="#702AF7" Size="48"/>
48+
...
49+
</div>
50+
```
51+
52+
## Contribute
53+
54+
All contributions are welcome! Feel free to raise any issues (bugs or feature requests), submit pull requests, etc.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"scriptName": "BlazorOcticons",
3+
"steps":
4+
[
5+
{"typeStep":"exec","arg":"clipchamp.exe launch"},
6+
{"typeStep":"text","arg": "Welcome to Roslyn Examples"},
7+
{"typeStep":"text","arg":"If you want to see more examples , see List Of RSCG"},
8+
{"typeStep":"browser","arg":"https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG"},
9+
{"typeStep":"text","arg": "My name is Andrei Ignat and I am deeply fond of Roslyn Source Code Generator. "},
10+
11+
{"typeStep":"text","arg": "Today I will present BlazorOcticons . Generates Blazor components for GitHub Octicons SVG icons or from svg.Easily integrate GitHub Octicons into your Blazor applications. ."},
12+
{"typeStep":"browser","arg":"https://www.nuget.org/packages/BlazorOcticons/"},
13+
{"typeStep":"text","arg": "The whole example is here"},
14+
{"typeStep":"browser","arg":"https://ignatandrei.github.io/RSCG_Examples/v2/docs/BlazorOcticons"},
15+
{"typeStep":"text","arg": "You can download the code from here"},
16+
{"typeStep":"browser","arg":"https://ignatandrei.github.io/RSCG_Examples/v2/docs/BlazorOcticons#download-example-net--c-"},
17+
{"typeStep":"text","arg":"Here is the code downloaded "},
18+
{"typeStep":"exec","arg":"explorer.exe /select,D:\\gth\\RSCG_Examples\\v2\\Generator.sln"},
19+
{"typeStep":"text","arg": "So , let's start the project with Visual Studio Code "},
20+
{"typeStep":"stepvscode","arg": "-n D:\\gth\\RSCG_Examples\\v2"},
21+
22+
{"typeStep":"text","arg": "To use it ,you will put the Nuget BlazorOcticons into the csproj "},
23+
24+
{"typeStep":"stepvscode","arg": "-r -g D:\\gth\\RSCG_Examples\\v2\\rscg_examples\\BlazorOcticons\\src\\BlazorDemo\\BlazorDemo.csproj"},
25+
26+
{"typeStep":"text","arg": "And now I will show you an example of using BlazorOcticons"},
27+
28+
{"typeStep":"hide","arg": "now execute the tour in VSCode"},
29+
{"typeStep":"tour", "arg": "src/.tours/"},
30+
{"typeStep":"text","arg":" And I will execute the project"},
31+
{"typeStep":"showproj", "arg":"BlazorDemo.csproj"},
32+
{"typeStep":"text","arg":" This concludes the project"},
33+
{"typeStep":"waitseconds","arg":"30"},
34+
{"typeStep":"text","arg": "Remember, you can download the code from here"},
35+
{"typeStep":"browser","arg":"https://ignatandrei.github.io/RSCG_Examples/v2/docs/BlazorOcticons#download-example-net--c-",
36+
SpeakTest=" "},
37+
{"typeStep":"waitseconds","arg":"30"},
38+
]
39+
}

0 commit comments

Comments
 (0)