Skip to main content

Crate aphid

Crate aphid 

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

agent
Write AI-agent instruction files for an aphid site.
artifacts
Site-derived root artifacts: robots.txt, sitemap.xml, feed.xml, rss.xml. Each is a single file at the output root, derived purely from the RenderedSite (Site state plus rendered markdown bodies), and written by crate::output::OutputWriter.
config
content
favicon
markdown
output
render
scaffold
serve

Enums§

Error

Functions§

agent_init
Write AI-agent instruction files for tool into dir.
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.