@contentlayer/source-files
This module provides the methods for working with local files as your content source.
Typical usage involves three primary functions:
makeSource
controls the entire schema definition for your application.defineDocumentType
defines the schema top-level document types (also known as models or content types).defineNestedType
defines the schema for data shapes that can be reused across multiple document type definitions.
Reference Guides
These guides will dig into the details of each function to enable you to better understand how to work with local content.
Other File Source Guides
There are a few other guides to help you learn how to work with local content.
All File Source GuidesWas this article helpful to you?
Provide feedback
Last edited on April 01, 2024.
Edit this page