ydoc
Version:
基于 Markdown 的静态站点生成工具
35 lines (27 loc) • 740 B
Markdown
# 插件
YDoc 强大的插件功能,满足你个性化的需求。
## 浏览插件
请访问 [ydoc 官网 - 插件](https://hellosean1025.github.io/ydoc/plugin/index.html) 浏览插件。
## 安装插件
假设要安装的插件名是 demo,执行如下命令:
```bash
npm install --save-dev ydoc-plugin-demo
```
安装完成后,请在 ydoc.json 配置项,添加:
```json
{
"plugins": ["demo"]
}
```
## 插件配置
部分插件需要做自定义配置, 假设 demo 插件需要添加 {id: 1} 的配置,只需要在 ydoc.json ,添加如下配置项:
```json
{
"pluginsConfig": {
"demo": {
"id": 1
}
}
}
```
## [插件使用技巧](https://hellosean1025.github.io/ydoc/examples/plugin/index.html)