Skip to content

Latest commit

 

History

History
69 lines (49 loc) · 1.21 KB

README.md

File metadata and controls

69 lines (49 loc) · 1.21 KB

vuepress-plugin-template-code

template-code plugin for vuepress.

With this plugin, you can both display template and code via following syntax.

::: demo
file path
:::

Features

  • Only one source code
  • Foldable code
  • Support online editing
    • ✔ Codepen
    • ✔ JSFiddle
    • ✔ CodeSandbox
  • Designed for long code
    • Sticky fold button
    • Auto scroll to top when you fold code

Install

$ npm i -D vuepress-plugin-template-code
# OR
$ pnpm i -D vuepress-plugin-template-code
# OR
$ yarn add -D vuepress-plugin-template-code

Usage

Write vuepress config

module.exports = {
  plugins: [
    "vuepress-plugin-template-code",
    {
      path: "./",
    },
  ],
};

Options

This plugin supports the following configurations.

License

MIT

Copyright (c) kola

Contributors ✨

The plug-in reference vuepress-plugin-template-code Thanks goes to these wonderful people

This project follows the all-contributors specification. Contributions of any kind welcome!