This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: style.mhtml and color of Java pages
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Tom Tromey <tromey at redhat dot com>
- Date: Thu, 20 Feb 2003 23:49:45 +0100 (CET)
- Subject: PATCH: style.mhtml and color of Java pages
Tom, this is something you had asked me to do and which, I admit, had
forgot for some time:
Introduce and use MetaHTML functions <navigation-titlecolor> and
<navigation-bgcolor> instead of hard-coding the colors everywhere.
Use this feature to color the Java navigation bar uniformly blueish.
I have tested it locally (http://www.pfeifer.com/gerald/tmp/gcc.html),
and with the next daily regeneration run also gcc.gnu.org will be updated.
Gerald
Index: style.mhtml
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/style.mhtml,v
retrieving revision 1.49
diff -u -3 -p -r1.49 style.mhtml
--- style.mhtml 23 Nov 2002 00:27:14 -0000 1.49
+++ style.mhtml 20 Feb 2003 22:43:43 -0000
@@ -1,16 +1,25 @@
-;;; Default to DOCTYPE XHTML, except for the "install/" pages.
+;;; Set a couple of site-wide defaults, some of which we'll override in the
+;;; following.
<set-var XHTML>
<set-var BACKPATH>
+<define-function navigation-titlecolor> bgcolor="#FFEE99" </define-function>
+<define-function navigation-bgcolor> bgcolor="#FFFFCC" </define-function>
+
+;;; The "install/" pages are HTML, not XHTML.
<if <match <get-var env::PREPROCESS_FILE> "install/.*">
<unset-var XHTML>
>
+;;; For the "java/" pages, we have a different color scheme.
+
<if <match <get-var env::PREPROCESS_FILE> "java/[^/]*.html">
<group
<set-var navigation>
<set-var BACKPATH="../">
+ <define-function navigation-titlecolor> bgcolor="#B0D0FF" </define-function>
+ <define-function navigation-bgcolor> bgcolor="#E0F0FF" </define-function>
<define-container h2>
<verbatim>
<h2 style="background-color:#B0D0FF">
@@ -116,10 +125,10 @@
<if <match <get-var env::PREPROCESS_FILE> "java/[^/]*.html">
<group
<tr><td><table cellspacing="0" width="100%">
- <tr bgcolor="#B0D0FF"><td align="center" valign="middle">
+ <tr <navigation-titlecolor> ><td align="center" valign="middle">
<img src="gcj.jpg" alt="GCJ" width="136" height="98" />
</td></tr>
- <tr bgcolor="#E0F0FF"><td>
+ <tr <navigation-bgcolor> ><td>
<p>
<a href="index.html">GCJ Home</a><br />
<a href="../">GCC Home</a><br />
@@ -156,10 +165,10 @@
>
<tr><td><table cellspacing="0" width="100%">
- <tr bgcolor="#FFEE99"><td>
+ <tr <navigation-titlecolor> ><td>
<b>About GCC</b>
</td></tr>
- <tr bgcolor="#FFFFCC"><td>
+ <tr <navigation-bgcolor> ><td>
<p>
<a href="<get-var BACKPATH>gccmission.html">Mission Statement</a><br />
<a href="<get-var BACKPATH>lists.html">Mailing lists</a><br />
@@ -171,10 +180,10 @@
</table></td></tr>
<tr><td><table cellspacing="0" width="100%">
- <tr bgcolor="#FFEE99"><td>
+ <tr <navigation-titlecolor> ><td>
<b>Documentation</b>
</td></tr>
- <tr bgcolor="#FFFFCC"><td>
+ <tr <navigation-bgcolor> ><td>
<p>
<a href="http://gcc.gnu.org/install/">Installation</a><br />
<a href="http://gcc.gnu.org/install/specific.html"> Supported Platforms</a><br />
@@ -187,10 +196,10 @@
</table></td></tr>
<tr><td><table cellspacing="0" width="100%">
- <tr bgcolor="#FFEE99"><td>
+ <tr <navigation-titlecolor> ><td>
<b>Download</b>
</td></tr>
- <tr bgcolor="#FFFFCC"><td>
+ <tr <navigation-bgcolor> ><td>
<p>
<a href="<get-var BACKPATH>releases.html">Releases</a><br />
<a href="<get-var BACKPATH>snapshots.html">Snapshots</a><br />
@@ -201,10 +210,10 @@
</table></td></tr>
<tr><td><table cellspacing="0" width="100%">
- <tr bgcolor="#FFEE99"><td>
+ <tr <navigation-titlecolor> ><td>
<b>Development</b>
</td></tr>
- <tr bgcolor="#FFFFCC"><td>
+ <tr <navigation-bgcolor> ><td>
<p>
<a href="<get-var BACKPATH>develop.html">Development Plan</a><br />
<a href="<get-var BACKPATH>contribute.html">Contributing</a><br />
@@ -221,10 +230,10 @@
</table></td></tr>
<tr><td><table cellspacing="0" width="100%">
- <tr bgcolor="#FFEE99"><td>
+ <tr <navigation-titlecolor> ><td>
<b>Bugs</b>
</td></tr>
- <tr bgcolor="#FFFFCC"><td>
+ <tr <navigation-bgcolor> ><td>
<p>
<a href="<get-var BACKPATH>bugs.html">Report a bug</a><br />
<a href="http://gcc.gnu.org/cgi-bin/gnatsweb.pl">Bug database</a><br />