mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-11-30 00:07:37 +00:00
Roadmap: replace placeholder items with current shipped/building/planned features. Use real dates for sorting instead of manual sortOrder. Fix UTC timezone rendering for date display. Terminology: replace all standalone "DOT" references with "Graphviz" or "Graphviz DOT" across docs, marketing, README, AGENTS.md, and OpenAPI spec. Changelogs left unchanged as historical records. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { defineCollection, z } from "astro:content";
|
|
import { glob } from "astro/loaders";
|
|
|
|
const roadmap = defineCollection({
|
|
loader: glob({ pattern: "**/*.yaml", base: "./src/content/roadmap" }),
|
|
schema: z.object({
|
|
title: z.string(),
|
|
description: z.string(),
|
|
status: z.enum(["shipped", "building", "next"]),
|
|
date: z.coerce.date(),
|
|
}),
|
|
});
|
|
|
|
const blog = defineCollection({
|
|
loader: glob({ pattern: "**/*.md", base: "./src/content/blog" }),
|
|
schema: z.object({
|
|
title: z.string(),
|
|
description: z.string(),
|
|
date: z.coerce.date(),
|
|
author: z.string(),
|
|
}),
|
|
});
|
|
|
|
const showcase = defineCollection({
|
|
loader: glob({ pattern: "**/*.md", base: "./src/content/showcase" }),
|
|
schema: z.object({
|
|
title: z.string(),
|
|
description: z.string(),
|
|
thumbnail: z.string(),
|
|
tags: z.array(z.string()),
|
|
languages: z.array(z.enum(["python", "rust", "typescript", "ruby"])),
|
|
github: z.string(),
|
|
models: z.array(z.string()),
|
|
skills: z.array(z.string()),
|
|
prompt: z.string(),
|
|
workflow: z.string(),
|
|
sortOrder: z.number(),
|
|
}),
|
|
});
|
|
|
|
export const collections = { roadmap, blog, showcase };
|