docs: Convert 404 page to rST

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>
This commit is contained in:
Martin Kletzander 2023-02-21 07:57:31 +01:00
parent f0c1ce4382
commit a834735898
4 changed files with 22 additions and 20 deletions

View File

@ -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>

16
docs/404.rst Normal file
View File

@ -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

View File

@ -636,3 +636,7 @@ th p, td p {
#contents p.topic-title {
display: none;
}
span.del {
text-decoration: line-through;
}

View 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': '/',
}