Skip to content

GenerateOgImagesParams

Options for generateOgImages.

Import:

import type { GenerateOgImagesParams } from '@mnaoumov/typescript-dev-toolkit/docs-site/og-images';

Signature:

export interface GenerateOgImagesParams

Properties

PropertyTypeDescription
brandTextstringThe text every card's footer carries, normally the package's name.
contentDocsDirectorystringThe documentation content root, normally <docs>/src/content/docs. Every .md / .mdx page under it with a title gets a card.
faviconPathstringThe SVG logo drawn on every card. A missing file renders the cards without one.
fontsDirectorystringThe folder holding the fonts the cards are rendered with.
outputDirectorystringThe folder the cards are written to, normally <docs>/public/og, served at <base>/og/<slug>.png.

Links to this page: