搜尋

MDX Docs – 一個輕量級的 React 文件網站框架

嘿 HN!我是 Ezra,MDX Docs 的創作者。我打造這個工具是因為我想要一個快速、簡單的方法,能夠用 Markdown 和 React 結合 MDX 來記錄元件。目標是讓一切保持極度直觀:頁面就是 MDX 檔案,它們直接對應到路由。你可以撰寫文件,並直接在其中嵌入 React 元件,幾乎不需要額外設定。它還包含一個 CLI 工具:npx create-mdx-docs@latest my-docs。我一直在用它快速建立文件網站,目前為止工作流程非常順暢。很好奇大家現在都是怎麼處理元件和內部工具的文件化。很樂意回答任何問題。

  • 內容創作
  • 團隊工作區
  • 整合功能
Mar 19, 2026造訪官網

AI 摘要

MDX Docs is a lightweight React framework for creating documentation sites that uses MDX files as pages, which map directly to routes. It allows developers to write documentation in Markdown and embed React components with minimal setup.

適合誰

React developers documenting component libraries, Teams building internal tool documentation, Developers seeking a fast way to spin up documentation sites

為何值得關注

It provides a straightforward workflow for creating documentation by combining Markdown content with interactive React components in a single framework.

核心功能

  • Pages are MDX files that map directly to routes
  • Write documentation and embed React components side-by-side
  • Includes a CLI for quick project setup
  • Fast and straightforward setup process

使用場景

  • A frontend team lead needs to create living documentation for their design system. They want developers to see interactive component examples alongside usage guidelines, and they need to update documentation quickly whenever components change.
  • An open-source maintainer is tired of maintaining separate documentation websites for multiple React libraries. They want a unified docs site where contributors can write tutorials with live code demos embedded directly in the documentation pages.
  • A product manager at a SaaS company needs to create internal documentation for their team's dashboard tools. They want non-technical team members to write guides in Markdown while engineers embed configuration widgets to demonstrate settings.