Crate typstify

Crate typstify 

Source
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§

cmd
CLI command modules
server
Embedded development server with live reload support

Structs§

BuildStats
Build statistics.
Builder
Site builder that orchestrates the build process.
Config
Main configuration structure for Typstify.
ContentCollector
Content collector that walks directories and parses files.
Page
A fully processed page ready for rendering.
SiteContent
Collected site content.

Functions§

init_tracing
Initialize tracing with the specified verbosity level.