- 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+= patches
DOCS= index.sgml
DOCS+= screenshots.sgml
DOCS= screenshots.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
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
@ -26,4 +32,8 @@ newsflash.html: newsflash.xsl news.xml includes.xsl ../includes.xsl
-${TIDY} ${TIDYOPTS} ${.TARGET}
.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"

View file

@ -1,124 +1,201 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" [
<!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>
<!-- $FreeBSD$ -->
<p><font size="+1" color="#990000"><b>News</b></font>
<small><br>
<a href="newsflash.html">Announcements</a><br>
</small></p>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="../includes.xsl"/>
<xsl:import href="includes.xsl"/>
<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>
<xsl:variable name="base" select="'..'"/>
<xsl:variable name="date" select="'$FreeBSD$'"/>
<xsl:variable name="title" select="'FreeBSD GNOME Project'"/>
<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>
<xsl:output type="html" encoding="iso-8859-1"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
<p><font size="+1" color="#990000"><b>Resources</b></font>
<small><br>
<a href="http://www.gnome.org/">GNOME Project</a><br>
<a href="XXX">GNOME on GNU/Darwin</a><br>
</small></p>
<xsl:template match="/">
<html>
<xsl:copy-of select="$header1"/>
<p><font size="+1" color="#990000"><b>Related Projects</b></font>
<small><br>
<a href="http://www.kde.org/">KDE Project</a><br>
<a href="http://freebsd.kde.org/">KDE on FreeBSD</a><br>
</small></p>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"
alink="#0000FF">
<form action="http://www.FreeBSD.org/cgi/search.cgi" method="get">
<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>
<xsl:copy-of select="$header2"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<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>
<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">
<h2><font color="#990000">What is GNOME?</font></h2>
<p><font size="+1" color="#990000"><b>Resources</b></font>
<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
desktop environment for free systems. From the start, the main
objective of GNOME has been to provide a user friendly suite of
applications and an easy-to-use desktop. The FreeBSD GNOME Project
strives to bring GNOME to the FreeBSD user.</p>
<p><font size="+1" color="#990000"><b>Related Projects</b></font>
<small><br/>
<a href="http://www.kde.org/">KDE Project</a><br/>
<a href="http://freebsd.kde.org/">KDE on FreeBSD</a><br/>
</small></p>
<p>As with most GNU programs, GNOME has been designed to run on all
modern Unix-like operating systems. Through the efforts of the
FreeBSD GNOME Project and countless volunteers, those operating
systems include FreeBSD.</p>
<form action="http://www.FreeBSD.org/cgi/search.cgi" method="get">
<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>
<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>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<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>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>
<td></td>
<h2><font color="#990000">State of the port</font></h2>
<!-- Main body column -->
<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 align="left" valign="top" rowspan="2">
<h2><font color="#990000">What is GNOME?</font></h2>
<p><big><b>Newsflash!</b></big> We're UP! We're running! We're
churning out patches and ports as fast as we can make the keyboards
work! See <a href="newsflash.html">Newsflash page</a> for
details.</p>
<p>The GNOME project was born as an effort to create an entirely free
desktop environment for free systems. From the start, the main
objective of GNOME has been to provide a user friendly suite of
applications and an easy-to-use desktop. The FreeBSD GNOME Project
strives to bring GNOME to the FreeBSD user.</p>
</td>
</tr>
</table>
&footer;
</body>
</html>
<p>As with most GNU programs, GNOME has been designed to run on all
modern Unix-like operating systems. Through the efforts of the
FreeBSD GNOME Project and countless volunteers, those operating
systems include FreeBSD.</p>
<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>
<event>
<title>New FreeBSD GNOME site up and running</title>
<p>Brand new FreeBSD GNOME site is up and running. Many thanks
to all who make it possible, particularly <a
href="mailto:marcus@marcuscom.com">Joe Marcus Clarke</a>
@ -44,6 +46,21 @@
</event>
</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>
</year>
</news>

View file

@ -22,7 +22,8 @@
<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"/>