Skip to content

Refactor asset publishing and add header/footer web component export#20

Merged
ethmarks merged 7 commits intomainfrom
component-export
Sep 24, 2025
Merged

Refactor asset publishing and add header/footer web component export#20
ethmarks merged 7 commits intomainfrom
component-export

Conversation

@ethmarks
Copy link
Copy Markdown
Owner

No description provided.

@ethmarks ethmarks requested a review from Copilot September 24, 2025 02:28
Copy link
Copy Markdown
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 refactors the asset publishing mechanism by replacing a single publish-all-media.html partial with a modular system and adds web component exports for header/footer elements.

Key changes:

  • Replaces monolithic media publishing with modular partials for different asset types
  • Adds automatic generation of JavaScript web components for header and footer elements
  • Updates CSS filename from _global.scss to global.scss

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
layouts/partials/publish.html New orchestrator partial that calls all publishing modules
layouts/partials/publish-scss.html Handles SCSS compilation and publishing
layouts/partials/publish-media.html Simplified media asset publishing
layouts/partials/publish-all-media.html Removed old monolithic media publishing partial
layouts/partials/ethmarks-components-js.html New partial generating web components from header/footer
layouts/_default/baseof.html Updated to use new publishing system and CSS filename

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread layouts/partials/ethmarks-components-js.html
Comment thread layouts/partials/ethmarks-components-js.html
Comment thread layouts/partials/ethmarks-components-js.html
{{ range resources.Match "css/*.scss" }}
{{ $css := . | toCSS }}
{{ $cssMin := $css | minify }}
{{ $css.Publish }}
Copy link

Copilot AI Sep 24, 2025

Choose a reason for hiding this comment

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

[nitpick] Both the original and minified CSS files are being published, which could lead to confusion about which version to use. Consider publishing only the minified version for production or add comments explaining why both are needed.

Suggested change
{{ $css.Publish }}
{{/* $css.Publish */}}

Copilot uses AI. Check for mistakes.
@ethmarks ethmarks merged commit 899af87 into main Sep 24, 2025
@ethmarks ethmarks deleted the component-export branch September 24, 2025 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants