climate-resource / input4mips_validation

Validation of input4MIPs data
https://input4mips-validation.readthedocs.io/en/latest/
Other
0 stars 1 forks source link

Dump caught errors out as html #42

Closed znichollscr closed 2 months ago

znichollscr commented 3 months ago

The motivation

As a user, it's hard to interrogate errors from validate-tree from the command-line output alone.

The proposed solution

Add the ability to dump the errors as a basic HTML page with expanding sections, something like the below

Failures:
<ol>
    <li>
        <details>
          <summary>filename</summary>
          <ol>
              <li>
                  <details>
                      <summary>error headline</summary>
                      Error full info
                  </details>
              </li>
          </ol>
        </details>
    </li>
</ol>
Passed:
<ol>
    <li>filename</li>
</ol>

Alternatives

Additional context