Skip to content

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

Draft
jeffreyaven wants to merge 1 commit into
stackql-providerfrom
feature/structured-data
Draft

jeffreyaven wants to merge 1 commit into
stackql-providerfrom
feature/structured-data

Conversation

@jeffreyaven

Copy link
Copy Markdown

Part C of the provider-microsite structured-data pilot, Netlify path. Draft: do not merge yet. It depends on:

  1. @stackql/docusaurus-plugin-structured-data 1.9.0 published (organization @id honoured by every reference (1.9.0) stackql-labs/docusaurus-plugin-structured-data#5).
  2. withStructuredData on docusaurus-config main (Opt-in structured data for provider microsites: withStructuredData and check-site stackql/docusaurus-config#6). The Netlify build vendors main, so merging this first would fail the build.
  3. One more commit here once 1.9.0 is on npm: yarn add @stackql/docusaurus-plugin-structured-data@^1.9.0 in stackql_cloudflare/website/, which updates package.json and yarn.lock.

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 failed. Why did it fail? →

Name Link
🔨 Latest commit 7053b04
🔍 Latest deploy log https://app.netlify.com/projects/stackql-cloudflare-provider/deploys/6b03d2abe61693946f3e52f6

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