Skip to content

Commit

Permalink
Add 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Dec 11, 2022
1 parent 30b44a0 commit 84dc123
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pom.xml
Expand Up @@ -130,9 +130,11 @@
<doxia-sitetoolsVersion>1.11.1</doxia-sitetoolsVersion>
<pluginVersion>${project.version}</pluginVersion>
<sitePluginVersion>3.7</sitePluginVersion>
<!-- dotted property can not be used in .vm -->
<fluidoVersion>${maven-fluido-skin.version}</fluidoVersion>
<modelloNamespaceRuleVersion>2.1.0</modelloNamespaceRuleVersion>
<modelloNamespaceReportVersion>2.0.0</modelloNamespaceReportVersion>
<scmpublish.content>${project.build.directory}/staging</scmpublish.content>
<scmpublish.content>${project.build.directory}/staging/versions</scmpublish.content>
<!-- mono-module doesn't require site:stage for scm-publish -->
<project.build.outputTimestamp>2022-10-23T15:41:47Z</project.build.outputTimestamp>
<sisu-maven-plugin-version>0.9.0.M1</sisu-maven-plugin-version>
Expand Down
35 changes: 35 additions & 0 deletions src/site/xdoc/404.xml.vm
@@ -0,0 +1,35 @@
<?xml version="1.0"?>

<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd">

<head>
<title>Page Not Found</title>
<!-- the base URL for all relative address in a document. -->
<!-- Not Found page can be displayed in any level -->
<base href="${project.url}" />
<!-- need to import styles by hand since the generated html has them relative and before the base tag -->
<link rel="stylesheet" href="${project.url}css/apache-maven-fluido-${fluidoVersion}.min.css" />
<link rel="stylesheet" href="${project.url}css/site.css" />
<link rel="stylesheet" href="${project.url}css/print.css" media="print" />
<script type="text/javascript" src="${project.url}js/apache-maven-fluido-${fluidoVersion}.min.js" />
<script type="text/javascript" src="/js/404-matomo-event.js" defer="defer"/>
</head>

<body>
<section name="Page Not Found">

<p>We're sorry, but the page you requested cannot be found. This may be because:</p>
<ul>
<li>The page has moved, was outdated, has removed or has not been created yet</li>
<li>You typed the address incorrectly</li>
<li>You followed a link from another site that pointed to this page</li>
</ul>

<p>If you came to this page by following a broken link on our site,
you can <a href="./issue-management.html">report an issue</a>
or <a href="./scm.html">submitting a patch</a></p>

</section>
</body>
</document>

0 comments on commit 84dc123

Please sign in to comment.