[英]How to generate documentation with references using docfx
I am trying to generate documentation for .net project (multi layer).我正在尝试为 .net 项目(多层)生成文档。 But I am not able to see reference class information in generated documentation with docfx.
但是我无法在 docfx 生成的文档中看到参考类信息。
Eg:例如:
using Microsoft.AspNetCore.Mvc;
using ServiceLayer;
namespace testApplication.Controllers
{
/// <summary>
/// Home COntroller
/// </summary>
public class HomeController : Controller
{
/// <summary>
/// Index Method
/// </summary>
/// <returns></returns>
public IActionResult Index()
{
Class1 cls1 = new Class1();
//calling testmethod.
string abc = cls1.testmethod("testing");
return View();
}
}
}
the above code is referencing ServiceLayer.上面的代码引用了ServiceLayer。 using that I am calling testmethod.
使用它,我正在调用 testmethod。 But Documentation is not showing, this class is using ServiceLayer Reference.
但是文档没有显示,这个类正在使用 ServiceLayer 引用。
and is there any way to show comments in "//" also in the documentation有什么方法可以在文档中也显示“//”中的注释
Check the following link: https://dotnet.github.io/docfx/spec/metadata_dotnet_spec.html检查以下链接: https : //dotnet.github.io/docfx/spec/metadata_dotnet_spec.html
The metadata defined for .net include the declarations of:为 .net 定义的元数据包括以下声明:
Namespaces
命名空间
Types, including class, struct, interface, enum, delegate
类型,包括类、结构、接口、枚举、委托
Type members, including field, property, method, event
类型成员,包括字段、属性、方法、事件
All these are annotated with the ///
XML comment.所有这些都使用
///
XML 注释进行注释。 Since this is an api descriptor, it makes sense to include only those由于这是一个 api 描述符,因此只包含那些是有意义的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.