content.config.ts — astro Source File
Architecture documentation for content.config.ts, a typescript file in the astro codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR d2b438e9_9225_b50c_27d9_abda512b850e["content.config.ts"] d47373dc_6761_5858_3027_a4a6472dd795["loaders"] d2b438e9_9225_b50c_27d9_abda512b850e --> d47373dc_6761_5858_3027_a4a6472dd795 48f80d01_e646_3924_78f6_a9d836644746["astro:content"] d2b438e9_9225_b50c_27d9_abda512b850e --> 48f80d01_e646_3924_78f6_a9d836644746 0f49b6f2_8b44_baf8_7812_a8fa2dd0ca84["zod"] d2b438e9_9225_b50c_27d9_abda512b850e --> 0f49b6f2_8b44_baf8_7812_a8fa2dd0ca84 style d2b438e9_9225_b50c_27d9_abda512b850e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { glob } from 'astro/loaders';
import { defineCollection } from 'astro:content';
import { z } from 'astro/zod';
const blog = defineCollection({
loader: glob({ base: './src/content/blog', pattern: '**/[^_]*.md' }),
schema: z.object({
title: z.string().describe("The blog post's title.").optional(),
description: z.string().optional(),
tags: z.array(z.string()).optional(),
type: z.enum(['blog']).or(z.null()).optional(),
}),
});
const caching = defineCollection({
loader: glob({ base: './src/content/caching', pattern: '**/[^_]*.md' }),
schema: z.object({
title: z.string().describe('I will be changed'),
}),
});
export const collections = { blog, caching };
Dependencies
- astro:content
- loaders
- zod
Source
Frequently Asked Questions
What does content.config.ts do?
content.config.ts is a source file in the astro codebase, written in typescript.
What does content.config.ts depend on?
content.config.ts imports 3 module(s): astro:content, loaders, zod.
Where is content.config.ts in the architecture?
content.config.ts is located at packages/language-tools/language-server/test/fixture/src/content.config.ts (directory: packages/language-tools/language-server/test/fixture/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free