diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2020-08-04 14:33:15 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2020-08-04 17:06:33 +0100 |
commit | 08376431b46f291641f9a26f647589f2f68d27e0 (patch) | |
tree | 8f3a794161a7888c7517c078acef73bf2d980116 /scripts | |
parent | abab5c47f8060eddf0212084a1d70c4b1e3d92dd (diff) | |
download | libvirt-08376431b46f291641f9a26f647589f2f68d27e0.tar.gz |
docs: fix libvirt go-import metadata in pages and links in 404 page
The meson conversion lost the <meta> tags providing the go-import,
because the "$pagename" variable lost the .html suffix. Rather
than fix that, just change to using "$pagesrc" instead, as it is a
better fit.
The 404 page also needs to use absolute links to work correctly for
pages in sub-folders.
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/meson-html-gen.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/scripts/meson-html-gen.py b/scripts/meson-html-gen.py index dbf238de54..2731d734a7 100755 --- a/scripts/meson-html-gen.py +++ b/scripts/meson-html-gen.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 import argparse -import os import subprocess parser = argparse.ArgumentParser() @@ -15,12 +14,9 @@ parser.add_argument("htmlfile", type=str, help="path to generated HTML file") parser.add_argument("pagesrc", type=str, default="", nargs='?', help="(optional) path to source file used for edit this page") args = parser.parse_args() -name = os.path.basename(args.htmlfile).replace('.html', '') - html_tmp = subprocess.run( [ args.xsltproc, - '--stringparam', 'pagename', name, '--stringparam', 'pagesrc', args.pagesrc, '--stringparam', 'builddir', args.builddir, '--stringparam', 'timestamp', args.timestamp, |