summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-10-08 09:56:02 +0300
committerLars Wirzenius <liw@liw.fi>2023-10-09 18:29:42 +0300
commit76838e218f8c0943de43befce434fa8845a68e86 (patch)
tree9fb29d0b107d5e1edb78954e68e35270b5fc391c /check
parent934b1a53527e83e3d8d3dc4df992956332b512f7 (diff)
downloadsubplot-76838e218f8c0943de43befce434fa8845a68e86.tar.gz
fix: verify that we generate correct HTML
Sponsored-by: author
Diffstat (limited to 'check')
-rwxr-xr-xcheck5
1 files changed, 4 insertions, 1 deletions
diff --git a/check b/check
index 58407aa..d1edc07 100755
--- a/check
+++ b/check
@@ -320,7 +320,9 @@ def check_subplots(r):
base = os.path.basename(subplot)
base, _ = os.path.splitext(subplot)
base = os.path.join(output, base)
- r.docgen(subplot, doc_template, base + ".html", cwd=dirname)
+ html = base + ".html"
+ r.docgen(subplot, doc_template, html, cwd=dirname)
+ r.runcmd(["tidy", "-errors", html], cwd=dirname)
def tail(filename, numlines=100):
@@ -344,6 +346,7 @@ def check_tooling(r):
"plantuml",
"rustc",
"rustfmt",
+ "tidy",
]
for command in commands:
if not r.got_command(command):