import type { DocsPageData, ImageRenderer } from '@bony_chops/docusaurus-og' import { readFileSync } from 'fs' import { join } from 'path' // const logo = ( // // // ); const DocContent = (props: { data: DocsPageData }) => { const { data } = props; return (
Multi-Scrobbler
Listen everywhere, Scrobble anywhere
{data.metadata.frontMatter?.description ?? data.metadata.title}
); } export const docs: ImageRenderer = (data, context) => [ , { width: 1200, height: 630, fonts: [ { name: 'Inter', data: readFileSync( // must be a STATIC (not variable) font due to a bug in satori // https://github.com/vercel/satori/issues/162 // use static-font.sh to convert a variable font to static join(__dirname, '../../src/socialCard/AdwaitaSans-Regular-StaticSubset.ttf'), ), weight: 400, style: 'normal', }, ], }, ]