[wwwdocs] Complete revamp of our web site

Gerald Pfeifer gerald@pfeifer.com
Mon Jun 5 20:51:00 GMT 2006


The following patchset renovates our web presence, adopting the current
style from www.gnu.org and bringing the Java and libstdc++ pages in sync
so that we now have one common style.

Feedback welcome!  (Steven, I've seen yours already and will respond. ;-)


Compress the navigation bar vertically, such that it no longer dominates
our vertical extent.
Move the gcc-announce subscription form from the navigation bar to the
body and restructure the lower half of the body into two columns, the
left one for announcements, the right one for subscription and search.
Disable the old logo and move the navigation bar from the left side to
the right side.
Adjust the Java and libstdc++ pages similarly by moving the navigation
bar to the right side.  Adjust the style in those two areas to our new
global style.

Gerald

Index: index.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/index.html,v
retrieving revision 1.562
diff -u -r1.562 index.html
--- index.html	5 Jun 2006 10:46:26 -0000	1.562
+++ index.html	5 Jun 2006 20:26:46 -0000
@@ -6,10 +6,12 @@
 <set-var navigation>
 <body>
 
-<img src="gcc.png" alt="" align="right" />
-
 <h1>GCC, the GNU Compiler Collection</h1>
 
+<!--
+<img src="gcc.png" alt="" align="right" />
+-->
+
 <p>The GNU Compiler Collection includes front ends for
 C, C++, Objective-C, <a href="fortran/">Fortran</a>,
 <a href="java/">Java</a>, and Ada, as well as libraries for these
@@ -85,6 +87,9 @@
 </dl>
 -->
 
+<table><tr>
+<td style="width: 50%; padding-right: 8px;" valign="top">
+
 <h2><small>News/Announcements</small></h2>
 
 <dl>
@@ -124,7 +129,24 @@
 | <a href="http://gcc.gnu.org/onlinedocs/g77/News.html">Fortran 77 status</a>
 | <a href="news.html">Older news and announcements...</a>
 
+</td><td style="width: 50%; padding-left: 12px; border-left: #3366cc thin solid;" valign="top">
+
+<h2><small>Get our announcements:</small></h2>
+
+  <form method="get" action="http://gcc.gnu.org/cgi-bin/ml-request">
+    <input type="hidden" name="digest"    value="off" />
+    <input type="hidden" name="operation" value="subscribe" />
+    <input type="hidden" name="listname"  value="gcc-announce" />
+    <input type="text"   name="username"  value="your e-mail address" size="20" style="font-size:90%;" />
+    <input type="submit" name="submit"    value="Subscribe" style="font-size:90%;" />
+  </form>
+
+<h2><small>Search our site</small></h2>
+
 <include searchbox.ihtml>
 
+</td>
+</tr></table>
+
 </body>
 </html>
Index: style.mhtml
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/style.mhtml,v
retrieving revision 1.89
diff -u -r1.89 style.mhtml
--- style.mhtml	5 Jun 2006 00:17:20 -0000	1.89
+++ style.mhtml	5 Jun 2006 20:34:25 -0000
@@ -12,23 +12,12 @@
   <unset-var XHTML>
 >
 
-;;; For the "java/" pages, we have a different color scheme.
+;;; For the "java/" pages, we want the navigation bar.
 
 <if <match <get-var env::PREPROCESS_FILE> "java/[^/]*.html">
  <group 
   <set-var navigation>
   <set-var BACKPATH="../">
-  <define-function nav-title-style> bgcolor="#B0D0FF" </define-function>
-  <define-function nav-body-style> bgcolor="#E0F0FF" </define-function>
-  <define-container h2>
-   <verbatim>
-    <h2 style="background-color:#B0D0FF">
-   </verbatim>
-   %body
-   <verbatim>
-    </h2>
-   </verbatim>
-  </define-container>
  >
 >
 
@@ -121,7 +110,17 @@
   <table border="0" cellspacing="0" cellpadding="2">
   <tr>
 
-  <td valign="top">                                       <!-- left frame -->
+  <td bgcolor="white" valign="top" width="99%">           <!-- main frame -->
+ >
+>
+
+%body
+
+<if <var-exists navigation>
+ <group
+  </td>                                            <!-- end of main frame -->
+
+  <td valign="top" style="padding-left: 36px;">            <!-- nav frame -->
   <table border="0" cellspacing="0" cellpadding="2" width="10em">
 
   <if <match <get-var env::PREPROCESS_FILE> "java/[^/]*.html">
@@ -148,17 +147,15 @@
   <if <match <get-var env::PREPROCESS_FILE> "libstdc../[^/]*.html">
    <group
     <tr><td><table cellspacing="0" width="100%">
-    <tr bgcolor="#CCCCCC"><td>
+    <tr><td <nav-title-style> >
     <b>libstdc++ v3</b>
     </td></tr>
-    <tr bgcolor="#EEEEEE"><td>
-    <p>
+    <tr><td <nav-body-style> >
     <a href="index.html">libstdc++ Home</a><br />
     <a href="../index.html">GCC Home</a><br />
     <a href="http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html">FAQ</a>
 (<a href="http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.txt">text</a>)<br />
     <a href="http://gcc.gnu.org/onlinedocs/libstdc++/documentation.html">Documentation</a>
-    </p>
     </td></tr>
     </table></td></tr>
    >
@@ -169,14 +166,12 @@
   <b>About GCC</b>
   </td></tr>
   <tr><td <nav-body-style> >
-  <p>
   <a href="<get-var BACKPATH>gccmission.html">Mission Statement</a><br />
   <a href="<get-var BACKPATH>releases.html">Releases</a><br />
   <a href="<get-var BACKPATH>snapshots.html">Snapshots</a><br />
   <a href="<get-var BACKPATH>lists.html">Mailing lists</a><br />
   <a href="http://gcc.gnu.org/onlinedocs/gcc/Contributors.html">Contributors</a><br />
   <a href="<get-var BACKPATH>steering.html">Steering Committee</a><br />
-  </p>
   </td></tr>
   </table></td></tr>
 
@@ -185,15 +180,12 @@
   <b>Documentation</b>
   </td></tr>
   <tr><td <nav-body-style> >
-  <p>
-  <a href="http://gcc.gnu.org/install/">Installation</a><br />
   · <a href="http://gcc.gnu.org/install/specific.html">Platforms</a><br />
   · <a href="http://gcc.gnu.org/install/test.html">Testing</a><br />
   <a href="<get-var BACKPATH>onlinedocs/">Manual</a><br />
   <a href="<get-var BACKPATH>faq.html">FAQ</a><br />
   <a href="http://gcc.gnu.org/wiki">Wiki</a><br />
   <a href="<get-var BACKPATH>readings.html">Further Readings</a>
-  </p>
   </td></tr>
   </table></td></tr>
  
@@ -202,10 +194,8 @@
   <b>Download</b>
   </td></tr>
   <tr><td <nav-body-style> >
-  <p>
   <a href="<get-var BACKPATH>mirrors.html">Mirror sites</a><br />
   <a href="http://gcc.gnu.org/install/binaries.html">Binaries</a>
-  </p>
   </td></tr>
   </table></td></tr>
 
@@ -214,11 +204,9 @@
   <b>"Live" Sources</b>
   </td></tr>
   <tr><td <nav-body-style> >
-  <p>
   <a href="<get-var BACKPATH>svn.html">SVN read access</a><br />
   <a href="<get-var BACKPATH>rsync.html">Rsync read access</a><br />
   <a href="<get-var BACKPATH>svnwrite.html">SVN write access</a><br />
-  </p>
   </td></tr>
   </table></td></tr>
 
@@ -227,7 +215,6 @@
   <b>Development</b>
   </td></tr>
   <tr><td <nav-body-style> >
-  <p>
   <a href="<get-var BACKPATH>develop.html">Development Plan</a><br />
   · (<a href="<get-var BACKPATH>develop.html#timeline">tentative timeline</a>)<br />
   <a href="<get-var BACKPATH>contribute.html">Contributing</a><br />
@@ -237,7 +224,6 @@
   <a href="<get-var BACKPATH>backends.html">Back ends</a><br />
   <a href="<get-var BACKPATH>extensions.html">Extensions</a><br />
   <a href="<get-var BACKPATH>benchmarks/">Benchmarks</a><br />
-  </p>
   </td></tr>
   </table></td></tr>
 
@@ -246,37 +232,15 @@
   <b>Bugs</b>
   </td></tr>
   <tr><td <nav-body-style> >
-  <p>
   <a href="<get-var BACKPATH>bugs.html#known">Known bugs</a><br />
   <a href="<get-var BACKPATH>bugs.html">How to report</a><br />
   <a href="http://gcc.gnu.org/bugzilla/">Bug database</a><br />
   <a href="<get-var BACKPATH>bugs/management.html">...Management</a>
-  </p>
-  <hr />
-  <form method="get" action="http://gcc.gnu.org/cgi-bin/ml-request">
-    <p>Get our announcements:<br />
-    <input type="hidden" name="digest"    value="off" />
-    <input type="hidden" name="operation" value="subscribe" />
-    <input type="hidden" name="listname"  value="gcc-announce" />
-    <input type="text"   name="username"  value="your e-mail address" size="20" style="font-size:90%;" />
-    <input type="submit" name="submit"    value="Subscribe!" />
-    </p>
-  </form>
   </td></tr>
   </table></td></tr>
 
   </table>
-  </td>                                            <!-- end of left frame -->
-
-  <td bgcolor="white" valign="top" width="99%">          <!-- right frame -->
- >
->
-
-%body
-
-<if <var-exists navigation>
- <group
-  </td>                                           <!-- end of right frame -->
+  </td>                                             <!-- end of nav frame -->
 
   </tr>
   </table>



More information about the Libstdc++ mailing list