diff --git a/docs/app/components/og-image/OgImageDocs.vue b/docs/app/components/og-image/OgImageDocs.vue new file mode 100644 index 0000000..ce74979 --- /dev/null +++ b/docs/app/components/og-image/OgImageDocs.vue @@ -0,0 +1,76 @@ + + + + + + + + + + + + + comark.dev + + + + + + + + + {{ headline }} + + + + {{ title || 'Comark' }} + + + + {{ truncate(description, 120) }} + + + + + + + + COMPONENTS IN MARKDOWN + + + + + + diff --git a/docs/app/pages/examples/[...slug].vue b/docs/app/pages/examples/[...slug].vue index d0c77e1..756fd2f 100644 --- a/docs/app/pages/examples/[...slug].vue +++ b/docs/app/pages/examples/[...slug].vue @@ -60,6 +60,9 @@ useSeoMeta({ title: `${page.value?.title || exampleName.value} Example`, description: page.value?.description, }) +defineOgImageComponent('Docs', { + headline: 'Examples', +}) diff --git a/docs/app/pages/examples/index.vue b/docs/app/pages/examples/index.vue index e7f61f7..0ef460a 100644 --- a/docs/app/pages/examples/index.vue +++ b/docs/app/pages/examples/index.vue @@ -33,6 +33,9 @@ useSeoMeta({ title, description, }) +defineOgImageComponent('Docs', { + headline: 'Examples', +}) diff --git a/docs/app/pages/index.vue b/docs/app/pages/index.vue index b911150..5787940 100644 --- a/docs/app/pages/index.vue +++ b/docs/app/pages/index.vue @@ -10,7 +10,7 @@ const { data: page } = await useAsyncData('index', () => useSeoMeta({ title: 'Comark - Components in Markdown', description: 'Fast, streaming-ready markdown parser with Vue and React component support. Parse Comark content from strings or streams with TypeScript support.', - ogImage: '/social-card.png', + ogImage: '/social-card.jpg', }) useHead({ diff --git a/docs/app/pages/play.vue b/docs/app/pages/play.vue index 6ebae85..a8353a2 100644 --- a/docs/app/pages/play.vue +++ b/docs/app/pages/play.vue @@ -2,6 +2,9 @@ definePageMeta({ footer: false, }) +defineOgImageComponent('Docs', { + headline: 'Playground', +}) diff --git a/docs/app/pages/stream.vue b/docs/app/pages/stream.vue index ef4a4f0..ebd1c1d 100644 --- a/docs/app/pages/stream.vue +++ b/docs/app/pages/stream.vue @@ -8,6 +8,9 @@ import resolveComponent from '../utils/components-manifest' definePageMeta({ footer: false, }) +defineOgImageComponent('Docs', { + headline: 'Streaming', +}) const { state, startStream, isStreaming, reset: resetStream } = useMDCStream({ onChunk: (_chunk: string) => { diff --git a/docs/app/pages/test.vue b/docs/app/pages/test.vue index d16374f..b032cac 100644 --- a/docs/app/pages/test.vue +++ b/docs/app/pages/test.vue @@ -8,7 +8,7 @@ const markdown = ref(` seo: title: Big Markdown Example — Components, Code, Lists, Tables! description: Showcase of Markdown, MDC components, code blocks, lists, tables, and more using Comark. - ogImage: '/social-card.png' + ogImage: '/social-card.jpg' --- # Comark Playground @@ -17,7 +17,7 @@ Try out a large markdown sample mixing **all the features**! ::u-alert{type="info"} #title -This is an info alert! +This is an info alert! You can put markdown **inside** MDC components. :: @@ -39,12 +39,12 @@ You can put markdown **inside** MDC components. ## Headings -# h1 -## h2 -### h3 -#### h4 -##### h5 -###### h6 +# h1 +## h2 +### h3 +#### h4 +##### h5 +###### h6 --- @@ -104,7 +104,7 @@ x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a} - Bullet item 1 - Bullet item 2 - - Nested _item_ + - Nested _item_ - Bullet: **Markdown works!** 1. Numbered one 2. Numbered two diff --git a/docs/public/social-card.jpg b/docs/public/social-card.jpg new file mode 100644 index 0000000..0ec387a Binary files /dev/null and b/docs/public/social-card.jpg differ diff --git a/docs/public/social-card.png b/docs/public/social-card.png deleted file mode 100644 index 6ce60f8..0000000 Binary files a/docs/public/social-card.png and /dev/null differ