martinthomson / i-d-template

A template for IETF internet draft git repositories
Other
208 stars 182 forks source link

Fix GitHub pages index when using mmark. #332

Closed dwaite closed 2 years ago

dwaite commented 2 years ago

Building of the index.html file for GitHub Pages is broken with the mmark tool due to the metadata being in TOML rather than YAML format.

This results in an index being generated without any extracted metadata.

This change adds the TOML tool and differentiates by the header characters ('%%%' vs '---') which format to parse.

dwaite commented 2 years ago

I tried to conditionally import and add more prescriptive errors, however this will be eaten by the current function. I can submit a change to output exceptions to stderr and emit a failure return code in main as a separate PR.

martinthomson commented 2 years ago

Thanks @dwaite, this is much nicer than what I had in mind :)