[LON-CAPA-cvs] cvs: doc /build generate_web_pages.pl shell.html

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 12 Oct 2005 18:04:17 -0000


albertel		Wed Oct 12 14:04:17 2005 EDT

  Modified files:              
    /doc/build	generate_web_pages.pl shell.html 
  Log:
  - adding RSS link to front page
  
  
Index: doc/build/generate_web_pages.pl
diff -u doc/build/generate_web_pages.pl:1.26 doc/build/generate_web_pages.pl:1.27
--- doc/build/generate_web_pages.pl:1.26	Wed Oct  5 19:34:56 2005
+++ doc/build/generate_web_pages.pl	Wed Oct 12 14:04:17 2005
@@ -45,10 +45,11 @@
 
 # Call with: The title, breadcrumb, and content
 sub replaceText {
-    my ($title, $breadcrumb, $content) = @_;
+    my ($title, $links, $breadcrumb, $content) = @_;
 
     my $page = $shell;
     $page =~ s/\<!-- *title *--\>/$title/g;
+    $page =~ s/\<!-- *links *--\>/$links/g;
     $page =~ s/\<!-- *breadcrumb *--\>/$breadcrumb/g;
     $page =~ s/\<!-- *content *--\>/$content/g;
 
@@ -118,8 +119,10 @@
 
 $content .= "</ul>\n";
 
-my $index = replaceText("Install LON-CAPA", "Install LON-CAPA",
-    $content);
+$links='<link rel="alternate" type="application/rss+xml" title="CVS RSS" href="loncapa.rss" />';
+
+my $index = replaceText("Install LON-CAPA", $links, "Install LON-CAPA",
+			$content);
 
 print INDEX $index;
 close INDEX;
@@ -133,7 +136,7 @@
     $content = join '', <SOURCE>;
     close SOURCE;
 
-    $content = replaceText($title, '<a href="/">Install LON-CAPA</a> &gt; ' . $title,
+    $content = replaceText($title, '', '<a href="/">Install LON-CAPA</a> &gt; ' . $title,
 			   $content);
     open DEST, '>', $source.'.html';
     print DEST $content;
Index: doc/build/shell.html
diff -u doc/build/shell.html:1.2 doc/build/shell.html:1.3
--- doc/build/shell.html:1.2	Tue Aug 19 09:53:44 2003
+++ doc/build/shell.html	Wed Oct 12 14:04:17 2005
@@ -1 +1 @@
-<HTML><HEAD><title><!-- title --></title></HEAD><BODY BGCOLOR="#FFFFFF" LINK="#003333" ALINK="#339966" VLINK="#229944" onload=""><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=4 WIDTH="100%">  <TR>     <TD ROWSPAN=5 VALIGN=top> <P><IMG SRC="http://www.loncapa.org/images/edgegraphic.jpg" X-CLARIS-USEIMAGEWIDTH X-CLARIS-USEIMAGEHEIGHT ALIGN=bottom></P></TD>    <TD COLSPAN=3 VALIGN=top bgcolor="#CC6633"><img src="http://www.loncapa.org/images/student.jpg" width="600" height="85">     </TD>  </TR>  <TR>    <TD width=8 bgcolor="#CC6633"> <P>&nbsp;</P></TD>    <TD colspan=2 bgcolor="#FFFF99"> <P>      <A HREF="http://www.lon-capa.org/index.html">Home</A> &gt; <!-- breadcrumb --> </P>      <h1><font color="#006600"><!-- title --></font></h1>      <!-- content -->      </TD>  </TR>  <TR>     <td colspan=3 bgcolor="CC6633"><P>&nbsp;</P></td>  </tr>  <tr>     <td width=8><p>&nbsp;</p></td><td><P>Contact Us: <A HREF="mailto:korte@lon-capa.org">lon-capa@lon-capa.org</A></P>      </td>    <td rowspan=2 width=170><P><A HREF="http://www.lite.msu.edu"><IMG SRC="http://www.loncapa.org/images/LITElogo_text.gif" ALT="Laboratory for Instructional Technology in Education" WIDTH=78 HEIGHT=97 BORDER=0 ALIGN=bottom></A><A HREF="http://www.lite.msu.edu/"><IMG SRC="http://www.loncapa.org/images/liteani.gif" WIDTH=85 HEIGHT=97 BORDER=0 ALIGN=bottom></A></P></TD>  </TR>  <tr><td width=8><p>&nbsp;</p></td>    <td> <a href="http://www.itr.nsf.gov/"><img src="http://www.loncapa.org/images/NSF_logo.gif" width="116" height="56" alt="Funded by the National Science Foundation Information Technology Research" border="0"></a>       <a href="http://www.msu.edu/"><img src="http://www.loncapa.org/images/MSULOGO.gif" width="154" height="38" alt="Michigan State University" border="0"></a>     </TD>  </tr></TABLE></BODY></HTML>
\ No newline at end of file
+<HTML><HEAD><title><!-- title --></title> <!-- links --></HEAD><BODY BGCOLOR="#FFFFFF" LINK="#003333" ALINK="#339966" VLINK="#229944" onload=""><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=4 WIDTH="100%">  <TR>     <TD ROWSPAN=5 VALIGN=top> <P><IMG SRC="http://www.loncapa.org/images/edgegraphic.jpg" X-CLARIS-USEIMAGEWIDTH X-CLARIS-USEIMAGEHEIGHT ALIGN=bottom></P></TD>    <TD COLSPAN=3 VALIGN=top bgcolor="#CC6633"><img src="http://www.loncapa.org/images/student.jpg" width="600" height="85">     </TD>  </TR>  <TR>    <TD width=8 bgcolor="#CC6633"> <P>&nbsp;</P></TD>    <TD colspan=2 bgcolor="#FFFF99"> <P>      <A HREF="http://www.lon-capa.org/index.html">Home</A> &gt; <!-- breadcrumb --> </P>      <h1><font color="#006600"><!-- title --></font></h1>      <!-- content -->      </TD>  </TR>  <TR>     <td colspan=3 bgcolor="CC6633"><P>&nbsp;</P></td>  </tr>  <tr>     <td width=8><p>&nbsp;</p></td><td><P>Contact Us: <A HREF="mailto:korte@lon-capa.org">lon-capa@lon-capa.org</A></P>      </td>    <td rowspan=2 width=170><P><A HREF="http://www.lite.msu.edu"><IMG SRC="http://www.loncapa.org/images/LITElogo_text.gif" ALT="Laboratory for Instructional Technology in Education" WIDTH=78 HEIGHT=97 BORDER=0 ALIGN=bottom></A><A HREF="http://www.lite.msu.edu/"><IMG SRC="http://www.loncapa.org/images/liteani.gif" WIDTH=85 HEIGHT=97 BORDER=0 ALIGN=bottom></A></P></TD>  </TR>  <tr><td width=8><p>&nbsp;</p></td>    <td> <a href="http://www.itr.nsf.gov/"><img src="http://www.loncapa.org/images/NSF_logo.gif" width="116" height="56" alt="Funded by the National Science Foundation Information Technology Research" border="0"></a>       <a href="http://www.msu.edu/"><img src="http://www.loncapa.org/images/MSULOGO.gif" width="154" height="38" alt="Michigan State University" border="0"></a>     </TD>  </tr></TABLE></BODY></HTML>