Skip to content

Commit 687dc75

Browse files
author
Olivier Rogier
committed
Add auto generated readme.html
1 parent a2786f9 commit 687dc75

File tree

3 files changed

+1482
-5
lines changed

3 files changed

+1482
-5
lines changed

Project/Source/Common/Core/Globals/Globals.Files.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/// You may add additional accurate notices of copyright ownership.
1212
/// </license>
1313
/// <created> 2016-04 </created>
14-
/// <edited> 2022-03 </edited>
14+
/// <edited> 2023-04 </edited>
1515
namespace Ordisoftware.Core;
1616

1717
/// <summary>
@@ -149,6 +149,12 @@ static public string ApplicationIconFilePath
149149
static public string ApplicationReadmeMDPath
150150
=> Path.Combine(RootFolderPath, "README.md");
151151

152+
/// <summary>
153+
/// Indicates the file path of the application's readme html file.
154+
/// </summary>
155+
static public string ApplicationReadmeHtmlPath
156+
=> Path.Combine(RootFolderPath, "README.html");
157+
152158
/// <summary>
153159
/// Indicates the file path of the help.
154160
/// </summary>

Project/Source/Common/Core/WinControls/CommonMenusControl.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@
1111
/// You may add additional accurate notices of copyright ownership.
1212
/// </license>
1313
/// <created> 2016-04 </created>
14-
/// <edited> 2022-09 </edited>
14+
/// <edited> 2023-04 </edited>
1515
namespace Ordisoftware.Core;
1616

17-
using Markdig;
18-
1917
using TranslationPair = KeyValuePair<string, TranslationsDictionary>;
2018

2119
public sealed partial class CommonMenusControl : UserControl
@@ -241,6 +239,8 @@ private void ActionOpenWebsiteURL_Click(object sender, EventArgs e)
241239

242240
private void ActionReadme_Click(object sender, EventArgs e)
243241
{
242+
SystemManager.RunShell(Globals.ApplicationReadmeHtmlPath);
243+
/* TODO remove that and markdig
244244
var fileLines = Markdown.ToHtml(File.ReadAllText(Globals.ApplicationReadmeMDPath),
245245
new MarkdownPipelineBuilder().UseAdvancedExtensions().Build());
246246
string filePath = Path.Combine(Path.GetTempPath(), $"{Globals.ApplicationCode}-README.html");
@@ -253,7 +253,7 @@ private void ActionReadme_Click(object sender, EventArgs e)
253253
SystemManager.TryCatch(() => File.Delete(filePath));
254254
timer.Dispose();
255255
};
256-
timer.Start();
256+
timer.Start();*/
257257
}
258258

259259
private void ActionAbout_Click(object sender, EventArgs e)

0 commit comments

Comments
 (0)