--- import { getCollection } from 'astro:content'; import Docs from '../../layouts/Docs.astro'; export async function getStaticPaths() { const docs = await getCollection('docs'); return docs.map((entry) => ({ params: { slug: entry.slug }, props: { entry }, })); } const { entry } = Astro.props; const { Content } = await entry.render(); ---