[英]DocFX - Unable to filter out public Method from API Documentation
I have the following method in my class library that I want to hide from API documentation:我的类库中有以下方法,我想从 API 文档中隐藏它:
namespace com.contoso.myns
{
public class myclass
{
public static string CreateSomething()
{
//Do Stuff
}
}
}
I followed the DocFX Tutorial for filtering API documentation to create filterConfig.yml .我按照DocFX 教程过滤 API 文档来创建filterConfig.yml 。 In that file I have the following:
在该文件中,我有以下内容:
- exclude:
uidRegex: '^com\.contoso\.myns\.myclass\.Create[^.]+$'
type: Method
However, the method is still appearing in my documentation.但是,该方法仍然出现在我的文档中。
Please note:请注意:
Any help would be greatly appreciated.任何帮助将不胜感激。
The pattern to match a method name shouldn't contain the entire path from the namespace;匹配方法名称的模式不应包含命名空间中的整个路径; just the method name itself:
只是方法名称本身:
- exclude:
uidRegex: 'CreateSomething$'
type: Method
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.