Repository navigation
organization @id honoured by every reference (1.9.0) - #5
Open
jeffreyaven wants to merge 1 commit into
Open
jeffreyaven wants to merge 1 commit into
jeffreyaven wants to merge 1 commit into
Conversation
themeConfig.structuredData.organization['@id'] could already override the Organization node's own @id (the block is spread last), but WebSite.publisher, the Article/TechArticle publisher and the native-article supplement stayed hard-coded to <siteConfig.url>/#organization. The id is now computed once after validation and used everywhere the organization is named. A set organization['@id'] must be an absolute http(s) IRI; anything else fails at config time. Without it the output is byte-identical to 1.8.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 23, 2026
website: structured data (pilot) via withStructuredData
stackql-registry/stackql-provider-homebrew#5
Draft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Part A of the provider-microsite structured-data pilot. Provider microsites (
<slug>-provider.stackql.io) belong to stackql.io and should name its Organization (https://stackql.io/#organization) rather than describe a second one. The node's@idcould already be overridden throughthemeConfig.structuredData.organization(it is spread last), but every reference was hard-coded to${siteConfig.url}/#organization, so an override leftpublisherpointing at a node that is not in the graph.Work order coverage
organizationIdonce, after validationresolveOrganizationIdinsrc/lib.js; computed insrc/index.jsright after the other config-time validators.WebSite.publisher(301),buildNativeArticleSupplement(812),Article/TechArticlepublisher(855)#organizationliteral remains insrc/.validateOrganizationId: parsed withnew URL, protocolhttp:orhttps:. Relative, fragment-only, protocol-relative, other schemes, empty string,nulland non-strings fail with a message namingthemeConfig.structuredData.organization['@id']. Onlyundefinedcounts as unset.test/fixtures/graphs-1.7.1.json@idto the default produces byte-identical HTML to leaving it unset.publisherand the supplement reference it, no${siteConfig.url}/#organizationanywhereignoreandreusemodes. The test walks everypublisherin each graph (6 per mode:WebSiteon four pages plus the two articles) and asserts the default id is absent from the whole page HTML, not just the plugin's graph.test/organization.test.js,test/lib.test.js).organizationand the Validation section.package.jsonand the lockfile are at 1.9.0.Validation
npm test: 62 pass, 0 fail (54 before, 8 added).git diff --checkclean.Not in this PR, per the work order: the jsdom replacement and any change to the
SoftwareSourceCode@id.🤖 Generated with Claude Code