Repository navigation
website: structured data (pilot) via withStructuredData - #8
Draft
jeffreyaven wants to merge 1 commit into
Draft
jeffreyaven wants to merge 1 commit into
jeffreyaven wants to merge 1 commit into
Conversation
Wraps createConfig in the shared config's withStructuredData, which registers @stackql/docusaurus-plugin-structured-data with the settings every provider microsite shares: stackql.io's Organization by @id, SoftwareSourceCode for this repo, TechArticle on resource and service pages, the native BreadcrumbList reused, the redirect stubs excluded, and the hand-written SoftwareApplication head tag replaced by the plugin's node on the provider-intro page. headerContent1.txt gains softwareApplication: true and the docs are regenerated (@stackql/provider-utils 0.7.12 and the post-passes); only docs/index.md changes. static/img/stackql-cloudflare-provider-featured-image.png was missing: every generated page names it in its image: front matter (og:image, TechArticle thumbnail) and it returned 404. Copied from stackql.io (static/img/blog/, 1200x627). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
❌ Deploy Preview for stackql-cloudflare-provider failed. Why did it fail? →
|
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.
Part C of the provider-microsite structured-data pilot, Netlify path. Draft: do not merge yet. It depends on:
@stackql/docusaurus-plugin-structured-data1.9.0 published (organization @id honoured by every reference (1.9.0) stackql-labs/docusaurus-plugin-structured-data#5).withStructuredDataon docusaurus-configmain(Opt-in structured data for provider microsites: withStructuredData and check-site stackql/docusaurus-config#6). The Netlify build vendorsmain, so merging this first would fail the build.yarn add @stackql/docusaurus-plugin-structured-data@^1.9.0instackql_cloudflare/website/, which updatespackage.jsonandyarn.lock.Changes
website/docusaurus.config.js:withStructuredData(createConfig({ ... }), { providerName, providerTitle }). The site-localeditUrl, logo andtrailingSlashadjustments stay after the wrap. The existingshowLastUpdateTime = trueline is now redundant with the helper but left in place.provider-dev/docgen/provider-data/headerContent1.txt:softwareApplication: true. Docs regenerated withnode bin/generate-docs.mjs(provider-utils 0.7.12 plus the sanitize, octet-stream and AI post-passes). Onlywebsite/docs/index.mdchanges, by that line.website/static/img/stackql-cloudflare-provider-featured-image.pngadded. All 1,236 generated pages name it in theirimage:front matter, and it returned 404 on the live site, so every page'sog:imageand every TechArticle thumbnail pointed at a missing file. The aws site has no cloudflare image, so this is stackql.io'sstatic/img/blog/stackql-cloudflare-provider-featured-image.png(1200x627, the cloudflare provider card).stackql-featured-image.png(1200x627) was already present.Results (local, Windows, plugin 1.9.0 and the config branch vendored)
Baseline from
stackql-provideras it stands: 1,236 docs pages, 1,253 HTML files.BuildpostBuild()Everything except
postBuildis the same, about 61 s against 57 s. The plugin's jsdom pass costs about 58 ms per page here, which more than doubles the build. The work order scopes the jsdom replacement to aws and awscc, but at this size it matters for any large provider. Netlify's container will differ, so the Netlify build log after deploy gives the figure that matters.check-site.mjsonbuild/with--git website/docs: pass. 1,253 pages: 1,236 processed, 16 redirect stubs, 404.dateModifiedhas 6 distinct values. The git comparison matches for/,/services/radar/dns_summary_ip_versionand/services/zones/zones_settings. One warning: all 1,235 TechArticle pages share one description. None of the 1,127 resources in the cloudflare spec carries a description, so stackql-registry/stackql-provider-utils#6 changes only the 108 service index pages here.Still to do after merge
check-site.mjs ... --git). The local build had real git dates; a shallow clone on Netlify would give every page one date, and the check fails on that.check-site.mjs https://cloudflare-provider.stackql.io/ --sitemapagainst the live site, and put/, one service index and one resource page through the Rich Results Test and validator.schema.org. On/, expect the Software App rich result to ask foraggregateRatingorreview(not a schema.org error).🤖 Generated with Claude Code