惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Announcements
Recent Announcements
J
Java Code Geeks
U
Unit 42
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
L
LangChain Blog
D
Docker
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
罗磊的独立博客
I
InfoQ
The Cloudflare Blog
小众软件
小众软件
V
Visual Studio Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Engineering at Meta
Engineering at Meta
S
SegmentFault 最新的问题
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
P
Proofpoint News Feed
V
V2EX
月光博客
月光博客
Martin Fowler
Martin Fowler

Mintlify Blog

22 UX improvements to the web editor Introducing the Mintlify Help Center Starter Kit Introducing the collaborative editor built for teams and agents Workflows, rebuilt Is your documentation agent-ready? Mintlify raises $45M Series B led by Andreessen Horowitz and Salesforce Ventures 5 things you didn't know you could do in the Mintlify web editor The improved Mintlify CLI Docs on autopilot: From zero to self-maintaining with Mintlify The state of agent traffic in documentation (March 2026) How we built a virtual filesystem for our Assistant We Replaced Our Internal Wiki With a Slack Bot. You Should Too. 8 ways teams use Mintlify to keep docs updated automatically Documentation is your AI interface What three years of watching AI in production taught us Bridging two JSX runtimes: How we solved Astro's React children problem AI agents are shipping faster than anyone can document Knowledge management systems for technical teams Workflows: Automate documentation maintenance Mintlify acquires Helicone to redefine AI knowledge infrastructure Why more product managers are switching to Mintlify Your docs, your frontend, our content engine Take control of your documentation system Almost half your docs traffic is AI, time to understand the agent experience @mintlify for better docs, faster Mintlify for Enterprise Real llms.txt examples from leading tech companies (and what they got right) Mintlify + Claude Opus 4.6: Powering AI-native knowledge management Declaring Clankruptcy: An experiment in agent orchestration Analytics for AI and agent traffic
Auto-generating documentation sites from GitHub repos
Dens Sumesh · 2026-03-02 · via Mintlify Blog

I originally built Broccoli, a fair queueing library for Rust, to solve a specific infrastructure challenge I encountered at work. After I open-sourced the project and wrote about the architecture, it quickly gained traction, growing to over 600 stars on GitHub.

But like countless other open-source maintainers, I hit a wall: my code was solid and my README was good, but I didn't have the time to write long-form tutorials, quickstarts, and guides. The desire to help my users was there, but the bandwidth to architect a documentation site was not.

At Mintlify, we built a tool for exactly this situation.

By simply replacing github.com with mintlify.com in any public repo URL, you can generate a structured, branded documentation site. Here's what it generated for Broccoli.

Instead of starting from scratch, I can clone this generated output directly into my Mintlify account, tweak it, and publish it. It's not a replacement for human editing, but it gives maintainers a massive head start, turning a multi-week chore into a few minutes of review.

Here's a look under the hood at how we built this.

Our pipeline runs entirely on sandboxed AI agents. We queue jobs through Bull on Redis, provision ephemeral sandboxes with Daytona, and power the generation using Claude Sonnet 4.6.

Locking down the sandbox

First, both the source repository and the destination docs repository are cloned into an isolated environment where the agent gets full filesystem and bash access.

Because we give the agent bash access, the network becomes a critical surface to control. We run a mitmproxy instance as a separate user inside the container, using iptables to transparently redirect all traffic through it. The proxy enforces a strict allowlist — anything not on it gets a 403. Direct IP access is blocked so the agent can't sidestep DNS, and raw TCP egress is blocked entirely.

GitHub writes are locked down even further. The agent is strictly limited to pushing to its designated docs branch, and the only GraphQL mutations it is authorized to execute are createPullRequest and updatePullRequest.

To safeguard credentials, the agent's environment only contains placeholder tokens. When a request leaves the container, the proxy swaps those placeholders with real values at the transport layer.

Understanding the project

Generic AI documentation usually reads poorly because the generator starts writing before it actually understands what it's writing about.

Before generating a single page, the Mintlify agent scrapes the repo's README and GitHub metadata, finds its homepage, and uses heuristics to extract brand assets. Those assets automatically populate the docs.json fields that style every Mintlify site: name, theme, colors.primary, colors.light, colors.dark, favicon, and a core navigation object.

Plan first, write second

We initially tried generating pages on the fly, but the results were messy. We ended up with redundant sections, confusing navigation, and pages that openly contradicted each other.

In hindsight, the fix was obvious: generating a documentation site without a structural plan is like hiring writers for each chapter of a book without telling them what the other chapters cover. Each part might be fine in a vacuum, but they won't add up to a coherent whole.

Now, before writing any pages, the agent browses the source code — reading exports, entry points, and command definitions to infer what the project actually does. The agent then produces a JSON file defining the project summary, brand info, and full navigation architecture.

{
  "projectType": "react-component-library",
  "projectName": "Excalidraw",
  "projectDescription": "Open source virtual hand-drawn style whiteboard",
  "primaryColor": "#6965db",
  "navigation": {
    "tabs": [
      {
        "tab": "Documentation",
        "groups": [
          { "group": "Get Started", "pages": ["introduction", "installation"] },
          { "group": "Core Concepts", "pages": ["elements", "app-state"] }
        ]
      }
    ]
  },
  "keyFeatures": ["infinite-canvas", "real-time-collaboration"],
  "publicApiSurface": ["Excalidraw", "MainMenu", "Sidebar"]
}

Because pre-analysis, generation, and review all run in the same session, generation subagents are instructed to read this JSON map first. Every section is written with total awareness of the broader context.

Generate, validate, ship

With the structure locked in, the orchestrator spins up subagents to write sections in parallel, grouping them one per navigation tab. For a large repository like Excalidraw, this cuts generation time from roughly 70 minutes down to 45.

When the subagents finish, the orchestrator reconciles their outputs and resolves cross-references. If one section references an API documented in another, those links are automatically verified and wired up correctly.

Finally, the agent uses the Mintlify CLI to validate the build and check for broken links, executing a final review sweep across both repositories to catch any remaining gaps or redundancies.

As for me, I've finally got a massive head start on Broccoli's documentation. I can edit this generated output, fill in any highly-specific gaps, and publish it using a workflow I'm already familiar with. I finally have a structure to build on instead of a daunting blank page.

Take any public open-source project you care about. Replace github.com with mintlify.com in the URL, and get a docs site that's ready to ship.

See some of the documentation sites that have been generated and try it yourself.