[Mono-docs-list] monodoc html tables and padding

John Luke jluke@users.sourceforge.net
Wed, 01 Oct 2003 16:40:36 -0400


This is a multi-part message in MIME format.
--------------070104090606000806000305
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Updated patch that does the same thing for the xhtml, ecmaspec, and 
error providers on the root:/ nodes.

--------------070104090606000806000305
Content-Type: text/plain;
 name="spacing.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="spacing.diff"

Index: ChangeLog
===================================================================
RCS file: /cvs/public/monodoc/browser/ChangeLog,v
retrieving revision 1.90
diff -u -r1.90 ChangeLog
--- ChangeLog	30 Sep 2003 03:18:32 -0000	1.90
+++ ChangeLog	1 Oct 2003 20:49:41 -0000
@@ -1,3 +1,12 @@
+2003-10-01  John Luke  <jluke@cfl.rr.com>
+
+	* mono-ecma.xsl: use cellpadding in example, and top table
+	* ecmaspec-html.xsl: use cellpadding, render examples like ecma-docs
+	* provider.cs: make /root: look more like other pages (table w/ bgcolor)
+	* error-provider.cs: make /root: node look like other headings
+	* ecma-spec-provider.cs: make /root: render and look like other headings
+	* xhtml-provider.cs: make /root: node look like other headings
+
 2003-09-23  Miguel de Icaza  <miguel@ximian.com>
 
 	* list.cs: Replace massive ellipsises array with hashtable, which
@@ -14,7 +23,6 @@
 	on/off via gui. (most of the credit goes to jluke).
 	* browser.cs, editing.cs: merge changes to multiple dirs.
 
->>>>>>> 1.89
 2003-09-12  John Luke  <jluke@cfl.rr.com>
 	
 	* browser.cs: add IsEditable property, OnEditingActivated and
Index: ecmaspec-html.xsl
===================================================================
RCS file: /cvs/public/monodoc/browser/ecmaspec-html.xsl,v
retrieving revision 1.1
diff -u -r1.1 ecmaspec-html.xsl
--- ecmaspec-html.xsl	31 Aug 2003 16:28:52 -0000	1.1
+++ ecmaspec-html.xsl	1 Oct 2003 20:49:41 -0000
@@ -2,7 +2,7 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
 <xsl:template match="/clause">
-	<table width="100%">
+	<table width="100%" cellpadding="5">
 		<tr bgcolor="#b0c4de"><td>
 		<i>ECMA-334 C# Language Specification</i>
 
@@ -40,9 +40,15 @@
 </xsl:template>
 
 <xsl:template match="code_example">
-	<pre>
-		<xsl:apply-templates />
-	</pre>
+  <table bgcolor="#f5f5dd" border="1" cellpadding="5">
+	<tr>
+	  <td>
+	    <pre>
+		  <xsl:apply-templates />
+	    </pre>
+	  </td>
+	</tr>
+  </table>
 </xsl:template>
 
 <xsl:template match="symbol">
@@ -82,4 +88,4 @@
 	</xsl:copy>
 </xsl:template>
 
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>
Index: mono-ecma.xsl
===================================================================
RCS file: /cvs/public/monodoc/browser/mono-ecma.xsl,v
retrieving revision 1.25
diff -u -r1.25 mono-ecma.xsl
--- mono-ecma.xsl	6 Sep 2003 00:42:29 -0000	1.25
+++ mono-ecma.xsl	1 Oct 2003 20:49:41 -0000
@@ -30,7 +30,7 @@
 
 		<!-- HEADER -->
 
-		<table width="100%">
+		<table width="100%" cellpadding="5">
 			<tr bgcolor="#b0c4de"><td>
 			<i>Mono Class Library</i>
 
@@ -1046,7 +1046,7 @@
 	</xsl:template>
 	
 	<xsl:template match="code">
-		<table bgcolor="#f5f5dd" border="1">
+		<table bgcolor="#f5f5dd" border="1" cellpadding="5">
 		<tr><td><b><font size="-1"><xsl:value-of select="@lang"/> Example</font></b></td></tr>
 		<tr><td><font size="-1"><pre>
 			<xsl:apply-templates/>	
Index: provider.cs
===================================================================
RCS file: /cvs/public/monodoc/browser/provider.cs,v
retrieving revision 1.55
diff -u -r1.55 provider.cs
--- provider.cs	7 Sep 2003 16:36:45 -0000	1.55
+++ provider.cs	1 Oct 2003 20:49:41 -0000
@@ -983,11 +983,12 @@
 		lastHelpSourceTime = DateTime.MinValue;
 		if (url == "root:") {
 			match_node = this;
-			StringBuilder sb = new StringBuilder ("<h1>Welcome to Monodoc</h1>");
+			StringBuilder sb = new StringBuilder ("<table bgcolor=\"#b0c4de\" width=\"100%\" cellpadding=\"5\"><tr><td><h3>Mono Documentation Library</h3></td></tr></table>");
+			
 			foreach (Node n in Nodes)
 				sb.AppendFormat ("<a href='{0}'>{1}</a><br/>", n.Element, n.Caption);
-			return sb.ToString ();
 			
+			return sb.ToString ();	
 		} 
 		
 		if (url.StartsWith ("root:")) {
Index: ecmaspec-provider.cs
===================================================================
RCS file: /cvs/public/monodoc/browser/ecmaspec-provider.cs,v
retrieving revision 1.3
diff -u -r1.3 ecmaspec-provider.cs
--- ecmaspec-provider.cs	5 Sep 2003 21:56:14 -0000	1.3
+++ ecmaspec-provider.cs	1 Oct 2003 20:49:41 -0000
@@ -74,6 +74,9 @@
 			return GetTextFromUrl (url);
 		}
 		
+		if (url == "root:")
+				return "<table width=\"100%\" bgcolor=\"#b0c4de\" cellpadding=\"5\"><tr><td><h3>C# Language Specification</h3></tr></td></table>";
+		
 		return null;
 	}
 	
Index: xhtml-provider.cs
===================================================================
RCS file: /cvs/public/monodoc/browser/xhtml-provider.cs,v
retrieving revision 1.17
diff -u -r1.17 xhtml-provider.cs
--- xhtml-provider.cs	25 Aug 2003 17:08:20 -0000	1.17
+++ xhtml-provider.cs	1 Oct 2003 20:49:41 -0000
@@ -59,6 +59,7 @@
 		
 		if (url == "root:") {
 			StringBuilder sb = new StringBuilder ();
+			sb.Append ("<table width=\"100%\" bgcolor=\"#b0c4de\" cellpadding=\"5\"><tr><td><h3>Mono Handbook</h3></tr></td></table>");
 			foreach (Node n in Tree.Nodes) {
 				if (n.IsLeaf) { 
 					sb.AppendFormat ("<a href='{0}'>{1}</a><br/>", 

--------------070104090606000806000305--