markdown 模板导出

This commit is contained in:
2024-03-02 01:38:26 +08:00
parent 65cd36c02c
commit 92a3130392
10 changed files with 520 additions and 8 deletions

View File

@@ -0,0 +1,23 @@
import mdTemplate from './mdTemplate/mdTemplate.js'
function exportData(exportDataModule, pid) {
exportDataModule.markdown = {
name: 'markdown',
route: `/api/plugin/exportMarkdown?pid=${pid}`,
desc: '根据模板导出项目接口文档'
};
}
function hander(routers) {
routers.mdExport = {
name: 'Markdown导出',
component: mdTemplate
};
}
module.exports = function() {
this.bindHook('export_data', exportData);
this.bindHook('sub_setting_nav', hander);
};