nolibc / migi

An open-source, minimal static site generator written in Rust.
1 stars 0 forks source link

Checking configuration too late #1

Closed nolibc closed 1 year ago

nolibc commented 1 year ago

Migi currently does not correctly check configurations. The user configuration should be checked ahead of time (at the start of the migi running).

Right now, creating files with no syntax highlighting and then one or two with syntax highlighting required would cause the files that do not need to be syntax highlighted to be rendered properly into their respective HTML; however, the other files would not be writen out and would produce an error.

The expected behavior is that should something be wrong in the configurations file, Migi will stop and return an error.

nolibc commented 1 year ago

fixed: https://github.com/soystemd/migi/blob/main/src/markdown.rs#L47