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

推荐订阅源

H
Hackread – Cybersecurity News, Data Breaches, AI and More
U
Unit 42
Vercel News
Vercel News
Martin Fowler
Martin Fowler
云风的 BLOG
云风的 BLOG
爱范儿
爱范儿
MongoDB | Blog
MongoDB | Blog
J
Java Code Geeks
F
Fortinet All Blogs
MyScale Blog
MyScale Blog
C
Check Point Blog
N
Netflix TechBlog - Medium
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
博客园_首页
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
Last Week in AI
Last Week in AI
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
Jina AI
Jina AI
V
Visual Studio Blog
小众软件
小众软件

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 Auto-generating documentation sites from GitHub repos 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
Launch Week II Day 2: Snippets V2
Joshua Kim · 2024-01-09 · via Mintlify Blog

Day 2 of Launch Week II brings Snippets V2 🚀.

Snippets V2 offers more flexibility and performance while being rebuilt from the ground up to resemble the import experience that developers know and love.

Outside of our existing snippets V1 setup, we now support fully reusable components and variables.

An important principle in software development is DRY (Don't Repeat Yourself). We believe that the same principle should be applied when building docs.

Snippets allow you to avoid repeating the same content in multiple places by storing variables that can be easily called.

Leveraging more of MDX, you can now directly import external components and variables. This setup can be a powerful tool when versioning your documentation, where only certain properties may change.

To try Snippets V2 for your docs, upgrade your CLI with `npm i -g mintlify@latest`. For more technical details for how to implement Snippet V2, check out our documentation.

For Reusable Components

1. Create a new file in the `snippets` directory

2. Inside that file, add whatever content you would like to be reused. Optionally, you can add variables that can be filled in via props

```md snippets/mysnippet.mdx

Hello World! My keyword of the day is

```

3. Import the snippet into the destination file and pass in the props

```md destination-file.mdx

---

title: My title

description: My Description

---

Lorem ipsum dolor sit amet.

<MySnippet word="bananas" />

```

**For Reusable Variables**

1. Create a new file in the `snippets` directory

2. Export a variable from your snippet file:

```md custom-variables.mdx

---

snippet: true

---

```

3. Import the snippet from your destination file and use the variable:

```md destination-file.mdx

---

title: My title

description: My Description

---

Hello, my name is {myName} and I like {myObject.fruit}.

```

That's it for Day 2 🫶. To stay updated for the rest of Launch Week, follow us on Twitter or join our community!