【发布时间】:2016-10-13 19:52:40
【问题描述】:
我想用 AsciiDoc 记录我的项目。
我有一个像下面这样的类,它有 cmets,概述了有关方法中正在处理的步骤的一些细节。我想让这些 cmets 成为我的 .adoc 某些部分的内容。
public RequestResponse processRequest(UserRequest request){
/* First retrieve info from db calling the stored procedure
dbo.StoredProcedure with input parameters A,B,C */
DbResponse dbResponse = dao.getResponse(request);
// Call method to calculate all scenarios for the Example request
CalcResult calcResult = util.calculateStuff(request.getAmountList());
/* Format the response to include the fields from the calcResult as well
as the request details returned from the DB result set */
return util.formatResponse(dbResponse,calcResult );
}
最终,此文档将用于向其他开发人员提供某些 REST 调用过程的概要,而无需他们进入源代码并查看所有步骤。
我是 AsciiDoc 的新手,可能对这个用例不太了解。
【问题讨论】:
-
您的问题到底是什么?询问方式见stackoverflow.com/help/how-to-ask。
标签: asciidoc