Last updated July 11, 2026

Welcome to folio.md

By Atour Mousavi Gourabi 2 minutes read

folio.md is a self-hosted docs site you own completely. Add it as a dependency to your project, point it at your docs folder, and ship. No managed platform, no per-seat pricing, no lock-in.

What’s included

  • Accessible by default: semantic HTML, ARIA landmarks on every region, full keyboard navigation, and screen-reader labels on all interactive elements and external links, with no configuration required
  • Google Analytics: add your measurement ID to folio.config.ts and folio.md wires it up automatically
  • GDPR-ready: a cookie consent banner appears automatically when you configure analytics; events only fire after the visitor accepts. No third-party CMP needed.
  • Sidebar navigation: auto-generated from your file tree; nested folders become collapsible sections with optional _section.mdx metadata
  • Full-text search: client-side via Fuse.js (opens in new tab), zero-latency, no external service
  • Mermaid diagrams: rendered to SVG at build time in light and dark variants, no JS payload at runtime
  • Syntax highlighting: via Shiki, with copy-to-clipboard on every block
  • Light & dark themes: independently turn on or off each; gradient backgrounds configurable per theme
  • SEO-ready: Open Graph, Twitter card, canonical URLs, robots meta, JSON-LD structured data
  • MDX support: every page is a .mdx file; pages can import and render React components
  • Link validation: folio.md checks internal links at build time and fails the build on broken links
  • Page aliases: redirect one URL to another with a single alias: page setting
  • View transitions: client-side navigation with animated page transitions, no full reloads

Get started

PageDescription
Getting StartedInstall folio.md, scaffold your configuration, and write your first page
ConfigurationAll folio.config.ts options
Writing ContentMDX, Mermaid, code blocks, page settings
Page FeaturesToC, reading time, heading anchors, last-updated dates, link validation, view transitions
SEO & MetadataPage metadata, OG images, sitemap, structured data
DeploymentShip to GitHub Pages or GitLab Pages
TroubleshootingSolutions to common build and configuration problems
ContributingDev setup, code style, and PR process
LicenseMIT: free to use, modify, and distribute