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

1 min read

pyssg.cli.common

Shared CLI helpers: builder construction, cache, one-shot build.

open_cache(site_dir: Path, no_cache: bool) -> Cache

A persistent FsCache under the site, or an ephemeral MemoryCache.

make_builder(site_dir: Path, cache: Cache | None = None) -> Builder

Configure a builder from the site's config + layout, apply plugins.

build_site(site_dir: Path, cache: Cache | None = None) -> BuildStats

Configure a builder and run one full build.