docs.json 中 colors.dark 属性定义的颜色。
要添加横幅,请在 docs.json 中使用 banner 属性:
属性
横幅文案。支持纯文本和 Markdown 格式。
是否允许用户关闭横幅。为
true 时,用户可将其关闭,且在当前会话内不会再次出现。默认值为 false。添加横幅以展示全站重要公告与通知
docs.json 中 colors.dark 属性定义的颜色。
要添加横幅,请在 docs.json 中使用 banner 属性:
"banner": {
"content": "🚀 Version 2.0 is now live! See our [changelog](/changelog) for details.",
"dismissible": true
}
true 时,用户可将其关闭,且在当前会话内不会再次出现。默认值为 false。此页面对您有帮助吗?