Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用 Google Fonts 或自托管字体文件,为标题、正文和代码块自定义文档站点的排版样式。
docs.json
"fonts": { "family": "Inter" }
将字体文件添加到项目
fonts
your-project/ ├── fonts/ │ ├── InterDisplay-Regular.woff2 │ └── InterDisplay-Bold.woff2 ├── docs.json └── ...
在 docs.json 中配置字体
{ "fonts": { "family": "InterDisplay", "source": "/fonts/InterDisplay-Regular.woff2", "format": "woff2", "weight": 400 } }
{ "fonts": { "heading": { "family": "InterDisplay", "source": "/fonts/InterDisplay-Bold.woff2", "format": "woff2", "weight": 700 }, "body": { "family": "InterDisplay", "source": "/fonts/InterDisplay-Regular.woff2", "format": "woff2", "weight": 400 } } }
{ "fonts": { "family": "Hubot Sans", "source": "https://mintlify-assets.b-cdn.net/fonts/Hubot-Sans.woff2", "format": "woff2", "weight": 400 } }
显示 Fonts
https://mintlify-assets.b-cdn.net/fonts/Hubot-Sans.woff2
/assets/fonts/InterDisplay.woff2
family
source
显示 Heading
显示 Body
此页面对您有帮助吗?