Skip to content

Conversation

@matt-goldman
Copy link
Owner

Summary

Currently only the generated Razor output is added to the Blake context. This change includes just the raw parsed HTML output by Markdig. This is important for access in some post-processing scenarios.

Specific use case is to make it available to the RSS plugin, which is an essential use case for a SPA as a static site.


🧷 This PR will be released as a preview by default.

To trigger a stable release:

  • Remove the preview label
  • Add the release label
  • Optionally add Semver-Minor or Semver-Major to control version bump

🏷️ Add labels to control release notes:

  • enhancement, bug, breaking-change, dependencies
  • Or use ignore-for-release to suppress it from notes

Copilot AI review requested due to automatic review settings September 1, 2025 22:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds raw HTML content to the Blake context to enable plugin access to parsed Markdown output. The change expands the GeneratedPage record to include raw HTML alongside the existing Razor-generated content, supporting post-processing scenarios like RSS feed generation.

Key Changes:

  • Extended GeneratedPage record to include raw HTML parameter
  • Updated SiteGenerator to pass raw HTML when creating GeneratedPage instances

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Blake.BuildTools/BlakeContext.cs Added RawHtml parameter to GeneratedPage record
src/Blake.BuildTools/Generator/SiteGenerator.cs Updated GeneratedPage constructor call to include renderedHtml parameter

@github-actions github-actions bot added preview Triggers a release of preview version of Nuget packages enhancement New feature or request Blake.BuildTools labels Sep 1, 2025
@matt-goldman matt-goldman enabled auto-merge (squash) September 1, 2025 22:34
@matt-goldman matt-goldman added release Triggers a release of a production version of Nuget packages Blake.CLI and removed preview Triggers a release of preview version of Nuget packages labels Sep 1, 2025
@matt-goldman matt-goldman merged commit 0df5b25 into main Sep 1, 2025
2 checks passed
@matt-goldman matt-goldman deleted the add-raw-html-to-context branch September 1, 2025 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Blake.BuildTools Blake.CLI enhancement New feature or request release Triggers a release of a production version of Nuget packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants