Skip to content

website: structured data (pilot) via withStructuredData - #8

Merged
jeffreyaven merged 2 commits into
stackql-providerfrom
feature/structured-data
Nov 23, 2026
Merged

jeffreyaven merged 2 commits into
stackql-providerfrom
feature/structured-data

Conversation

@jeffreyaven

@jeffreyaven jeffreyaven commented Nov 23, 2026 •

Copy link
Copy Markdown

Part C of the provider-microsite structured-data pilot, Netlify path. Dependencies are in place: plugin 1.9.0 is published (stackql-labs/docusaurus-plugin-structured-data#5), withStructuredData is on docusaurus-config main (stackql/docusaurus-config#6, plus #7 for the speakable selectors), and @stackql/docusaurus-plugin-structured-data@^1.9.0 is added here with yarn add (existing lockfile entries keep their versions).

Deploy preview (https://deploy-preview-8--stackql-cloudflare-provider.netlify.app): Netlify build about 3.5 min. check-site passes on all 1,253 pages (1,236 processed, 16 stubs, the 404). dateModified has 6 distinct values, and the git comparison matches for 3 of 3 sampled pages, so Netlify's clone carries enough history for per-page dates.

Changes

  • website/docusaurus.config.js: withStructuredData(createConfig({ ... }), { providerName, providerTitle }). The site-local editUrl, logo and trailingSlash adjustments stay after the wrap. The existing showLastUpdateTime = true line is now redundant with the helper but left in place.
  • provider-dev/docgen/provider-data/headerContent1.txt: softwareApplication: true. Docs regenerated with node bin/generate-docs.mjs (provider-utils 0.7.12 plus the sanitize, octet-stream and AI post-passes). Only website/docs/index.md changes, by that line.
  • website/static/img/stackql-cloudflare-provider-featured-image.png added. All 1,236 generated pages name it in their image: front matter, and it returned 404 on the live site, so every page's og:image and every TechArticle thumbnail pointed at a missing file. The aws site has no cloudflare image, so this is stackql.io's static/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-provider as it stands: 1,236 docs pages, 1,253 HTML files.

Clean build Wall clock Docusaurus Build postBuild() Main-process heap (total)
Before 61.3 s 57.2 s 45 ms 240 MB
After 136.3 s 132.8 s 71.9 s 536 MB

Everything except postBuild is 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.mjs on build/ with --git website/docs: pass. 1,253 pages: 1,236 processed, 16 redirect stubs, 404. dateModified has 6 distinct values. The git comparison matches for /, /services/radar/dns_summary_ip_version and /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

  • Netlify clone depth: check the deployed result against the dates criterion (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.
  • Run check-site.mjs https://cloudflare-provider.stackql.io/ --sitemap against 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 for aggregateRating or review (not a schema.org error).

🤖 Generated with Claude Code

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>
@netlify

netlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for stackql-cloudflare-provider ready!

Name Link
🔨 Latest commit 97384f5
🔍 Latest deploy log https://app.netlify.com/projects/stackql-cloudflare-provider/deploys/6b03e15ecd41876d14817e5a
😎 Deploy Preview https://deploy-preview-8--stackql-cloudflare-provider.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

withStructuredData registers the plugin by name, so the site installs it.
Lockfile refreshed with yarn; existing entries keep their versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jeffreyaven
jeffreyaven marked this pull request as ready for review November 23, 2026 06:52
@jeffreyaven
jeffreyaven merged commit d06f6d7 into stackql-provider Nov 23, 2026
12 checks passed
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.

1 participant