From 548e0eb98b46e328a64215323962c11df17b49ce Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 2 Aug 2018 11:01:50 +1000 Subject: [PATCH] doc/user: add a custom 404 page 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 --- doc/user/.htaccess | 1 + doc/user/404.html | 12 ++++++++++++ doc/user/meson.build | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 doc/user/.htaccess create mode 100644 doc/user/404.html diff --git a/doc/user/.htaccess b/doc/user/.htaccess new file mode 100644 index 00000000..de377bfe --- /dev/null +++ b/doc/user/.htaccess @@ -0,0 +1 @@ +ErrorDocument 404 /404.html diff --git a/doc/user/404.html b/doc/user/404.html new file mode 100644 index 00000000..4a7a6372 --- /dev/null +++ b/doc/user/404.html @@ -0,0 +1,12 @@ + + Page not found + +

+ Oops, this page doesn't exist. Maybe it was moved in the recent + documentation cleanup. +

+

+ http://wayland.freedesktop.org/libinput/doc/latest/ +

+ + diff --git a/doc/user/meson.build b/doc/user/meson.build index 4e497465..f5a402e5 100644 --- a/doc/user/meson.build +++ b/doc/user/meson.build @@ -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',