- Attach 10 top news items to right side of the main page;

- provide some (incomplete yet) magick to automagically fetch attach
  news from the main GNOME project right below FreeBSD-specific news;
- add another example entry to the news page.
This commit is contained in:
Maxim Sobolev 2002-01-28 16:38:30 +00:00
parent 01a99eef1e
commit 39ca1702b8
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=11946
4 changed files with 216 additions and 111 deletions

View file

@ -11,13 +11,19 @@ SUBDIR= docs
SUBDIR+= images SUBDIR+= images
SUBDIR+= patches SUBDIR+= patches
DOCS= index.sgml DOCS= screenshots.sgml
DOCS+= screenshots.sgml
DOCS+= contact.sgml DOCS+= contact.sgml
DATA= newsflash.html DATA= index.html newsflash.html
CLEANFILES= newsflash.html CLEANFILES= index.html newsflash.html
index.html: index.xsl news.xml includes.xsl ../includes.xsl
${XSLTPROC} ${XSLTPROCOPTS} -o index.html \
${.CURDIR}/index.xsl ${.CURDIR}/news.xml
.if !defined(NO_TIDY)
-${TIDY} ${TIDYOPTS} index.html
.endif
newsflash.html: newsflash.xsl news.xml includes.xsl ../includes.xsl newsflash.html: newsflash.xsl news.xml includes.xsl ../includes.xsl
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \ ${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
@ -26,4 +32,8 @@ newsflash.html: newsflash.xsl news.xml includes.xsl ../includes.xsl
-${TIDY} ${TIDYOPTS} ${.TARGET} -${TIDY} ${TIDYOPTS} ${.TARGET}
.endif .endif
gnotices.xml: rdf-news.xsl gnotices.rdf
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
${.CURDIR}/rdf-news.xsl ${.CURDIR}/gnotices.rdf
.include "${WEB_PREFIX}/share/mk/web.site.mk" .include "${WEB_PREFIX}/share/mk/web.site.mk"

View file

@ -1,124 +1,201 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" [ <!-- $FreeBSD$ -->
<!ENTITY base CDATA "..">
<!ENTITY date "$FreeBSD$">
<!ENTITY title "FreeBSD GNOME Project">
<!ENTITY % gnomeincludes SYSTEM "includes.sgml"> %gnomeincludes;
<!ENTITY % includes SYSTEM "../includes.sgml"> %includes;
]>
<html>
&header;
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="1"
bgcolor="#000000" width="100%">
<tr>
<td>
<table cellpadding="4" cellspacing="0" border="0"
bgcolor="#ffcc66" width="100%">
<tr>
<td>
<p><font size="+1" color="#990000"><b>News</b></font> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<small><br>
<a href="newsflash.html">Announcements</a><br> <xsl:import href="../includes.xsl"/>
</small></p> <xsl:import href="includes.xsl"/>
<p><font size="+1" color="#990000"><b>GNOME on FreeBSD</b></font> <xsl:variable name="base" select="'..'"/>
<small><br> <xsl:variable name="date" select="'$FreeBSD$'"/>
<a href="http://www.FreeBSD.org/gnome/">GNOME on FreeBSD Home</a><br> <xsl:variable name="title" select="'FreeBSD GNOME Project'"/>
<a href="docs/faq.html#q1">Installation Instructions</a><br>
<a href="../ports/gnome.html">Available Applications</a><br>
<a href="docs/volunteer.html">How to Help</a><br>
<a href="docs/bugging.html">Reporting a Bug</a><br>
<a href="screenshots.html">Screenshots</a><br>
<a href="contact.html">Contact Us</a><br>
</small></p>
<p><font size="+1" color="#990000"><b>Documentation</b></font> <xsl:output type="html" encoding="iso-8859-1"
<small><br> doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
<a href="docs/faq.html">FAQ</a><br>
<a href="docs/porting.html">Creating Ports</a><br>
</small></p>
<p><font size="+1" color="#990000"><b>Resources</b></font> <xsl:template match="/">
<small><br> <html>
<a href="http://www.gnome.org/">GNOME Project</a><br> <xsl:copy-of select="$header1"/>
<a href="XXX">GNOME on GNU/Darwin</a><br>
</small></p>
<p><font size="+1" color="#990000"><b>Related Projects</b></font> <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"
<small><br> alink="#0000FF">
<a href="http://www.kde.org/">KDE Project</a><br>
<a href="http://freebsd.kde.org/">KDE on FreeBSD</a><br>
</small></p>
<form action="http://www.FreeBSD.org/cgi/search.cgi" method="get"> <xsl:copy-of select="$header2"/>
<small>Search for:<br>
<input type="text" name="words" size="10">
<input type="hidden" name="max" value="25">
<input type="hidden" name="source" value="www">
<input type="submit" value="Go">
</small>
</form>
</td> <table border="0" cellspacing="0" cellpadding="2">
</tr> <tr>
</table> <td valign="top">
</td> <table border="0" cellspacing="0" cellpadding="1"
</tr> bgcolor="#000000" width="100%">
</table> <tr>
</td> <td>
<table cellpadding="4" cellspacing="0" border="0"
bgcolor="#ffcc66" width="100%">
<tr>
<td>
<td></td> <p><font size="+1" color="#990000"><b>GNOME on FreeBSD</b></font>
<small><br/>
<a href="http://www.FreeBSD.org/gnome/">GNOME on FreeBSD Home</a><br/>
<a href="docs/faq.html#q1">Installation Instructions</a><br/>
<a href="../ports/gnome.html">Available Applications</a><br/>
<a href="docs/volunteer.html">How to Help</a><br/>
<a href="docs/bugging.html">Reporting a Bug</a><br/>
<a href="screenshots.html">Screenshots</a><br/>
<a href="contact.html">Contact Us</a><br/>
</small></p>
<!-- Main body column --> <p><font size="+1" color="#990000"><b>Documentation</b></font>
<small><br/>
<a href="docs/faq.html">FAQ</a><br/>
<a href="docs/porting.html">Creating Ports</a><br/>
</small></p>
<td align="left" valign="top" rowspan="2"> <p><font size="+1" color="#990000"><b>Resources</b></font>
<h2><font color="#990000">What is GNOME?</font></h2> <small><br/>
<a href="http://www.gnome.org/">GNOME Project</a><br/>
<a href="XXX">GNOME on GNU/Darwin</a><br/>
</small></p>
<p>The GNOME project was born as an effort to create an entirely free <p><font size="+1" color="#990000"><b>Related Projects</b></font>
desktop environment for free systems. From the start, the main <small><br/>
objective of GNOME has been to provide a user friendly suite of <a href="http://www.kde.org/">KDE Project</a><br/>
applications and an easy-to-use desktop. The FreeBSD GNOME Project <a href="http://freebsd.kde.org/">KDE on FreeBSD</a><br/>
strives to bring GNOME to the FreeBSD user.</p> </small></p>
<p>As with most GNU programs, GNOME has been designed to run on all <form action="http://www.FreeBSD.org/cgi/search.cgi" method="get">
modern Unix-like operating systems. Through the efforts of the <small>Search for:<br/>
FreeBSD GNOME Project and countless volunteers, those operating <input type="text" name="words" size="10"/>
systems include FreeBSD.</p> <input type="hidden" name="max" value="25"/>
<input type="hidden" name="source" value="www"/>
<input type="submit" value="Go"/>
</small>
</form>
<p>The GNOME project has expanded its objectives over the past few </td>
months to include addressing a number of problems in the existing </tr>
Unix infrastructure.</p> </table>
</td>
</tr>
</table>
</td>
<p>The GNOME project acts as an umbrella, the major components of <td></td>
GNOME are:</p>
<ul>
<li>The <a href="http://www.gnome.org">GNOME desktop</a>: An easy
to use windows-based environment for users.
<li>The <a href="http://developer.gnome.org">GNOME development
platform</a>: A rich collection of tools, libraries,
and components to develop powerful applications on Unix.
<li>The <a href="http://www.gnome.org/gnome-office">GNOME
Office</a>: A set of office productivity applications.
</ul>
<h2><font color="#990000">State of the port</font></h2> <!-- Main body column -->
<p>We currently support 4.x and 5-CURRENT FreeBSD Systems <td align="left" valign="top" rowspan="2">
for GNOME 1.4.1. Anything prior to FreeBSD 4.1 is not <h2><font color="#990000">What is GNOME?</font></h2>
supported. Most of GNOME has been ported to FreeBSD;
however, there's plenty left to do!</p>
<p><big><b>Newsflash!</b></big> We're UP! We're running! We're <p>The GNOME project was born as an effort to create an entirely free
churning out patches and ports as fast as we can make the keyboards desktop environment for free systems. From the start, the main
work! See <a href="newsflash.html">Newsflash page</a> for objective of GNOME has been to provide a user friendly suite of
details.</p> applications and an easy-to-use desktop. The FreeBSD GNOME Project
strives to bring GNOME to the FreeBSD user.</p>
</td> <p>As with most GNU programs, GNOME has been designed to run on all
</tr> modern Unix-like operating systems. Through the efforts of the
</table> FreeBSD GNOME Project and countless volunteers, those operating
&footer; systems include FreeBSD.</p>
</body>
</html> <p>The GNOME project has expanded its objectives over the past few
months to include addressing a number of problems in the existing
Unix infrastructure.</p>
<p>The GNOME project acts as an umbrella, the major components of
GNOME are:</p>
<ul>
<li>The <a href="http://www.gnome.org">GNOME desktop</a>: An easy
to use windows-based environment for users.</li>
<li>The <a href="http://developer.gnome.org">GNOME development
platform</a>: A rich collection of tools, libraries,
and components to develop powerful applications on Unix.</li>
<li>The <a href="http://www.gnome.org/gnome-office">GNOME
Office</a>: A set of office productivity applications.</li>
</ul>
<h2><font color="#990000">State of the port</font></h2>
<p>We currently support 4.x and 5-CURRENT FreeBSD Systems
for GNOME 1.4.1. Anything prior to FreeBSD 4.1 is not
supported. Most of GNOME has been ported to FreeBSD;
however, there's plenty left to do!</p>
</td>
<td></td>
<!-- Right-most column -->
<td valign="top">
<!-- News table -->
<table border="0" cellspacing="0" cellpadding="1"
bgcolor="#000000" width="100%">
<tr>
<td>
<table cellpadding="4" cellspacing="0" border="0"
bgcolor="#ffcc66" width="100%">
<tr>
<td valign="top">
<p><font size="+1" color="#990000"><b>FreeBSD GNOME News</b></font><br/>
<font size="-1">
Latest update:
<xsl:value-of
select="descendant::month[position() = 1]/name"/>
<xsl:text> </xsl:text>
<xsl:value-of
select="descendant::day[position() = 1]/name"/>,
<xsl:text> </xsl:text>
<xsl:value-of
select="descendant::year[position() = 1]/name"/>
<br/>
<!-- Pull in the 10 most recent news items -->
<xsl:for-each select="descendant::event[position() &lt;= 10]">
&#183; <a>
<xsl:attribute name="href">
newsflash.html#<xsl:call-template name="generate-event-anchor"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="count(child::title)">
<xsl:value-of select="title"/><br/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="p"/><br/>
</xsl:otherwise>
</xsl:choose>
</a>
</xsl:for-each>
<a href="newsflash.html">More...</a>
</font></p>
<p><font size="+1" color="#990000"><b>GNOME Project News</b></font><br/>
<font size="-1">
<xsl:for-each select="document('gnotices.xml')/descendant::event[position() &lt; 10]">
&#183; <a>
<xsl:attribute name="href">
<xsl:value-of select="url"/>
</xsl:attribute>
<xsl:value-of select="title"/><br/>
</a>
</xsl:for-each>
<a>
<xsl:attribute name="href">
<xsl:value-of select="document('gnotices.xml')/gnotices/base"/>
</xsl:attribute>More...
</a>
</font></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<xsl:copy-of select="$footer"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

View file

@ -35,6 +35,8 @@
<name>31</name> <name>31</name>
<event> <event>
<title>New FreeBSD GNOME site up and running</title>
<p>Brand new FreeBSD GNOME site is up and running. Many thanks <p>Brand new FreeBSD GNOME site is up and running. Many thanks
to all who make it possible, particularly <a to all who make it possible, particularly <a
href="mailto:marcus@marcuscom.com">Joe Marcus Clarke</a> href="mailto:marcus@marcuscom.com">Joe Marcus Clarke</a>
@ -44,6 +46,21 @@
</event> </event>
</day> </day>
<day>
<name>28</name>
<event>
<title>Several core GNOME components updated</title>
<p>Several core GNOME ports were updated to the latest versions
(gnomelibs, gnomecore, glade etc.) Please follow usual <a
href="docs/faq.html#q4">instructions</a> to update your system.
</p>
</event>
</day>
</month> </month>
</year> </year>
</news> </news>

View file

@ -22,7 +22,8 @@
<xsl:copy-of select="$header1"/> <xsl:copy-of select="$header1"/>
<body xsl:use-attribute-sets="att.body"> <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"
alink="#0000FF">
<xsl:copy-of select="$header2"/> <xsl:copy-of select="$header2"/>