2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
[mono.git] / doc / documentation
index c78f9eaf0801341215855b3f4dff52fd59961fd7..56721cd777761e57a1e750adcdbd56e27dbc113d 100644 (file)
@@ -55,7 +55,7 @@
        repository (on gtk-sharp/doc) and we need volunteers to help
        populate the documentation for it.  Since Gtk# is a wrapper
        for Gtk, plenty of documentation exists in the <a
-       href="http://developer.gnome.org/doc/API/2.0/">Gnome developer
+       href="http://developer.gnome.org/doc/API">Gnome developer
        site</a>.
 
        To get started:
        You need to download Gtk# from the CVS repository.  The module
         name is `gtk-sharp'.  You can obtain a copy from both the CVS
         repository or the anonymous CVS repository.
-        
+
         To pull your copy type:
-        
+
+<pre>
                cvs co gtk-sharp
-        
+</pre>
         Documentation lives in gtk-sharp/doc/en.  The "en" indicates the
         English language, the first one we are targeting.  We can later
         do translations, but for now we are focusing on a single
         language.
-        
+
         In that directory you will find the documentation organized by
         namespaces.  One directory per namespace.  In the directories
         you will find one XML file per class that needs to be
         documented.  The mission is to fill in the data with useful
         information.  Feel free to grab liberally information from the
         Gtk documentation from:
-        
+
                <a href="http://developer.gnome.org/doc/API/">http://developer.gnome.org/doc/API/</a>
-        
+
         Of course, the API does not apply directly.  It only applies at
         a foundational level, so you can not really just copy and
         paste.  Summaries, and remarks sections can probably be lifted
         with little or no effort.
-        
+
         Gtk# uses properties to represent get/set operations in the C
         API, so you can also use some bits from there.
-        
+
         Most of the documentation contains already place holders for
         text, we use the internationally approved phrase for this
         purpose, `To be added'.  So the quest is to remove all of the
         
         As you document Gtk# you will have a number of tags that you can
         use inside the summary and remarks sections, these are:
-        
-        <para> </para>
+
+<pre>        
+&lt;para&gt; &lt;/para&gt;
+</pre>
                Used to separate paragraphs.
-        
-        <paramref name="param_name"/>
+      
+<pre>  
+&lt;paramref name="param_name"/&gt;
+</pre>
                Used to reference a formal parameter to a function.
-        
-        <see cref="T:SomeTypeName"/>
+
+<pre>  
+&lt;see cref="T:SomeTypeName"/&gt;
+</pre>
                Use this to reference a type, this will include an hyper
                link to the page for type SomeTypeName.
-        
+
                For example, to reference "System.Enum", do:
         
-               <see cref="T:System.Enum"/>
+<pre>
+       &lt;see cref="T:System.Enum"/&gt;
+</pre>
 
-        <see cref="P:SomeTypeName.Property"/>
+<pre>
+&lt;see cref="P:SomeTypeName.Property"/&gt;
+</pre>
                Use this to reference a property, this will include an hyper
                link to the page for the property `Property' of type `SomeTypeName'.
-        
+
                For example, to reference the BaseType property in System.Type, do:
         
-               <see cref="P:System.Type.BaseType"/>
+<pre>
+       &lt;see cref="P:System.Type.BaseType"/&gt;
+</pre>
 
-        <see cref="M:SomeTypeName.Method(type,type)"/>
+<pre>
+&lt;see cref="M:SomeTypeName.Method(type,type)"/&gt;
+</pre>
                Use this to reference a method, this will include an hyper
                link to the page for the method `Method' of type `SomeTypeName'.
         
                For example, to reference the ToString method in System.Object, do:
         
-               <see cref="M:System.Object.ToString()"/>
+<pre>
+       &lt;see cref="M:System.Object.ToString()"/&gt;
+</pre>
         
-        <see langword="keywrod"/>
+<pre>
+&lt;see langword="keyword"/&gt;
+</pre>
                Use this to link to a keyword in the C# language, for
                example to link to `true', do:
+
+<pre>
+       &lt;see langword="true"/&gt;
+</pre>
         
-                       <see langword="true"/>
-        
-        <example> ... </example>
-        
+<pre>
+&lt;example&gt; ... &lt;/example&gt;
+</pre>        
                Use example to insert an example.  The example can 
                contain explanatory text and code.
         
-        <code lang="C#">.. </code>
+<pre>
+&lt;code lang="C#"&gt;.. &lt;/code&gt;
+</pre>
         
                Use this to provide a sample C# program, typically used
-               within the <example> tags.
-        
+               within the &lt;example&gt; tags.
+
                When providing examples, try to provide a full example,
                we would like to be able to have a button to compile and
                run samples embedded into the documentation, or pop up
                an editor to let the user play with the sample.
-        
+
                You can link to an example like this:
-        
-               <code lang="C#" source="file.cs"> </code>
-        
-        <item>
+
+<pre>
+       &lt;code lang="C#" source="file.cs"&gt; &lt;/code&gt;
+</pre>
+
+<pre>
+&lt;item&gt;
+</pre>
                
-        <list type="bullet">  </list>
+<pre>
+&lt;list type="bullet"&gt;  &lt;/list&gt;
+</pre>
         
-               Use this to create lists.  Lists contains <item>
+               Use this to create lists.  Lists contains &lt;item&gt;
                elements
         
-        <list type="table"> </lits>
-                    <listheader>
-                      <term>YOUR FIRST COLUMN</term>
-                      <description>YOUR DESCRIPTION</description>
-                    </listheader>
-        
+<pre>
+&lt;list type="table"&gt; &lt;/lits&gt;
+            &lt;listheader&gt;
+              &lt;term&gt;YOUR FIRST COLUMN&lt;/term&gt;
+              &lt;description&gt;YOUR DESCRIPTION&lt;/description&gt;
+            &lt;/listheader&gt;
+</pre>
                For two-column tables.  Inside use:
         
-               <item>
-                       <term>First</term>
-                       <description>First descritpion</description>
-               </item>
-               <item>
-                       <term>Second</term>
-                       <description>Second descirption</description>
-               </item>
+<pre>
+&lt;item&gt;
+       &lt;term&gt;First&lt;/term&gt;
+       &lt;description&gt;First descritpion&lt;/description&gt;
+&lt;/item&gt;
+&lt;item&gt;
+       &lt;term&gt;Second&lt;/term&gt;
+       &lt;description&gt;Second descirption&lt;/description&gt;
+&lt;/item&gt;
+</pre>
 
 ** Words of warning.