seo-graph icon indicating copy to clipboard operation
seo-graph copied to clipboard

docs(astro-seo-graph): add full <Seo> props table

Open schlessera opened this issue 5 months ago • 0 comments

What

The ## <Seo> component section in packages/astro-seo-graph/README.md documented props only via a partial code example plus scattered prose in the behavior notes. Several public props on SeoProps were effectively undocumented:

  • locale, extraMeta, the explicit canonical override, preserveQueryParams, nofollow
  • the twitter and article sub-object fields

FuzzyRedirect and the integration options already ship props/options tables; <Seo> — the most-used surface — had none.

Change

Add a complete Props table (type, default, description) covering every field on SeoProps (src/components/seo-props.ts), plus a short breakdown of the twitter and article sub-objects. Docs-only — no API change.

Verification

Every prop and type is taken from src/components/seo-props.ts. Defaults verified against src/components/seo-context.ts:

  • ogType → 'website', locale → 'en_US', twitter.card → 'summary_large_image'
  • noindex/nofollow → false
  • canonical precedence: explicit canonical > preserveQueryParams > query-stripped page URL; omitted when noindex
  • author falls back to article.authors[0]

Docs-only; no changeset.

schlessera avatar Jun 15 '26 13:06 schlessera