classlib-doc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. * Class Library Documentation
  2. ** Summary
  3. While using inline XML tags to document classes is certainly
  4. convenient, properly verbose documentation quickly overwhelms
  5. the code, making the source quite difficult to read. Furthermore,
  6. multilingual documentation makes for significant additional text.
  7. With these considerations in mind, Mono will use external XML files
  8. for type documentation, rather than documenting the source inline.
  9. Several tools will be created for managing, verifying, generating,
  10. and updating class library documentation, including:
  11. <ul>
  12. <li><a href="#docstub">docstub</a></li>
  13. <li><a href="#docverify">docverify</a></li>
  14. <li><a href="#docconv">docconv</a></li>
  15. <li><a href="#docgen">docgen</a></li>
  16. <li><a href="#monodoc">monodoc</a></li>
  17. </ul>
  18. ** XML Documentation Files and Formats
  19. *** Monodoc XML
  20. This XML is similar to the XML documentation described in the
  21. C# standard, with added tags for internationalization and a
  22. slightly different structure. Documentation and a DTD/Schema
  23. for Monodoc XML is forthcoming.
  24. Monodoc XML does not contain any definitive type information,
  25. and is only useful in conjunction with the Type definition for
  26. whatever is being documented.
  27. This XML could be generated by hand, by monostub, or by monodoc.
  28. *** Assembly XML
  29. This XML is generated by combining runtime type information for
  30. an Assembly with a collection of Monodoc XML files. The resultant
  31. XML (in the best of cases) contains both complete type and
  32. documentary information for each type in the assembly.
  33. This XML contains enough information to be transformed into
  34. user-accessible documentation. It is likely that scripts
  35. will be created to generate reference docs as HTML and other
  36. formats.
  37. Documentation and a DTD/Schema for Assembly XML is forthcoming.
  38. ** Documentation Tools
  39. *** <a name="docstub">docstub</a>
  40. Given a type name and an assembly, generates stub Monodoc XML
  41. documentation for the type. Optionally, docstub can attempt to
  42. populate initial documentation from an XML file in the format
  43. published along with the ECMA standard.
  44. *** <a name="docverify">docverify</a>
  45. Given a Monodoc XML file and an assembly, verifies that the
  46. documentation matches the compiled type. Checks signatures,
  47. parameters, et cetera.
  48. *** <a name="docconv">docconv</a>
  49. Converts from Monodoc XML to the standard C# compiler-emitted
  50. XML format and vice versa.
  51. *** <a name="docgen">docgen</a>
  52. Given an assembly and a collection of Monodoc XML files, creates
  53. an Assembly XML file containing all documentation and type information
  54. available. This output is suitable for transforming into user
  55. documentation.
  56. *** <a name="monodoc">monodoc</a>
  57. A GUI tool for documentation and translation, this encapsulates
  58. the capabilities of docstub, docverify, docconv, and docgen in
  59. a friendly user interface. In addition, monodoc provides features
  60. to ease translation, such as side-by-side editing and coverage
  61. statistics.
  62. ** Status and Roadmap
  63. *** 2 January 2002
  64. As I write the initial version of this document, very little has been
  65. implemented. Currently, there is a:
  66. <ul>
  67. <li>Preliminary version of the Monodoc XML format</li>
  68. <li>Preliminary version of the docstub utility</li>
  69. </ul>
  70. Here's hoping for frequent, productive updates.
  71. ** Get Involved
  72. Help us define Mono's documentation structure! Subscribe to
  73. <a href="http://lists.ximian.com/mailman/listinfo/mono-docs-list">mono-docs-list</a>
  74. and wade right in.