Dashboard > Spring.NET > Documentation Guidelines
  Spring.NET Log In View a printable version of the current page.  
  Documentation Guidelines
Added by Aleksandar Seovic, last edited by Rick Evans on Jul 29, 2005  (view change)
Labels: 
(None)

Build files are currently configured to treat all warnings as errors, which means that errors in documentation will cause build to fail. Please migrate documentation as and when you are migrating tcode from the Spring framework for Java project. This is less of an issue right now since the majority of the porting has already been done, but in the case of anything that has yet to be ported, or that is being ported as a part of continued development on the Spring framework for Java project, please do adhere to the guidelines on this page.

Use the following quick reference when you need help with documentation tags. Additional information can be found on MSDN. The current build process uses NDoc to genmerate all of the API documentation... you may find you have better mileage using NDoc's extra documentation tags.

Documenting Namespaces

In order to document namespaces (equivalent to package.html in Java), you need to crack open the 'NamespaceSummary.xml' file in the 'doc' folder just off of the top level Spring.NET solution directory (if you're using Visual Studio, this file can also be accessed from the 'Solution Items' at the bottom of the 'Solution Explorer' pane). You can then add the documentation for the namespace using this style of template...

    <namespace name="Spring.Collections">
        Collection style classes used throughout the Spring.NET framework.
</namespace>

You should copy existing documentation from package.html whenever possible.

General Documentation Guidelines

  • Rename package and class names in documentation to reflect .NET names.
  • Move examples into <example> tag and rewrite them in C#. The core of Spring.NET is CLR compliant, but we're only ever going to write embedded API documentation using C#.
  • Add documentation where it's missing as you are going through the code.
  • And never ever just type empty
    /// <summary></summary>
    /// <param name="foo"></param>
    /// <returns></returns>
    documentation summary tags 'cos while that does indeed shut the compiler warnings up, it irks the more anal retentive developers out there

What about GhostDoc to help auto generate some of the documentation?
http://www.roland-weigelt.de/ghostdoc/

Site running on a free Atlassian Confluence Open Source Project License granted to Spring Framework. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.5 Build:#811 Jul 25, 2007) - Bug/feature request - Contact Administrators