import Link from "next/link"; import { listDocuments } from "@mcpedia/core"; export const dynamic = "force-dynamic"; const SECTIONS = [ { id: "docs", label: "Documentation" }, { id: "writeups", label: "Writeups" }, { id: "research", label: "Research" }, { id: "notes", label: "Notes" }, ] as const; export default async function DocsIndexPage() { const all = await listDocuments(); const bySection = SECTIONS.map((section) => ({ section, docs: all.filter((d) => d.section === section.id), })); return (