doc/user: add a custom 404 page
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 2 Aug 2018 01:01:50 +0000 (11:01 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 2 Aug 2018 01:22:11 +0000 (11:22 +1000)
Things moved around, so let's have a custom 404 page where we can put
information in. This ist the barebones version, not sure if .htaccess is
supported.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
doc/user/.htaccess [new file with mode: 0644]
doc/user/404.html [new file with mode: 0644]
doc/user/meson.build

diff --git a/doc/user/.htaccess b/doc/user/.htaccess
new file mode 100644 (file)
index 0000000..de377bf
--- /dev/null
@@ -0,0 +1 @@
+ErrorDocument 404 /404.html
diff --git a/doc/user/404.html b/doc/user/404.html
new file mode 100644 (file)
index 0000000..4a7a637
--- /dev/null
@@ -0,0 +1,12 @@
+<html>
+    <head><title>Page not found</title></head>
+    <body>
+        <p>
+        Oops, this page doesn't exist. Maybe it was moved in the recent
+        documentation cleanup.
+        </p>
+        <p>
+        <a href="http://wayland.freedesktop.org/libinput/doc/latest/">http://wayland.freedesktop.org/libinput/doc/latest/</a>
+        </p>
+    </body>
+</html>
index 4e49746..f5a402e 100644 (file)
@@ -21,6 +21,8 @@ sphinx_conf_py = configure_file(input : 'conf.py.in',
                                install : false)
 
 src_extra = [
+       '.htaccess',
+       '404.html',
        # dot drawings
        'dot/seats-sketch.gv',
        'dot/seats-sketch-libinput.gv',