Expand description
Typstify CLI Library
This library provides the core functionality for the Typstify static site generator CLI. It is designed to be used by the binary entry point while also exposing public APIs for documentation and integration purposes.
§Modules
cmd- Command implementations (build, watch, new, check)server- Embedded development server with live reload
§Example
use std::path::Path;
use typstify::cmd;
// Build a static site
cmd::build::run(Path::new("config.toml"), Path::new("public"), false).unwrap();Modules§
Structs§
- Build
Stats - Build statistics.
- Builder
- Site builder that orchestrates the build process.
- Config
- Main configuration structure for Typstify.
- Content
Collector - Content collector that walks directories and parses files.
- Page
- A fully processed page ready for rendering.
- Site
Content - Collected site content.
Functions§
- init_
tracing - Initialize tracing with the specified verbosity level.