smart-doc 单模块 生成文档

build.gradle

plugins {
    id "com.github.shalousun.smart-doc" version "2.2.2"
}
 
smartdoc {
    configFile = file("src/main/resources/smart-doc.json")
}
 

resources/smart-doc.json

{
  "serverUrl": "localhost:9090/web-mac",
  "allInOneDocFileName":"webmac.md",
  "outPath": "webmac",
  "isStrict": false,
  "allInOne": true,
  "coverOld": true,
  "createDebugPage": true,
  "projectName": "pro.webMac",
  "revisionLogs": [{
    "version": "1.0",
    "revisionTime": "2021-08-11 12:00",
    "status": "update",
    "author": "tyler",
    "remarks": "修改命名规范"
  }]
}
 
 
原文地址:https://www.cnblogs.com/hanjun0612/p/15209370.html