跳到导航

RSS 订阅集成

新增了RSS订阅支持,让用户及时了解文档更改。团队现在可以为其文档提供自动化通知。

JSON-LD 增强

通过JSON-LD实现了结构化数据支持,改善SEO效果。文档页面现在可以向搜索引擎和社交平台提供更丰富的信息。

{
"@context": "https://schema.org",
"@type": "TechArticle",
"headline": "API Authentication Guide",
"datePublished": "2024-06-15",
"technicalAudience": "Software Developers"
}

图片缩放控制

新增了可配置的图片缩放功能,支持自定义触发器和行为。用户现在可以更好地检查文档中的图表和技术插图。

page.mdx
---
no-image-zoom: true
---
Read the docs

语法扩展支持

新增对BAML和Jinja等编程语言的语法高亮支持。文档现在可以正确显示更广泛的代码示例。

<body>
<h1>Available Products</h1>
{% if products %}
<ul>
{% for product in products %}
<li class="product">
<h2>{{ product.name }}</h2>
<p class="price">${{ product.price }}</p>
<p>{{ product.description }}</p>
{% if product.in_stock %}
<p><strong>Status:</strong> In Stock</p>
{% else %}
<p><strong>Status:</strong> Out of Stock</p>
{% endif %}
</li>
{% endfor %}
</ul>
{% else %}
<p>No products are available at the moment.</p>
{% endif %}
</body>