Skip to content
Doculite

Command Palette

Search for a command to run...

GitHub

Configuration

Configure your Doculite documentation site.

Site Configuration

Edit lib/site-config.ts to customize your documentation site:

import type { DoculiteConfig } from "@/lib/config-types";
 
export const siteConfig: DoculiteConfig = {
  name: "My Docs",
  description: "Documentation for my project.",
  url: "https://docs.example.com",
  navLinks: [
    { title: "Docs", href: "/docs" },
    { title: "GitHub", href: "https://github.com/...", external: true },
  ],
  socialLinks: [
    { platform: "github", url: "https://github.com/..." },
  ],
  footer: {
    text: "Built with Doculite.",
  },
  github: {
    repo: "owner/repo",
    editUrl: "https://github.com/owner/repo/edit/main/content",
  },
};

Configuration Fields

FieldTypeDescription
namestringSite name shown in header and metadata
descriptionstringSite description for SEO
urlstring?Production URL
navLinksNavLink[]Header navigation links
socialLinksSocialLink[]?Social media links (GitHub, Twitter, Discord)
footer.textstring?Footer text
github.repostring?GitHub repository (owner/repo)
github.editUrlstring?Base URL for "Edit this page" links

Restart Required

Configuration changes require restarting the development server since the config is imported at build time.

Content Configuration

Velite Schema

Content schema is defined in velite.config.ts. Each MDX file supports these frontmatter fields:

FieldTypeDefaultDescription
titlestringrequiredPage title
descriptionstring?Page description for SEO and search
ordernumber999Sort order in sidebar
publishedbooleantrueWhether page appears in production