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.0 KB
Raw Blame
---
import { getCollection } from "astro:content";
import { DOC_GROUPS } from "../../lib/docs-navigation";
interface Props {
  current?: string;
  label?: string;
}
const { current, label = "Documentation" } = Astro.props;
const docs = await getCollection("docs");
const available = new Set(docs.map((entry) => entry.id));
---

<nav aria-label={label} class="space-y-6">
  {DOC_GROUPS.map((group) => (
    <div>
      <p class="mb-2 text-base font-semibold">{group.title}</p>
      <ul class="m-0 list-none p-0">
        {group.pages
          .filter((page) => available.has(page.slug))
          .map((page) => (
            <li>
              <a
                href={`/docs/${page.slug}/`}
                aria-current={current === page.slug ? "page" : undefined}
                class:list={[
                  "docs-nav-link block min-h-11 py-2 text-sm",
                  { "font-semibold": current === page.slug },
                ]}
              >
                {page.label}
              </a>
            </li>
          ))}
      </ul>
    </div>
  ))}
</nav>