Add basic 404 error page (#116)

pull/118/head
Ben Clark 2016-10-18 15:42:02 +01:00 committed by Thomas Dietrich
parent 0b6857ab06
commit 8b243c5e21
4 changed files with 59 additions and 39 deletions

14
404.md Normal file
View File

@ -0,0 +1,14 @@
---
layout: intro
title: Page not found
---
{% include base.html %}
# Error: 404
**The page you were looking for was not found!**
Please use one of the navigation items below to browse the current documentation for openHAB 2. If you feel that this page should exist, please [help us add it](https://github.com/openhab/openhab-docs/blob/gh-pages/README.md#contributing-to-the-documentation)!
{% include nav-main-bar.html %}

View File

@ -5,6 +5,7 @@ baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://docs.openhab.org" # the base hostname & protocol for your site
twitter_username: openhab
github_username: openhab
permalink: /404.html
# Build settings
markdown: kramdown
exclude: ["CNAME", "pom.xml", "README.md", "CONTRIBUTING.md"]

View File

@ -0,0 +1,37 @@
{% include base.html %}
<div class="row center targets">
<div class="col s12 m4 l4">
<a href="/tutorials/">
<div class="target target-beginner card">
<i class="mdi-action-explore icon-large"></i>
<div class="footer">
<div class="valign-wrapper">
<h2 class="valign">Tutorials</h2>
</div>
</div>
</div>
</a>
</div>
<div class="col s12 m4 l4">
<a href="/overview.html">
<div class="target target-advanced card">
<i class="mdi-file-folder-shared icon-large"></i>
<div class="footer">
<div class="valign-wrapper">
<h2 class="valign">User Manual</h2></div>
</div>
</div>
</a>
</div>
<div class="col s12 m4 l4">
<a href="/developers/">
<div class="target target-migration card">
<i class="mdi-device-developer-mode icon-large"></i>
<div class="footer">
<div class="valign-wrapper">
<h2 class="valign">Developer Guide</h2></div>
</div>
</div>
</a>
</div>
</div>

View File

@ -1,5 +1,6 @@
---
layout: intro
title: openHAB 2 Documentation
---
{% include base.html %}
@ -8,38 +9,5 @@ layout: intro
<h1>Welcome to the openHAB 2 Documentation!</h1>
<p>This documentation contains different sections. If you are new to openHAB 2, you might want to start with one of our <a href="tutorials">Tutorials</a> that guides you through different steps by an example. If you are looking for some specific information on how to use openHAB, the <a href="overview.html">User Manual</a> is the right place to go and if you plan to get started with your own developments, please refer to our <a href="developers">Developer Guide</a>.</p>
<p><strong>Note:</strong> This documentation is currently heavily worked on, so expect regular changes. If you feel that something important is missing, please <a href="https://github.com/openhab/openhab-docs/blob/gh-pages/README.md#contributing-to-the-documentation">help us improve the documentation</a>!
<div class="row center targets">
<div class="col s12 m4 l4">
<a href="tutorials">
<div class="target target-beginner card">
<i class="mdi-action-explore icon-large"></i>
<div class="footer">
<div class="valign-wrapper">
<h2 class="valign">Tutorials</h2>
</div>
</div>
</div></a>
</div>
<div class="col s12 m4 l4">
<a href="overview.html">
<div class="target target-advanced card">
<i class="mdi-file-folder-shared icon-large"></i>
<div class="footer">
<div class="valign-wrapper">
<h2 class="valign">User Manual</h2></div>
</div>
</div></a>
</div>
<div class="col s12 m4 l4">
<a href="developers">
<div class="target target-migration card">
<i class="mdi-device-developer-mode icon-large"></i>
<div class="footer">
<div class="valign-wrapper">
<h2 class="valign">Developer Guide</h2></div>
</div>
</div></a>
</div>
</div>
{% include nav-main-bar.html %}
</div>