Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2012 21:55:45 +0000 (UTC)
From:      Glen Barber <gjb@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r40439 - head/en_US.ISO8859-1/htdocs
Message-ID:  <201212202155.qBKLtjo0029127@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gjb
Date: Thu Dec 20 21:55:44 2012
New Revision: 40439
URL: http://svnweb.freebsd.org/changeset/doc/40439

Log:
  Add a 404 page handler so we can use a presentable 404 message instead
  of the stock message.
  
  Requested by:	db

Added:
  head/en_US.ISO8859-1/htdocs/4xx.xml   (contents, props changed)
Modified:
  head/en_US.ISO8859-1/htdocs/Makefile

Added: head/en_US.ISO8859-1/htdocs/4xx.xml
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/en_US.ISO8859-1/htdocs/4xx.xml	Thu Dec 20 21:55:44 2012	(r40439)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//FreeBSD//DTD XHTML 1.0 Transitional-Based Extension//EN"
+"http://www.FreeBSD.org/XML/doc/share/xml/xhtml10-freebsd.dtd" [
+<!ENTITY title "Page not found.">
+]>
+
+<html xmlns="http://www.w3.org/1999/xhtml">;
+  <head>
+    <title>&title;</title>
+
+    <cvs:keyword xmlns:cvs="http://www.FreeBSD.org/XML/CVS">$FreeBSD$</cvs:keyword>;
+  </head>
+
+  <body class="navinclude.about">
+    <h2>Oh no.&nbsp;:(</h2>
+
+    <p>We could not find the page you requested.</p>
+
+    <p>Please try your request again, or use one of the links in
+      the navigation menu.</p>
+  </body>
+</html>

Modified: head/en_US.ISO8859-1/htdocs/Makefile
==============================================================================
--- head/en_US.ISO8859-1/htdocs/Makefile	Thu Dec 20 16:35:27 2012	(r40438)
+++ head/en_US.ISO8859-1/htdocs/Makefile	Thu Dec 20 21:55:44 2012	(r40439)
@@ -25,6 +25,7 @@ DOCS+= relnotes.xml
 DOCS+= send-pr.xml
 DOCS+= support.xml
 DOCS+= where.xml
+DOCS+= 4xx.xml
 
 XMLDOCS=	index:xsl:${XML_NEWS_NEWS}:
 DEPENDSET.index=transtable mirrors news press events \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212202155.qBKLtjo0029127>