* Added autodoc builder step

* Added ignore badges branch for push events

* Fixed doc builder
This commit is contained in:
Felix Weiß
2023-07-07 00:11:30 +02:00
committed by GitHub
parent 6cb45ac27d
commit befadb67a5
2 changed files with 35 additions and 3 deletions

View File

@@ -17,8 +17,19 @@ Console.WriteLine("Building docs for PLC types...");
var entryLoc = Assembly.GetEntryAssembly();
ArgumentNullException.ThrowIfNull(entryLoc);
string filePath = Path.Combine(entryLoc.Location, @"..\..\..\..\Docs\plctypes.md");
Console.WriteLine($"{filePath}");
string filePath = null!;
if(args.Length == 0) {
filePath = Path.Combine(entryLoc.Location, @"..\..\..\..\Docs\plctypes.md");
} else {
filePath = args[0];
}
Console.WriteLine($"{filePath}");
StringBuilder markdownBuilder = new StringBuilder();