2025-12-24 18:03:22 -08:00
|
|
|
import { defineConfig, defineDocs, frontmatterSchema } from "fumadocs-mdx/config";
|
|
|
|
|
import { z } from "zod";
|
2025-07-27 10:05:37 -07:00
|
|
|
|
2025-04-22 02:24:13 -07:00
|
|
|
export const docs = defineDocs({
|
2025-07-27 10:05:37 -07:00
|
|
|
dir: "content/docs",
|
|
|
|
|
});
|
2025-12-20 04:24:40 -08:00
|
|
|
|
2025-12-24 18:03:22 -08:00
|
|
|
export const changelog = defineDocs({
|
|
|
|
|
dir: "changelog/content",
|
|
|
|
|
docs: {
|
|
|
|
|
schema: frontmatterSchema.extend({
|
|
|
|
|
date: z.string(),
|
|
|
|
|
tags: z.array(z.string()).optional(),
|
|
|
|
|
version: z.string().optional(),
|
|
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
2026-04-11 23:38:12 -07:00
|
|
|
export const blog = defineDocs({
|
|
|
|
|
dir: "blog/content",
|
|
|
|
|
docs: {
|
|
|
|
|
schema: frontmatterSchema.extend({
|
|
|
|
|
date: z.string(),
|
|
|
|
|
image: z.string().optional(),
|
|
|
|
|
author: z.string().default("SurfSense Team"),
|
|
|
|
|
authorAvatar: z.string().optional(),
|
|
|
|
|
tags: z.array(z.string()).optional(),
|
2026-05-15 11:55:30 -07:00
|
|
|
// Pin this post into the featured section above the archive grid.
|
|
|
|
|
// Multiple posts can be featured at once; ordering within the
|
|
|
|
|
// featured section follows `featured_order` ascending and falls
|
|
|
|
|
// back to `date` descending.
|
|
|
|
|
featured: z.boolean().optional().default(false),
|
|
|
|
|
featured_order: z.number().optional(),
|
2026-04-11 23:38:12 -07:00
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
2025-12-24 18:03:22 -08:00
|
|
|
export default defineConfig({
|
|
|
|
|
lastModifiedTime: "git",
|
|
|
|
|
mdxOptions: {
|
|
|
|
|
providerImportSource: "@/mdx-components",
|
|
|
|
|
},
|
|
|
|
|
});
|