Skip to content
Doculite

Command Palette

Search for a command to run...

GitHub

Project Structure

Overview of the Doculite project file structure.

Directory Layout

  • content
    • docs
      • _meta.json
      • index.mdx
      • getting-started
        • _meta.json
        • installation.mdx
  • app
    • layout.tsx
    • page.tsx
    • docs
      • layout.tsx
      • [[...slug]]
        • page.tsx
  • components
    • docs
    • mdx
    • ui
  • lib
  • velite.config.ts
  • next.config.ts
  • package.json

Key Directories

DirectoryPurpose
content/docs/MDX documentation files
app/docs/Next.js route handlers for docs
components/docs/Documentation layout components
components/mdx/Custom MDX components
components/ui/shadcn/ui primitives
lib/Utility functions and configuration

Content Directory

All documentation content lives in content/docs/. Each .mdx file becomes a page. Directories create navigation groups controlled by _meta.json files.

Velite processes the content/ directory at build time and generates typed data in .velite/.