feat(site): add util reference pipeline (#537)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Darius Cepulis
2026-02-24 15:34:34 -06:00
committed by GitHub
co-authored by Claude Opus 4.6
parent c11395ece1
commit 78112fbefd
143 changed files with 7031 additions and 481 deletions
+14 -5
View File
@@ -1,7 +1,8 @@
import { defineCollection, reference, z } from 'astro:content';
import { file, glob } from 'astro/loaders';
import { ComponentApiReferenceSchema } from './types/api-reference';
import { ComponentReferenceSchema } from './types/component-reference';
import { SUPPORTED_FRAMEWORKS } from './types/docs';
import { UtilReferenceSchema } from './types/util-reference';
import { defaultGitService } from './utils/gitService';
import { globWithParser } from './utils/globWithParser';
@@ -107,12 +108,20 @@ const authors = defineCollection({
}),
});
const apiReference = defineCollection({
const componentReference = defineCollection({
loader: glob({
pattern: '*.json',
base: './src/content/generated-api-reference',
base: './src/content/generated-component-reference',
}),
schema: ComponentApiReferenceSchema,
schema: ComponentReferenceSchema,
});
export const collections = { blog, docs, authors, apiReference };
const utilReference = defineCollection({
loader: glob({
pattern: '*.json',
base: './src/content/generated-util-reference',
}),
schema: UtilReferenceSchema,
});
export const collections = { blog, docs, authors, componentReference, utilReference };