Module mdsite::file_scan[][src]

File scanner - scan directory tree to catalog markdown files and templates. This can be used either for generating an index, or for driving copy operations for static site gen.

Structs

MarkdownData

Markdown file info with data

MarkdownPath

Markdown file info

ScanOptions

Options for file scanner

ScanResults

Results of file scan

Functions

index_sources

scan folders to build index of markdown and template files

load_frontmatter

Collects parsed metadata from each file. If there are any errors reading the file (such as file permission problems), returns an Error. Does not return errors immediately if frontmatter isn't parsed correctly (such as missing required fields, or other syntax errors). Each frontmatter returned is a Result containing successful parsed object or an error for that file. This can be used to display file-specific error messages if desired.