diff options
Diffstat (limited to 'check')
-rwxr-xr-x | check | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -131,7 +131,7 @@ class Runcmd: **kwargs, ) - def docgen(self, md, output, **kwargs): + def docgen(self, md, template, output, **kwargs): """Run the Subplot document generator""" # GitLab CI, and other CI engines, runs tests under Docker, which uses @@ -155,6 +155,7 @@ class Runcmd: "--", f"--resources={os.path.abspath('share')}", "docgen", + f"--template={template}", md, f"--output={output}", ], @@ -271,7 +272,11 @@ def check_subplots(r): md = os.path.basename(md0) base, _ = os.path.splitext(md) + doc_template = None + for template in r.get_templates(md0): + if doc_template is None: + doc_template = template if template == "python": test_py = os.path.join(output, f"test-{base}.py") test_log = os.path.join(output, f"test-{base}.log") @@ -309,8 +314,8 @@ def check_subplots(r): base = os.path.basename(md) base, _ = os.path.splitext(md) base = os.path.join(output, base) - r.docgen(md, base + ".pdf", cwd=dirname) - r.docgen(md, base + ".html", cwd=dirname) + r.docgen(md, doc_template, base + ".pdf", cwd=dirname) + r.docgen(md, doc_template, base + ".html", cwd=dirname) def tail(filename, numlines=100): |