A crate for parsing YAML or TOML files from a Hugo contents directory to produce a JSON representation of the key front matter and contents of Hugo documents. It’s main intent is to produce JSON to be used by Lunr (and Lunr-like packages) to support search on a static Hugo site.
Contains possible errors.
Represents the result of trying to parse a file.
Contains configuration options.
Converts a Hugo contents directory to JSON and writes it to a given location. If the output location is provided and it doesn’t exist, it will be created. If no output location it will write to stdout.
Given a contents directory it traverses all matching