chore: website tooling (#41)

This commit is contained in:
Darius Cepulis
2025-10-08 15:35:50 -05:00
committed by GitHub
parent d2a0b27272
commit 1bb8166704
53 changed files with 5218 additions and 326 deletions
@@ -0,0 +1,15 @@
---
import type { AnySupportedStyle } from '@/types/docs';
interface Props {
styles?: AnySupportedStyle[];
}
const { styles } = Astro.props;
const { style } = Astro.params;
// Only render if current style matches, or if no styles specified (all styles)
const shouldRender = !styles || styles.includes(style as AnySupportedStyle);
---
{shouldRender && <slot />}