Demo Containeris aVuepress-basedplug-in, which can help you addVueexamples when writing documents. Its original intention is to reduce the difficulty of adding some related examples when writing component documents. Using Vuepress to write component examples has the following embarrassment: ...
Write an example to automatically generate component examples and code examples by the custom::: demosyntax; Support theimportsyntax in code example; Install Useyarn: yarn add vuepress-plugin-demo-container-v2 -D Ornpm: npm i vuepress-plugin-demo-container-v2 -D ...
Demo Container 是一个基于 Vuepress 的插件,它可以帮助你在编写文档的时候增加 Vue 示例,它的诞生初衷是为了降低编写组件文档时增加一些相关示例的难度。 使用Vuepress 编写组件示例有以下尴尬之处: 组件示例和示例代码本质上一样,却需要写两遍; Vuepress 无法渲染 Markdown 中的 export default {} 代码块; Demo ...
Vuepress plugin for demo block. Contribute to waycowei/vuepress-plugin-demo-container-v2 development by creating an account on GitHub.
npm i vuepress-plugin-demo-container-v2 -D Usage Open the.vuepress/config.jsfile, and then reference the plugin in the appropriate location: module.exports={plugins:['demo-container-v2']} Write the following code in the Markdown file: ...
Demo Containeris aVuepress-basedplug-in, which can help you addVueexamples when writing documents. Its original intention is to reduce the difficulty of adding some related examples when writing component documents. Using Vuepress to write component examples has the following embarrassment: ...