Skip to main content

load

Function load 

Source
pub fn load(content_dir: &Path) -> TopicClusters
Expand description

Loads _data/topics.toml, or an empty map.

Looked for beside content/ first — _data/ is a sibling of the content tree, not part of it, so it is not mistaken for a page — and then inside it, which is where a project that keeps everything under one directory will have put it.

Absence is the normal case and is silent. A file that exists but does not parse is reported on stderr and then ignored: a typo in curation data should not take a site build down with it.