Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Blake.BuildTools/BlakeContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ public class BlakeContext
}

public record MarkdownPage(string MdPath, string TemplatePath, string Slug, string RawMarkdown);
public record GeneratedPage(PageModel Page, string OutputPath, string RazorHtml);
public record GeneratedPage(PageModel Page, string OutputPath, string RazorHtml, string RawHtml);
2 changes: 1 addition & 1 deletion src/Blake.BuildTools/Generator/SiteGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@

logger.LogInformation("✅ Generated page: {OutputPath}", outputPath);

context.GeneratedPages.Add(new GeneratedPage(page, outputPath, generatedRazor));
context.GeneratedPages.Add(new GeneratedPage(page, outputPath, generatedRazor, renderedHtml));
}
catch (Exception e)
{
Expand Down Expand Up @@ -367,7 +367,7 @@
var fullFolderPath = Path.Combine(rootPath, folder);
if (!Directory.Exists(fullFolderPath))
{
logger.LogDebug("⚠️ Skipping missing folder: {Folder}", folder);

Check warning on line 370 in src/Blake.BuildTools/Generator/SiteGenerator.cs

View workflow job for this annotation

GitHub Actions / test

Possible null reference argument for parameter 'logger' in 'void LoggerExtensions.LogDebug(ILogger logger, string? message, params object?[] args)'.
continue;
}

Expand All @@ -376,7 +376,7 @@

if (File.Exists(localCascadingTemplatePath) && File.Exists(localTemplatePath))
{
logger.LogWarning("⚠️ Folder {FullFolderPath} contains both local and cascading templates. Skipping.", fullFolderPath);

Check warning on line 379 in src/Blake.BuildTools/Generator/SiteGenerator.cs

View workflow job for this annotation

GitHub Actions / test

Possible null reference argument for parameter 'logger' in 'void LoggerExtensions.LogWarning(ILogger logger, string? message, params object?[] args)'.
continue;
}

Expand All @@ -385,7 +385,7 @@
var templatePath = File.Exists(localTemplatePath) ? localTemplatePath : cascadingPath;
if (string.IsNullOrEmpty(templatePath))
{
logger.LogDebug("⚠️ No template.razor found in {Folder}, skipping.", folder);

Check warning on line 388 in src/Blake.BuildTools/Generator/SiteGenerator.cs

View workflow job for this annotation

GitHub Actions / test

Possible null reference argument for parameter 'logger' in 'void LoggerExtensions.LogDebug(ILogger logger, string? message, params object?[] args)'.
continue;
}

Expand All @@ -393,7 +393,7 @@

if (markdownFiles.Length == 0)
{
logger.LogDebug("⚠️ No markdown files found in {Folder}. Continuing to process child folders if any.", folder);

Check warning on line 396 in src/Blake.BuildTools/Generator/SiteGenerator.cs

View workflow job for this annotation

GitHub Actions / test

Possible null reference argument for parameter 'logger' in 'void LoggerExtensions.LogDebug(ILogger logger, string? message, params object?[] args)'.
}
else
{
Expand Down
Loading