Expand description
aphid — a static site generator for a blog and a wiki with shared
[[wiki-link]] resolution across both.
Public surface is intentionally narrow: build and [serve] drive the
two entry points of the CLI; internal modules own the data model and the
two-pass rendering pipeline.
§Example
Build a site from ./aphid.toml into the configured output directory:
use std::path::Path;
aphid::build(Path::new("aphid.toml"), Path::new("dist")).await?;Or run a development server with file watching and live reload:
use std::path::Path;
aphid::serve(Path::new("aphid.toml"), 3000).await?;Modules§
Enums§
Functions§
- build
- Build the site into the given output directory.
- new_
blog_ post - Create a new blog post in the site at
config_path. - new_
page - Create a new standalone page in the site at
config_path. - new_
wiki_ page - Create a new wiki page in the site at
config_path. - scaffold_
init - Initialize a site in an existing directory at
path. - scaffold_
new - Create a new site in a new directory named
name. - serve
- Serve the site with file watching and live reload.