mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 21:26:08 +01:00
34 lines
637 B
Plaintext
34 lines
637 B
Plaintext
---
|
|||
|
|
import type { CollectionEntry } from "astro:content";
|
||
|
|
import { Code } from "./Code";
|
||
|
|
import { Heading } from "./Heading";
|
||
|
|
import { MarkdownCustom } from "./MarkdownCustom";
|
||
|
|
|
||
|
|
interface Props {
|
||
|
|
apis: CollectionEntry<"api">[];
|
||
|
|
}
|
||
|
|
|
||
|
|
const { apis } = Astro.props;
|
||
|
|
---
|
||
|
|
|
||
|
|
<style>
|
||
|
|
.container {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: var(--space-4);
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
|
||
|
|
{
|
||
|
|
apis
|
||
|
|
.sort((a, b) => a.id.localeCompare(b.id))
|
||
|
|
.map((api) => (
|
||
|
|
<div class="container">
|
||
|
|
<Heading size="3">
|
||
|
|
<Code>{api.id}</Code>
|
||
|
|
</Heading>
|
||
|
|
|
||
|
|
<MarkdownCustom body={api.data.docs ?? ""} />
|
||
|
|
</div>
|
||
|
|
))
|
||
|
|
}
|