• Stars
    star
    116
  • Rank 303,894 (Top 6 %)
  • Language Vue
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Vuepress plugin for demo block.

Introduction

点此查看中文简介

Demo Container is a Vuepress-based plug-in, which can help you add Vue examples 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:

  1. Component examples and sample code are essentially the same, but need to be written twice;
  2. Vuepress cannot render the export default {} code block in Markdown;

The Demo Container refers to Element UI's document rendering and implements the same syntax as it can be used to write sample syntax directly in Markdown.

Click here for examples and documentation