mirror of
https://github.com/LibreChat-AI/librechat.ai.git
synced 2026-03-27 02:38:32 +07:00
- Introduced an optional `ogMetaImage` field in the blog configuration to enhance Open Graph image support. - Updated the metadata generation logic to prioritize `ogMetaImage` over the default `ogImage`. - Added a new Open Graph image for the 2026 roadmap blog post to improve social sharing visibility.
43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
import { defineDocs, defineCollections, defineConfig } from 'fumadocs-mdx/config'
|
|
import { z } from 'zod'
|
|
|
|
export const docs = defineDocs({
|
|
dir: 'content/docs',
|
|
})
|
|
|
|
export const blog = defineCollections({
|
|
type: 'doc',
|
|
dir: 'content/blog',
|
|
schema: z.object({
|
|
title: z.string(),
|
|
description: z.string().optional(),
|
|
date: z.string().or(z.date()),
|
|
author: z.string().optional(),
|
|
ogImage: z.string().optional(),
|
|
ogMetaImage: z.string().optional(),
|
|
ogImagePosition: z.string().optional(),
|
|
category: z.enum(['release', 'feature', 'guide', 'announcement']).optional(),
|
|
featured: z.boolean().optional(),
|
|
tags: z.array(z.string()).optional(),
|
|
}),
|
|
})
|
|
|
|
export const changelog = defineCollections({
|
|
type: 'doc',
|
|
dir: 'content/changelog',
|
|
schema: z.object({
|
|
title: z.string(),
|
|
description: z.string().optional(),
|
|
date: z.string().or(z.date()),
|
|
version: z.string().optional(),
|
|
ogImage: z.string().optional(),
|
|
}),
|
|
})
|
|
|
|
export default defineConfig({
|
|
mdxOptions: {
|
|
remarkCodeTabOptions: false,
|
|
remarkNpmOptions: false,
|
|
},
|
|
})
|