Configuration
Learn how to use Contentlayer with Next Docs
Next Docs has native support for Contentlayer, and provides default configuration with required MDX plugins.
Setup
- Edit your configuration.
Note
Configuration file shouldn't be imported in anywhere.
- Build the Page Tree.
Pages Structure
All files are located in /content
and /content/docs
for documentation pages.
Advanced
Next Docs Zeta also adds extra functionalities to Contentlayer, making it more convenient to use and straightforward.
Adding Icons
Configure icon handler via
resolveIcon
option.
Last updated on