]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: Convert 404 page to rST
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 21 Feb 2023 06:57:31 +0000 (07:57 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 21 Feb 2023 09:58:59 +0000 (10:58 +0100)
There is no markup equivalent for any of the <s/> or <del/> HTML tags, so this
is the only thing I came up with and it looks like it works.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
docs/404.html.in [deleted file]
docs/404.rst [new file with mode: 0644]
docs/css/libvirt.css
docs/meson.build

diff --git a/docs/404.html.in b/docs/404.html.in
deleted file mode 100644 (file)
index 0ac76f1..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <body>
-    <h1>404 page not found</h1>
-
-    <p>
-      Someone appears to have eaten the <del>penguin</del>
-      page you were looking for. You might want to try
-    </p>
-    <ul>
-      <li>going back to the <a href="https://libvirt.org/">home page</a> to find
-        a collection of links to interesting pages on this site</li>
-      <li>using the search box at the top right corner of the screen to
-        locate the content on this site or mailing list archives</li>
-    </ul>
-
-  </body>
-</html>
diff --git a/docs/404.rst b/docs/404.rst
new file mode 100644 (file)
index 0000000..927a3e6
--- /dev/null
@@ -0,0 +1,16 @@
+==================
+404 page not found
+==================
+
+.. role:: del
+   :class: del
+
+.. contents::
+
+Someone appears to have eaten the :del:`penguin` page you were looking
+for. You might want to try
+
+* going back to the `home page <https://libvirt.org/>`_ to find a collection
+  of links to interesting pages on this site
+* using the search box at the top right corner of the screen to
+  locate the content on this site or mailing list archives
index 097dfcbe8e51775b91a4c0af89bba57706f88790..82f95d4a6808def470b3361946c9bbe3b6d31dc5 100644 (file)
@@ -636,3 +636,7 @@ th p, td p {
 #contents p.topic-title {
     display: none;
 }
+
+span.del {
+    text-decoration: line-through;
+}
index a90c59866a71e06f84c089ffe8b4c035dd1b63d5..89ac93a9588413deadcf87e2c48487f1e26f27e9 100644 (file)
@@ -253,7 +253,8 @@ html_xslt_gen += {
 
 html_xslt_gen += {
   'name': '404',
-  'source': 'docs' / '404.html.in',
+  'file': docs_rst2html5_gen.process('404.rst'),
+  'source': 'docs' / '404.rst',
   'href_base': '/',
 }