Skip to content

Commit d85203b

Browse files
committed
Add RSCG example 237: Program and update links
Added a new example for RSCG 237 (Program) including HTML documentation and downloadable source zip. Updated the list and YAML to include the new example, adjusted link replacements in MultiGeneratorV2.cs for better path handling, and improved external link references in Program.md. Also updated the RSCG.xlsx export file.
1 parent 30d8eb3 commit d85203b

File tree

7 files changed

+72
-6
lines changed

7 files changed

+72
-6
lines changed

v2/Generator/MultiGeneratorV2.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,20 @@ public string[] SourceNoRSCG()
138138

139139
text = text.Replace("(readme/di.gif)", $"({d.Generator!.Source}/readme/di.gif)");
140140
text = text.Replace("(di.gif)", $"({d.Generator!.Source}/di.gif)");
141+
142+
text = text.Replace("(./docs/", $"({d.Generator!.Source}/docs/");
141143

142144
text = text.Replace("(doc/", $"({d.Generator!.Source}/doc/");
143145
text = text.Replace("(docs/rules/", $"({d.Generator!.Source}/docs/rules/");
144146
text = text.Replace("(CHANGELOG.md", $"({d.Generator!.Source}/CHANGELOG.md");
145147
text = text.Replace("(/.github/CONTRIBUTING.md)", $"({d.Generator!.Source}/.github/CONTRIBUTING.md)");
146148

149+
text = text.Replace("(CONTRIBUTING", $"({d.Generator!.Source}/CONTRIBUTING");
150+
text = text.Replace("(SECURITY", $"({d.Generator!.Source}/SECURITY");
151+
text = text.Replace("(./CODE-OF-CONDUCT", $"({d.Generator!.Source}/CODE-OF-CONDUCT");
152+
153+
154+
147155
text = text.Replace("(img/", $"({d.Generator!.Source}/img/");
148156
text = text.Replace("(RoseLynn.GenericsAnalyzer/)", $"({d.Generator!.Source}/RoseLynn.GenericsAnalyzer/)");
149157
text = text.Replace("(RossLean.", $"({d.Generator!.Source}/RossLean.");

v2/book/examples/Program.html

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
2+
<h1>RSCG nr 237 : Program</h1>
3+
4+
<h2>Info</h2>
5+
Nuget : <a href="https://www.nuget.org/packages/Microsoft.AspNetCore.OpenApi" target="_blank">https://www.nuget.org/packages/Microsoft.AspNetCore.OpenApi</a>
6+
7+
<p>You can find more details at : <a href="https://github.com/dotnet/aspnetcore/blob/70d851104f739fb906aabcd6a07c0935ce2549c9/src/Framework/AspNetCoreAnalyzers/src/SourceGenerators/PublicTopLevelProgramGenerator.cs#L11" target="_blank"> https://github.com/dotnet/aspnetcore/blob/70d851104f739fb906aabcd6a07c0935ce2549c9/src/Framework/AspNetCoreAnalyzers/src/SourceGenerators/PublicTopLevelProgramGenerator.cs#L11</a></p>
8+
9+
<p>Author :Microsoft</p>
10+
11+
<p>Source: <a href="https://github.com/dotnet/aspnetcore/" target="_blank">https://github.com/dotnet/aspnetcore/</a> </p>
12+
13+
<h2>About</h2>
14+
15+
Generating Program.cs class for testing purposes
16+
17+
<h2>
18+
How to use
19+
</h2>
20+
<h3>
21+
Add reference to the <a href="https://www.nuget.org/packages/Microsoft.AspNetCore.OpenApi" target="_blank">Program</a> in the csproj
22+
</h3>
23+
<img src="images/Program/TestProgram.csproj.png" width="580" height="580" />
24+
25+
<h3>This was for me the <b>starting</b> code</h3>
26+
27+
<br />
28+
I have <b>coded</b> the file Program.cs
29+
<br />
30+
<img src="images/Program/csFiles/Program.cs.png" width="580" height="580" />
31+
<hr />
32+
<h3>And here are the <i>generated</i> files</h3>
33+
34+
<br />
35+
The file <i>generated</i> is PublicTopLevelProgram.Generated.g.cs
36+
<br />
37+
<img src="images/Program/generated/PublicTopLevelProgram.Generated.g.cs.png" width="580" height="580" />
38+
39+
<p>
40+
You can download the code and this page as pdf from
41+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/Program'>
42+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/Program
43+
</a>
44+
</p>
45+
46+
47+
<p>
48+
You can see the whole list at
49+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'>
50+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG
51+
</a>
52+
</p>
53+

v2/book/list.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</head>
1818
<body>
1919
<h1>
20-
This is the list of 236 RSCG with examples =>
20+
This is the list of 237 RSCG with examples =>
2121
</h1>
2222

2323
<table >
@@ -970,6 +970,10 @@ <h1>
970970
<td>236</td>
971971
<td><a href="examples/validly.html">validly</a></td>
972972
</tr>
973+
<tr>
974+
<td>237</td>
975+
<td><a href="examples/Program.html">Program</a></td>
976+
</tr>
973977
</table>
974978

975979

v2/book/pandocHTML.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ input-files:
250250
- examples/RapidEnum.html
251251
- examples/Csvcsharp.html
252252
- examples/validly.html
253+
- examples/Program.html
253254

254255
# or you may use input-file: with a single value
255256
# defaults:

v2/rscg_examples_site/docs/RSCG-Examples/Program.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,16 @@ See the [Triage Process](https://github.com/dotnet/aspnetcore/blob/main/docs/Tri
7373
Some of the best ways to contribute are to try things out, file issues, join in design conversations,
7474
and make pull-requests.
7575

76-
* [Download our latest daily builds](./docs/DailyBuilds.md)
76+
* [Download our latest daily builds](https://github.com/dotnet/aspnetcore//docs/DailyBuilds.md)
7777
* Follow along with the development of ASP.NET Core:
7878
* [Community Standup](https://live.asp.net): The community standup is held every week and streamed live on YouTube. You can view past standups in the linked playlist.
7979
* [Roadmap](https://aka.ms/aspnet/roadmap): The schedule and milestone themes for ASP.NET Core.
80-
* [Build ASP.NET Core source code](./docs/BuildFromSource.md)
81-
* Check out the [contributing](CONTRIBUTING.md) page to see the best places to log issues and start discussions.
80+
* [Build ASP.NET Core source code](https://github.com/dotnet/aspnetcore//docs/BuildFromSource.md)
81+
* Check out the [contributing](https://github.com/dotnet/aspnetcore//CONTRIBUTING.md) page to see the best places to log issues and start discussions.
8282

8383
## Reporting security issues and bugs
8484

85-
Security issues and bugs should be reported privately to the Microsoft Security Response Center (MSRC) via the [MSRC Researcher Portal](https://msrc.microsoft.com/report/vulnerability/new). You should receive a response within 24 hours. Further information can be found in the [MSRC Report an Issue FAQ](https://www.microsoft.com/msrc/faqs-report-an-issue). You can also find these instructions in this repo's [Security doc](SECURITY.md).
85+
Security issues and bugs should be reported privately to the Microsoft Security Response Center (MSRC) via the [MSRC Researcher Portal](https://msrc.microsoft.com/report/vulnerability/new). You should receive a response within 24 hours. Further information can be found in the [MSRC Report an Issue FAQ](https://www.microsoft.com/msrc/faqs-report-an-issue). You can also find these instructions in this repo's [Security doc](https://github.com/dotnet/aspnetcore//SECURITY.md).
8686

8787
Also see info about related [Microsoft .NET Bounty Program](https://www.microsoft.com/msrc/bounty-dot-net-core).
8888

@@ -97,7 +97,7 @@ These are some other repos for related projects:
9797

9898
## Code of conduct
9999

100-
See [CODE-OF-CONDUCT](./CODE-OF-CONDUCT.md)
100+
See [CODE-OF-CONDUCT](https://github.com/dotnet/aspnetcore//CODE-OF-CONDUCT.md)
101101

102102
## Nightly builds
103103

-2 Bytes
Binary file not shown.
2.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)