According to this article, you can use XML documentation comments to create documentation. To enable this feature, open Areas / HelpPage / App_Start / HelpPageConfig.cs and uncomment the following line:
config.SetDocumentationProvider(new XmlDocumentationProvider( HttpContext.Current.Server.MapPath("~/App_Data/XmlDocument.xml")));
Now include the XML documentation. In Solution Explorer, right-click the project and select Properties. Select the Create page.
In the Exit section, check the XML documentation file. In the edit box, enter "App_Data / XmlDocument.xml".
Add some comments on controller methods. For example:
/// <summary> /// Gets some very important data from the server. /// </summary> public IEnumerable<string> Get() { return new string[] { "value1", "value2" }; } /// <summary> /// Looks up some data by ID. /// </summary> /// <param name="id">The ID of the data.</param> public string Get(int id) { return "value"; }
nznoor Jun 18 '14 at 11:56 2014-06-18 11:56
source share