Skip to content

Commit 84dc123

Browse files
Add 404 page
1 parent 30b44a0 commit 84dc123

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@
130130
<doxia-sitetoolsVersion>1.11.1</doxia-sitetoolsVersion>
131131
<pluginVersion>${project.version}</pluginVersion>
132132
<sitePluginVersion>3.7</sitePluginVersion>
133+
<!-- dotted property can not be used in .vm -->
134+
<fluidoVersion>${maven-fluido-skin.version}</fluidoVersion>
133135
<modelloNamespaceRuleVersion>2.1.0</modelloNamespaceRuleVersion>
134136
<modelloNamespaceReportVersion>2.0.0</modelloNamespaceReportVersion>
135-
<scmpublish.content>${project.build.directory}/staging</scmpublish.content>
137+
<scmpublish.content>${project.build.directory}/staging/versions</scmpublish.content>
136138
<!-- mono-module doesn't require site:stage for scm-publish -->
137139
<project.build.outputTimestamp>2022-10-23T15:41:47Z</project.build.outputTimestamp>
138140
<sisu-maven-plugin-version>0.9.0.M1</sisu-maven-plugin-version>

src/site/xdoc/404.xml.vm

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0"?>
2+
3+
<document xmlns="http://maven.apache.org/XDOC/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 https://maven.apache.org/xsd/xdoc-2.0.xsd">
5+
6+
<head>
7+
<title>Page Not Found</title>
8+
<!-- the base URL for all relative address in a document. -->
9+
<!-- Not Found page can be displayed in any level -->
10+
<base href="${project.url}" />
11+
<!-- need to import styles by hand since the generated html has them relative and before the base tag -->
12+
<link rel="stylesheet" href="${project.url}css/apache-maven-fluido-${fluidoVersion}.min.css" />
13+
<link rel="stylesheet" href="${project.url}css/site.css" />
14+
<link rel="stylesheet" href="${project.url}css/print.css" media="print" />
15+
<script type="text/javascript" src="${project.url}js/apache-maven-fluido-${fluidoVersion}.min.js" />
16+
<script type="text/javascript" src="/js/404-matomo-event.js" defer="defer"/>
17+
</head>
18+
19+
<body>
20+
<section name="Page Not Found">
21+
22+
<p>We're sorry, but the page you requested cannot be found. This may be because:</p>
23+
<ul>
24+
<li>The page has moved, was outdated, has removed or has not been created yet</li>
25+
<li>You typed the address incorrectly</li>
26+
<li>You followed a link from another site that pointed to this page</li>
27+
</ul>
28+
29+
<p>If you came to this page by following a broken link on our site,
30+
you can <a href="./issue-management.html">report an issue</a>
31+
or <a href="./scm.html">submitting a patch</a></p>
32+
33+
</section>
34+
</body>
35+
</document>

0 commit comments

Comments
 (0)