pyssg is pre-1.0 and under active development - APIs, config, and themes may change.
pyssg.plugins.directory_loader

1 min read

pyssg.plugins.directory_loader

Directory loader plugin.

Walks content_dir and turns it into graph nodes: a DIRECTORY document for each folder and a content node for each file (delegated to the load_node hook, so the markdown plugin owns .md handling). It wires CONTAINMENT edges (parent -> child) which later milestones use for navigation/membership.

Pure: the tree walk is sorted for deterministic output (two builds of the same tree are byte-identical).

class DirectoryLoaderPlugin

Discovers the content tree into directory + file nodes.

DirectoryLoaderPlugin.apply(self, builder: Builder) -> None

directory_loader() -> DirectoryLoaderPlugin

Factory used in pyssg.config.py.