Documentation
¶
Overview ¶
Command crofty turns Markdown into a website you build and deploy to your own accounts. It wraps Hugo to build and deploys straight to your Cloudflare account over its API (no Node or Wrangler), and never talks to a server of ours — there isn't one.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
contract
Package contract is the crofty output contract (08 §2) expressed as code: the invariants `crofty doctor` checks the built site (dist/) against, the counterpart to package spec's input (Markdown) contract.
|
Package contract is the crofty output contract (08 §2) expressed as code: the invariants `crofty doctor` checks the built site (dist/) against, the counterpart to package spec's input (Markdown) contract. |
|
google
Package google is crofty's thin client for the Google APIs that answer "who reached my site?" — GA4 (the Data API: who visited, what they read) and Search Console (queries, pages, sitemaps).
|
Package google is crofty's thin client for the Google APIs that answer "who reached my site?" — GA4 (the Data API: who visited, what they read) and Search Console (queries, pages, sitemaps). |
|
id
Package id generates ULIDs — lexicographically sortable identifiers used for stable post ids (spec 06 §3-2) and workspace ids.
|
Package id generates ULIDs — lexicographically sortable identifiers used for stable post ids (spec 06 §3-2) and workspace ids. |
|
project
Package project resolves a crofty project on disk: the root, its crofty- specific config, and the working paths used by build and deploy.
|
Package project resolves a crofty project on disk: the root, its crofty- specific config, and the working paths used by build and deploy. |
|
runner
Package runner shells out to external tools (Hugo).
|
Package runner shells out to external tools (Hugo). |
|
secret
Package secret stores per-target credentials in the OS keychain (A5).
|
Package secret stores per-target credentials in the OS keychain (A5). |
|
spec
Package spec is the crofty Markdown contract (spec v0) expressed as code: the rules `crofty validate` checks a content file against.
|
Package spec is the crofty Markdown contract (spec v0) expressed as code: the rules `crofty validate` checks a content file against. |
|
theme
Package theme carries the default Hugo theme, embedded in the binary so a user only writes Markdown — they never have to fetch or wire up a theme.
|
Package theme carries the default Hugo theme, embedded in the binary so a user only writes Markdown — they never have to fetch or wire up a theme. |
Click to show internal directories.
Click to hide internal directories.