content.config.ts — astro Source File
Architecture documentation for content.config.ts, a typescript file in the astro codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 4a0c2eb4_49bc_cddf_6299_9c405c48de31["content.config.ts"] 48f80d01_e646_3924_78f6_a9d836644746["astro:content"] 4a0c2eb4_49bc_cddf_6299_9c405c48de31 --> 48f80d01_e646_3924_78f6_a9d836644746 style 4a0c2eb4_49bc_cddf_6299_9c405c48de31 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { defineCollection } from "astro:content";
const rodents = defineCollection({
loader: () => ({
capybara: {
name: 'Capybara',
scientificName: 'Hydrochoerus hydrochaeris',
lifespan: 10,
weight: 50000,
diet: ['grass', 'aquatic plants', 'bark', 'fruits'],
nocturnal: false,
},
hamster: {
name: 'Golden Hamster',
scientificName: 'Mesocricetus auratus',
lifespan: 2,
weight: 120,
diet: ['seeds', 'nuts', 'insects'],
nocturnal: true,
},
rat: {
name: 'Brown Rat',
scientificName: 'Rattus norvegicus',
lifespan: 2,
weight: 350,
diet: ['grains', 'fruits', 'vegetables', 'meat'],
nocturnal: true,
},
mouse: {
name: 'House Mouse',
scientificName: 'Mus musculus',
lifespan: 1,
weight: 20,
diet: ['seeds', 'grains', 'fruits'],
nocturnal: true,
},
guineaPig: {
name: 'Guinea Pig',
scientificName: 'Cavia porcellus',
lifespan: 5,
weight: 1000,
diet: ['hay', 'vegetables', 'fruits'],
nocturnal: false,
},
})
});
export const collections = {
rodents
};
Domain
Subdomains
Functions
Dependencies
- astro:content
Source
Frequently Asked Questions
What does content.config.ts do?
content.config.ts is a source file in the astro codebase, written in typescript. It belongs to the IntegrationAdapters domain, SsrAdapters subdomain.
What functions are defined in content.config.ts?
content.config.ts defines 1 function(s): rodents.loader.
What does content.config.ts depend on?
content.config.ts imports 1 module(s): astro:content.
Where is content.config.ts in the architecture?
content.config.ts is located at packages/astro/test/fixtures/astro-mode/src/content.config.ts (domain: IntegrationAdapters, subdomain: SsrAdapters, directory: packages/astro/test/fixtures/astro-mode/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free