Skip to content

armgit / kiln

Public Imported from GitHub
0

Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.

1.2 KB
Raw Blame
---
import DocsMobileNav from "../../components/docs/DocsMobileNav.astro";
import PageHeader from "../../components/PageHeader.astro";
import { getCollection, render } from "astro:content";
import type { CollectionEntry } from "astro:content";
import DocsLayout from "../../layouts/DocsLayout.astro";
import { VERSION, RELEASE_URL } from "../../lib/config";
export async function getStaticPaths() {
  const docs = await getCollection("docs");
  return docs.map((entry) => ({
    params: { slug: entry.id },
    props: { entry },
  }));
}
interface Props {
  entry: CollectionEntry<"docs">;
}
const { entry } = Astro.props;
const { Content, headings } = await render(entry);
---

<DocsLayout
  title={entry.data.title}
  description={entry.data.description}
  current={entry.id}
  headings={headings}
  source={entry.data.source}
  verbatim
>
  <PageHeader id={headings.find((heading) => heading.depth === 1)?.slug}>
    {entry.data.title}
    <DocsMobileNav slot="navigation" current={entry.id} headings={headings} />
  </PageHeader>
  <p class="text-caption text-dim">
    Latest published package: <a href={RELEASE_URL}>Kiln {VERSION}</a>.
    Earlier versions below identify feature requirements or historical results.
  </p>
  <Content />
</DocsLayout>