Skip to content

支持自己选择一个类中的哪些方法可以生成文档吗? #1152

Answered by tangcent
tauhuang asked this question in Q&A
Discussion options

You must be logged in to vote

如果标记是注释的tag的话,可以这样配:
ignore=!#export
这样只有类上和方法上都注释了export才能被导出。

/**
 * @export
 */

如果你只想在方法上标注,就改成这样:
ignore[groovy:it.contextType()=="method"]=!#export

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tauhuang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants