Skip to content

fix(docs): emit one BlogPosting per blog post - #78611

Merged
pelikhan merged 6 commits into
mainfrom
copilot/fix-duplicate-blogposting-entries
Nov 17, 2026
Merged

pelikhan merged 6 commits into
mainfrom
copilot/fix-duplicate-blogposting-entries

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Both starlight-blog and the custom head emit BlogPosting entities, creating duplicate structured data. Keep the plugin’s entity and breadcrumbs, enriching only missing metadata.

  • Structured data: Remove the custom BlogPosting; supply the site publisher and dateModified from lastUpdated, falling back to datePublished.
  • Regression coverage: Collect entities across JSON-LD scripts; require exactly one BlogPosting and verify metadata and breadcrumb contents.
  • Documentation: Record plugin ownership and enrichment behavior in the docs contributor README.

@pelikhan pelikhan changed the title [WIP] Fix duplicate BlogPosting JSON-LD entries in blog posts fix(docs): emit one BlogPosting per blog post Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Visual check overview

Captured /gh-aw/ at three viewports. No baseline is provisioned, so comparison is unavailable for every viewport. It is not reported as unchanged.

Capture and comparison

Page Viewport Capture Comparison
/gh-aw/ Mobile 375x812 captured unavailable
/gh-aw/ Tablet 768x1024 captured unavailable
/gh-aw/ Desktop 1440x900 captured unavailable

Accessibility observations

The accessibility snapshot covered only the desktop view of /gh-aw/. This is a limited check, not an exhaustive compliance audit.

  • Landmarks are present: banner, main navigation, main, and contentinfo. A skip-to-content link is present.
  • There is one H1. Headings step H1 to H2 to H3, with no level 4-6 headings.
  • Images in the snapshot have accessible names.
  • Four links have no name on the link element itself, but child text names them, so they are not flagged.
  • Not checked: colour contrast, keyboard focus order, and mobile or tablet snapshots.
Console and cleanup
  • Page load reported 0 errors and 4 warnings. A later warning query returned 0 messages. The load warnings were not investigated.
  • The preview server was stopped and confirmed absent from the shell session list.
  • The browser was closed.
  • The repo-side check for leftover .playwright-cli artifacts was denied. See the incomplete report.

Next actions

  • Provide an authorized baseline to enable visual comparison.
  • Review the console warnings reported at page load.

Generated by 👁️ Visual Regression Checker for #78611 · copilot · routed: haiku55 xhigh · ~3 AIC · ⌖ ~1 AIC · ⊞ 3.3K · ◷

@pelikhan
pelikhan marked this pull request as ready for review November 17, 2026 05:08
Copilot AI adaptive review requested due to automatic review settings November 17, 2026 05:08
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

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.

🟢 Approval recommended

There are no active review issues for the blog structured-data deduplication and metadata-enrichment changes.

No open issues 🎉

What changed in this PR

Fixes duplicate blog structured data by keeping starlight-blog as the sole source of BlogPosting entities and enriching missing metadata in the docs site’s custom head.

Changes:

  • Removes the custom BlogPosting, adding missing publisher and modification-date metadata to the plugin’s entity while preserving breadcrumbs.
  • Expands regression checks to collect entities across JSON-LD scripts and require exactly one blog posting.
  • Documents structured-data ownership and enrichment behavior.
File Description
docs/​tests/​schema-jsonld.spec.ts Checks entity uniqueness, blog metadata, breadcrumbs, and existing page schemas.
docs/​tests/​helpers/​json-ld.ts Adds helpers to collect and filter entities across JSON-LD scripts.
docs/​src/​components/​CustomHead.astro Replaces duplicate blog schema generation with plugin metadata enrichment.
docs/​README.md Documents plugin ownership and metadata fallback behavior.

Review effort: Balanced (adaptive)

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Fix failing check conclusion (FAILURE): Check run.

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "0d7a006361e51cc598ab2f29ea2ef7fe47bdd341",
  "kind": "requested",
  "schema_version": "1",
  "state": "3d05e148f417bc70bd7f121545972e0bb111937af65f614938376c50af32f0b5",
  "work": [
    "51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7K · ◷
Comment /souschef to run again

…-blogposting-entries

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Copilot AI commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:...

Merged latest main in 75cb0eb. The failed conclusion was caused by the Visual Regression Checker reporting incomplete after its repo-side cleanup command was denied; its tool-failure count was 6 (threshold 5). This is unrelated to the blog changes, so I did not weaken tool restrictions or trigger another run. make merge-main and the final repository gate passed; the local Docs Playwright run was blocked by npm-feed DNS resolution.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

@copilot resolve the merge conflicts on this branch.

…-blogposting-entries

# Conflicts:
#	docs/README.md

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Copilot AI commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts on this branch.

Resolved in 8999552 by merging latest main and retaining both README sections. The blog fix is preserved. Build, all 368 workflow compilations, and the final repository gate passed. Targeted docs tests could not start because Playwright is not installed.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

@copilot resolve the merge conflicts on this branch.

…-blogposting-entries

# Conflicts:
#	docs/src/components/CustomHead.astro

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@pelikhan

Copy link
Copy Markdown
Collaborator Author

@copilot resolve the merge conflicts on this branch.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Copilot AI commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts on this branch.

Resolved in d63fdd02, preserving both JSON-LD deduplication and escaping. Build, workflow compilation, and the final repository gate passed; docs tests were blocked by npm-feed DNS resolution.

@pelikhan
pelikhan merged commit 81c6dbe into main Nov 17, 2026
33 checks passed
@pelikhan
pelikhan deleted the copilot/fix-duplicate-blogposting-entries branch November 17, 2026 08:08

Copilot AI commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts on this branch.

This PR was merged into main as 81c6dbe0; there are no remaining PR merge conflicts to resolve.

@pelikhan
pelikhan restored the copilot/fix-duplicate-blogposting-entries branch November 17, 2026 08:13
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.1

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.

docs: blog posts emit two BlogPosting JSON-LD entries

4 participants