Skip to main content

DocsPageMeta

Function DocsPageMeta 

Source
pub fn DocsPageMeta(_: DocsPageMetaProps) -> Element
Expand description

Injects SEO meta tags and document title for a single docs page (MDX or API endpoint).

Reads auto_meta and site_url from DocsContext. When auto_meta is off, emits nothing. Otherwise pulls title/description from the registry — frontmatter for MDX pages, the OpenAPI operation’s summary/description for API endpoint pages — and emits <title>, <meta name="description">, Open Graph, Twitter Card, and schema.org TechArticle JSON-LD tags. Canonical, og:url, the JSON-LD @id, and a BreadcrumbList are only emitted when site_url is also set.

§Props

For details, see the props struct definition.