Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 810 Bytes

README-en.md

File metadata and controls

34 lines (24 loc) · 810 Bytes

vuepress-plugin-alert

Notice announcement added to website

No longer display when the announcement is closed.

preview

预览

install

npm i vuepress-plugin-alert -S

config

Note where the configuration is written, not passed into the plugin.

import { alertPlugin } from "vuepress-plugin-alert";

export default defineUserConfig({
  alert: [
    {
      id: "2019-7-29",
      title: "文档公告",
      content: `我们经常发布文档更新,部分页面的翻译可能仍在进行中。有关最新信息,请访问<a href="/en/">英文文档</a>。如果某个页面上的翻译有问题,请提issues<a href="https://github.com/teadocs/matplotlib-cn/issues" target="_blank">告诉我们</a>。`,
    },
  ],
  plugins: [alertPlugin()],
});