1 Star 0 Fork 0

紙飛機/mgs-webui-basic-map

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docgen.config.js 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
jakejoue 提交于 2022-02-17 16:43 . 更新日志配置
// 配置项
// https://vue-styleguidist.github.io/docs/Documenting.html#code-comments
const path = require('path')
module.exports = {
componentsRoot: 'src/components',
components: '**/mgs-[A-Za-z-]*.vue',
outDir: './docs',
defaultExamples: false,
apiOptions: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
getDestFile: (file, config) => {
return path
.resolve(config.outDir, file.match('[a-zA-Z-]*.vue')[0])
.replace(/(.vue)$/, '.md')
},
templates: {
component: (renderedUsage, doc) => {
const { displayName, description, docsBlocks, tags, functional } =
doc
const { deprecated, author, since, version, see, link } = tags || {}
return `
---
title: ${displayName}
---
# ${deprecated ? `~~${displayName}~~` : displayName}
${deprecated ? `> **Deprecated** ${deprecated[0].description}\n` : ''}
${description ? '> ' + description : ''}
${functional ? renderedUsage.functionalTag : ''}
${author ? author.map(a => `Author: ${a.description}\n`) : ''}
${since ? `Since: ${since[0].description}\n` : ''}
${version ? `Version: ${version[0].description}\n` : ''}
${see ? see.map(s => `[See](${s.description})\n`) : ''}
${link ? link.map(l => `[See](${l.description})\n`) : ''}
<div class="api">
${renderedUsage.props}
${renderedUsage.methods}
${renderedUsage.events}
${renderedUsage.slots}
</div>
${docsBlocks ? '\n' + docsBlocks.join('\n---\n') : ''}
`
},
},
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jakejoue/mgs-webui-basic-map.git
git@gitee.com:jakejoue/mgs-webui-basic-map.git
jakejoue
mgs-webui-basic-map
mgs-webui-basic-map
master

搜索帮助