Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/tiny-docs. quick setup, simple, minimalistic docs for your github project flo-bit.dev/tiny-docs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132---import { type CollectionEntry, render } from "astro:content";import { getSortedDocs, getNextAndPreviousDocs, getSlug,} from "../content-utils";import MainLayout from "$layouts/MainLayout.astro";
export async function getStaticPaths() { const posts = await getSortedDocs(); return posts.map((post: any) => ({ params: { slug: getSlug(post) }, props: post, }));}type Props = CollectionEntry<"docs">;
const post = Astro.props;const { Content, headings } = await render(post);
const { next, previous } = await getNextAndPreviousDocs(post);---
<MainLayout post={post} next={next} previous={previous} Content={Content} headings={headings}/>