+
&]:my-5 leading-relaxed', className)} {...restProps}> {@render children?.()}
diff --git a/docs/src/lib/markdown/utils.ts b/docs/src/lib/markdown/utils.ts index 2e012cf84..cc58aecfb 100644 --- a/docs/src/lib/markdown/utils.ts +++ b/docs/src/lib/markdown/utils.ts @@ -6,7 +6,9 @@ import { type Component as ComponentMetadata, type Example as ExampleMetadata, allUtils, - type Util as UtilMetadata + type Util as UtilMetadata, + allGuides, + type Guide as GuideMetadata } from 'content-collections'; import type { Examples } from '$lib/types.js'; @@ -20,11 +22,11 @@ import { loadExample, loadExampleByPath } from '$lib/examples.js'; */ export async function getMarkdownComponent( slug: string = 'index', - type: 'components' | 'utils' = 'components' + type: 'components' | 'utils' | 'guides' = 'components' ) { const modules = import.meta.glob<{ default: Component; - metadata: ComponentMetadata | ExampleMetadata | UtilMetadata; + metadata: ComponentMetadata | ExampleMetadata | UtilMetadata | GuideMetadata; }>('/src/content/**/*.md'); let doc: Awaited