Skip to content

Reference brew.sh theme assets#436

Merged
MikeMcQuaid merged 1 commit into
mainfrom
sync-brewsh-theme
Jun 8, 2026
Merged

Reference brew.sh theme assets#436
MikeMcQuaid merged 1 commit into
mainfrom
sync-brewsh-theme

Conversation

@MikeMcQuaid

Copy link
Copy Markdown
Member
  • Keep shared image assets in brew.sh instead of copying them to docs sites.
  • Rewrite synced theme references so consumers use the canonical asset URLs.
  • Infer the shared layouts and includes each consuming site actually uses.
  • Infer obsolete shared asset paths at sync time instead of hardcoding them.

Copilot AI review requested due to automatic review settings June 8, 2026 09:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the shared-config sync workflow/script so downstream Jekyll sites stop copying brew.sh theme asset files (CSS/images) and instead reference the canonical https://brew.sh/assets/... URLs, while syncing only the shared layouts/includes they actually use.

Changes:

  • Remove brew.sh theme asset directories (_sass, assets/css, assets/img) from the workflow sparse-checkout.
  • In the sync script, infer the specific shared _layouts/_includes files required by each consuming site and only sync those.
  • Rewrite synced theme references (and relevant _config.yml image paths) from {{ "/assets/..." | relative_url }} / /assets/img/... to canonical https://brew.sh/assets/... URLs, and remove now-obsolete copied asset paths in consuming repos.

Reviewed changes

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

File Description
.github/workflows/sync-shared-config.yml Stops checking out brew.sh theme asset directories since consumers should use canonical asset URLs.
.github/actions/sync/shared-config.rb Infers required shared layouts/includes to sync, removes obsolete copied assets, and rewrites asset references to https://brew.sh.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MikeMcQuaid MikeMcQuaid force-pushed the sync-brewsh-theme branch 2 times, most recently from fdb82ac to ed96218 Compare June 8, 2026 10:51
- Keep shared image assets in `brew.sh` instead of copying them to docs sites.
- Rewrite synced theme references so consumers use the canonical asset URLs.
- Infer the shared layouts and includes each consuming site actually uses.
- Infer obsolete shared asset paths at sync time instead of hardcoding them.
- Rewrite shared image front matter to avoid broken local metadata URLs.
- Avoid syncing feed references to sites without posts.
@MikeMcQuaid MikeMcQuaid enabled auto-merge June 8, 2026 11:26
@MikeMcQuaid MikeMcQuaid merged commit 04e9d81 into main Jun 8, 2026
26 checks passed
@MikeMcQuaid MikeMcQuaid deleted the sync-brewsh-theme branch June 8, 2026 11:59
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.

3 participants