🤩🤩🤩像饿了么UI一样写文档。
安装插件包到项目:
$ yarn add vuepress-plugin-code-doc
#or
$ npm i vuepress-plugin-code-doc
在 .vuepress/config.js
, 添加插件依赖,在配置中添加插件配置,如下所示:
const CodeDocPlugin = require('vuepress-plugin-code-doc')
const CodeDocOpt = {}
module.exports = {
title: 'Vuepress Plugin Code Doc',
plugins: [[CodeDocPlugin, CodeDocOpt]]
}
Name | Description | type | Accepted Values | Default |
---|---|---|---|---|
schema | 代码块的标记 | string | --- | : |
scrollViewSelector | 滚动视图的选择器 | string | --- | html |