Docs
Quick StartQuick Start
Getting Started with Next Docs
Introduction
Next Docs is a library that makes developing a Next.js docs easier, built for App Router. It offers server-side functions and headless components.
- Search (built-in: Flexsearch, Algolia Search)
- Breadcrumb, Sidebar, TOC Components
- Additional utilities
It's recommended to use Next Docs with Tailwind CSS + Radix UI, and Contentlayer (or any CMS).
Tip: For normal usages, you can use Next Docs UI instead.
Demo
Open in CodeSandbox.
Guide
-
Choose a Source
Next Docs has native support for ContentLayer, but any kind of formats and sources are allowed.
You can refer to this guide to learn how to use Contentlayer with Next Docs.
-
Build Page Tree
A page tree refers to structured data of all pages.
You can generate the tree using our Contentlayer adapter, or end up with writing your own.
-
Create MDX file
Create
/content/docs/index.mdx
: -
Styling & Fun
Start styling your docs with headless components provided by Next Docs.
Enjoy!
Next Docs offers simple document searching as well as components for building a good docs. It is made for flexibility and speed.
Explore the full power of Next Docs:
Last updated on