A manual for the people who run the site
iris manual --path questions [--for <group>] [--out manual.pdf] [--typst-only manual.typ] [--slides slides.md] [--map map.svg]
[--edition owner|showcase] [--author <name>] [--preview-url <url>] [--repo-url <url>] [--chat-url <url>]
[--date YYYY-MM-DD]
The site’s content already says who comes, what they ask for, who
answers and what happens next. iris manual (or portal manual, the
same code) writes that down as a handbook for the board, the manager
and the crew: a PDF to hand over at the first meeting, and to print
again when the content changes.
It reads a checkout as iris check does (site.yaml,
aggregates.yaml and needs.yaml one level above the pages), refuses
what the site would refuse, and writes a Typst
document and its PDF.
Nothing in it is invented. Every name, field, button, state, mail and
contact is quoted from the content. The sentences around them are
portal’s own, written by hand in the site’s language (site.yaml
lang; see Languages). No model writes any of it, and
the same content always gives the same document.
What is in it
- The cover: the site’s title and wordmark (an SVG the repo holds; a white mark for a dark header is left out), the front door’s description, the date, the content’s commit and the portal version.
- How it works: the choices on the front door, how to read the
map, and the map itself (
iris map’s drawing) on the smallest paper (A4, A3 or A2) that keeps its words legible. - What people come with: one part per need in
needs.yaml. Who comes and what they want, the door they take, the fields they fill in, the button they press, the list the case lands in and the desk that takes it, every state in the business’s own words, the mails each state sends, and what moves a case on until it ends. - Who does what: every role the access policy names, in sentences: what they see, what they move, what they can do with a link of their own, whom they invite and who invites them.
- Bringing in your crew: who the first person is (the most
privileged group), an invitation step by step (the desk, the
fields, the mail as the content words it, how long the link lasts,
the passkey, where they land), a table of who invites whom, and the
states that make or end a membership (
grants:,revokes:). - What runs by itself, when there is any: schedules (
recurs:) and their clocks, notices (notice:) and who gets them, places (board:,places:) with room, waiting lists and calendars. - Changing something: “Suggest a change”, that every change is checked and can be undone, and who answers for which questions.
- From here: the front door’s contact, where the site’s mail comes from and where replies go.
When something is missing
The manual says what the content leaves out, rather than leave a gap:
| missing | the manual |
|---|---|
needs.yaml | says the needs are not written down yet; the map shows roles and onboarding only, and the later chapters move up |
any invite: | says nobody needs to sign in on an open site, or, with groups, that access is given where sign-in is managed |
| a group on an invite | has a “No group” row: the person gets an account and joins nothing |
mail: in site.yaml | says the invite link is on the list of sent invitations, to pass on by hand |
| a title | uses the name the site’s mail goes out under, then the profile’s organisation |
| a stylesheet colour | prints in slate; otherwise in the darkest --accent, --primary or --brand, deepened to read on paper |
| Typst | stops and says so; --typst-only still writes the source |
Files
--out manual.pdf (the default) writes only the PDF. --typst-only manual.typ writes the source with manual.map.svg (and
manual.wordmark.svg) beside it, for typst compile manual.typ; with
--out as well, it does both. --map map.svg writes the map too, so
one command keeps a repo’s map.svg and manual.pdf in step.
The fonts are free: Noto Serif and Noto Sans, then Adwaita Sans, then Typst’s own Libertinus Serif, whichever the machine has. Typst 0.12 or later.
The showcase edition
--edition showcase is for a sketch built under an invented name, to
attach where the work is shown. Before the contents it adds a short
spread: a working sketch under an invented name, used by nobody; where
it runs (--preview-url); what it covers and whether all of it passes
the lint; who made it (--author); and where the content is
(--repo-url, for a public repo). It names no real organisation and
claims nothing the content does not show.
After the roles it adds “The conversations”: with the site’s chat,
each role is a room of its own (Rooms), which a person
joins and leaves with the role, and where new cases and deadlines come
in. --chat-url <url> says where the chat can be tried. A site with
no groups has no such section, and neither does the owner’s edition.
To stay short enough to attach (twelve pages or so), chapters run on without a fresh sheet, and past three needs the first two are in full and the rest in a table.
For one group
--for verkstedet writes the handbook a group is handed when it
starts: the cover and opening name the group, and the book holds the
needs it handles or moves, its own role, how its members join, and the
series, deadlines, notices and boards on its desks. The front door and
the map stay whole, as the place it works in. Run it once per group to
hand each crew its own; any other name gets the site’s groups listed
back. --slides makes the same as a deck.
On the site
A site makes the same handbook for each of its groups at
/handbook/<group>. It is made the first time someone asks and kept
until the content changes. The group reads its own, and so do the
groups that invite people into it, since they hand it out. An invite
into a group links it (Mail), and so does the line of the
group’s pages on every page its members open. The host needs Typst, as
--out does; without it the invite goes out without the link.
/handbook/ is the site’s own, so the lint keeps content pages out
of it.
Slides
--slides slides.md writes the same handbook as a deck to talk
through at a meeting: the opening, the showcase spread in that
edition, the front door, the map, the needs in brief and a slide for
each, the roles, how people join, what runs by itself, and what comes
next. The sentences are the handbook’s, and the same content gives the
same deck.
It is markdown with slides split by --- and a header with the author
and date, which the terminal presenter slides and Marp show as they
are. The map’s SVG is written beside it as slides.map.svg. With
--out too, the PDF is written in the same run.
In the repo
A content repo’s README can carry the handbook beside the map:

**[The handbook](manual.pdf)**: how the site works, every need from the
door to the end, the roles, and how to bring in the crew.
By hand:
iris manual --path questions --out manual.pdf --map map.svg
Keeping it current in CI
An optional job beside lint-and-reload.yml that makes both again on
every push to main and commits them when they change. It needs Typst
on the runner and a secret with write access to the repo
(MANUAL_PUSH_TOKEN here); without Typst it says so and stops.
name: Manual
on:
push:
branches: [main]
paths: ["questions/**", "aggregates.yaml", "needs.yaml", "site.yaml", "custom.css"]
env:
PORTAL_RELEASE: v1.0.0 # as in lint-and-reload.yml
jobs:
manual:
runs-on: bare
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.MANUAL_PUSH_TOKEN }}
- name: Make map.svg and manual.pdf
run: |
set -eu
if ! command -v typst >/dev/null; then
echo "::warning::no typst on this runner - manual not made"
exit 0
fi
# The same iris lint-and-reload.yml fetches, kept where the
# runner may run it.
bin="/var/local/cargo-target/iris-$PORTAL_RELEASE"
[ -x "$bin" ] || { curl -sfL "${{ github.server_url }}/uhhm/portal/releases/download/$PORTAL_RELEASE/portal-x86_64-linux-iris" -o "$bin" && chmod +x "$bin"; }
"$bin" manual --path questions --out manual.pdf --map map.svg
- name: Commit them if they changed
run: |
set -eu
if git diff --quiet -- map.svg manual.pdf; then
echo "map and manual unchanged"
exit 0
fi
git config user.name "portal manual"
git config user.email "manual@invalid"
git add map.svg manual.pdf
git commit -m "Map and manual for $(git rev-parse --short HEAD)"
git push
The cover names the commit, so the PDF changes with every content
push and the job commits each time; the paths: filter keeps its own
commit from starting another run.