All Projects → vue-styleguidist → vuepress-plugin-live

vue-styleguidist / vuepress-plugin-live

Licence: MIT License
Make your markdown code examples come alive

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects

Projects that are alternatives of or similar to vuepress-plugin-live

vuepress-plugin-example-preview
Easily display the preview of a code snippet
Stars: ✭ 15 (-59.46%)
Mutual labels:  live, vuepress
deep-ui
✨✨✨ 快速打造团队业务或者个人组件 UI 库 , 欢迎各位大佬 fork pr 添砖搬瓦
Stars: ✭ 18 (-51.35%)
Mutual labels:  vuepress
firework8s
Firework8s is a collection of kubernetes objects (yaml files) for deploying workloads in a home lab.
Stars: ✭ 35 (-5.41%)
Mutual labels:  examples
Kanon
A live programming environment specialized for data structure programming.
Stars: ✭ 57 (+54.05%)
Mutual labels:  live
examples
Enjoy our curated collection of examples and solutions. Use these patterns to build your own robust and scalable applications.
Stars: ✭ 960 (+2494.59%)
Mutual labels:  examples
webgl-shader-examples
Some simple examples of WebGL shaders
Stars: ✭ 83 (+124.32%)
Mutual labels:  examples
KSYAirStreamer iOS
金山云 iOS Airplay 录屏直播SDK
Stars: ✭ 44 (+18.92%)
Mutual labels:  live
playground
📚 Examples, projects, webprojects, skeletons for Nette Framework (@nette) from community members. Included @contributte @apitte @nettrine projects.
Stars: ✭ 23 (-37.84%)
Mutual labels:  examples
spring-cloud-gcp-guestbook
No description or website provided.
Stars: ✭ 55 (+48.65%)
Mutual labels:  examples
what-if
My messy notebook, built with VuePress 2.
Stars: ✭ 17 (-54.05%)
Mutual labels:  vuepress
VueDocs
A vuepress theme for v1.0
Stars: ✭ 8 (-78.38%)
Mutual labels:  vuepress
termbacktime
Terminal recording and playback.
Stars: ✭ 33 (-10.81%)
Mutual labels:  live
db2-samples
Db2 application code, configuration samples, and other examples
Stars: ✭ 56 (+51.35%)
Mutual labels:  examples
LFLiveKit-ReplayKit
A ReplayKit Version
Stars: ✭ 46 (+24.32%)
Mutual labels:  live
sdk-examples
Example source code and projects for the Looker SDKs
Stars: ✭ 34 (-8.11%)
Mutual labels:  examples
terraform examples
Terraform AWS Windows examples
Stars: ✭ 78 (+110.81%)
Mutual labels:  examples
TJTextField
UITextField with underline and left image
Stars: ✭ 45 (+21.62%)
Mutual labels:  live
flytesnacks
Flyte User-Guides and Tutorials - https://flytecookbook.readthedocs.io
Stars: ✭ 39 (+5.41%)
Mutual labels:  examples
P2P-DPlayer
DPLayer powered by CDNBye P2P Engine
Stars: ✭ 63 (+70.27%)
Mutual labels:  live
Java
All Examples for learning Java programming and algorithms
Stars: ✭ 14 (-62.16%)
Mutual labels:  examples

vuepress-plugin-live

Make your markdown code examples come alive using vue-live

Build Status NPM Version NPM Downloads semantic-release

Install

yarn add -D vuepress-plugin-live
# or with npm:  npm install -D vuepress-plugin-live

Config

//.vuepress/config.js
module.exports = {
  //...
  plugins: [["live"]],
};

Usage

In your markdown file just add a live flag to your fenced code blocks.

```vue live
<button>example</button>
```

Options

layout

Path to a custom layout for the vue-live instances

default

vuepress-plugin-live/layout.vue

example

//.vuepress/config.js
module.exports = {
  //...
  plugins: [
    ["live", { layout: path.resolve(__dirname, "../VueLiveLayout.vue") }],
  ],
};

noSsr

Avoid server side rendering the components in components if they are not ssr ready. Remember that vuepress build pre-compiles the html pages you need.

default

false

example

//.vuepress/config.js
module.exports = {
  //...
  plugins: [["live", { noSsr: true }]],
};

liveFilter

Allows users of theis plugin to say what fenced blocks will be rendered with vue-live.

default

(lang) => / live$/.test(lang) && / live /.test(lang);

example

//.vuepress/config.js
module.exports = {
  //...
  plugins: [
    [
      "live",
      {
        liveFilter(lang) {
          return ["vue", "js", "jsx"].includes(lang);
        },
      },
    ],
  ],
};
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].