Skip to contents

Activating weft

weft_setup()
Activate weft for a document

Values in prose

Format computed values, with or without units.

Values by name

Write a values file, for a document that runs no R.

weft_values_write()
Write a values file

Wording that depends on values

plural()
Choose a plural form
lookup() brk()
Phrases chosen by key or by range
of_n() about() ci() pm() clamp()
Phrase functions
in_range()
Is a value inside a range?
claim()
Check a value in place

Checking wording

See which arms a document can choose, and what the last knit did.

arms()
List the arms of every governed span of a document
rehearse()
Knit a document under several cases and see which arms they choose
last_knit()
The records of the most recent knit

The dictionary

targets pipelines

tar_dict()
Targets for a project dictionary
tar_dict_deps()
Add the dictionary entries a pipeline reads to its targets

Static lints

print(<weft_findings>) lints()
Lint a project's documents and scripts without running them
checks() print(<weft_checks>)
Checks of one value, compared
lint_rules()
The static lints
label_seed()
Propose label words from the prose
recall_check() print(<weft_recall>)
Check how well the lints reproduce recorded findings

Commit gate and release checks

gate() print(<weft_gate>)
The commit gate
changes() print(<weft_changes>)
What changed in the ledgers since a commit
verify() print(<weft_verify>)
Check a project before release
status()
What weft has installed in a project

Setting up a project

use_weft()
Set up a project for weft: every installer, from one plan
use_setup()
Activate weft in a project's documents
use_quarto()
Set up a Quarto project for weft
use_dictionary()
Set up the project dictionary
use_hooks()
Install the commit-msg hook that runs the commit gate
use_ci()
Write the GitHub Actions workflow that runs weft's static checks
use_agent_docs()
Write the agent documents: an AGENTS.md block and a skill
agent_docs()
Print the agent documents of the installed package