guile-dokgen-5336bf2c-4a1c

job succeeded

job
(lambda()
  `((task . ("maak-version-check" "maak-check" "maak-test" "maak-docs-check" "maak-manual"))
    (project . "guile-dokgen")
    (branch-name . "trunk")
    (clone-url . "https://github.com/jjba23/guile-dokgen.git")))
starting new job...
rundir='/etc/byggsteg/job-clone//guile-dokgen/trunk succeeded43 lines · 0.9s
branch='trunk'
if ! command -v git >/dev/null 2>&1; then
  echo 'byggsteg: git is not on this deployment PATH, so the clone cannot be updated' >&2
  exit 1
fi
if ! cd "$dir"; then
  echo "byggsteg: cannot enter the clone $dir" >&2
  exit 1
fi
root=$(git rev-parse --show-toplevel 2>/dev/null)
if [ "$root" != "$(pwd -P)" ]; then
  echo "byggsteg: $dir is not a git checkout; remove it and the next run clones it again" >&2
  exit 1
fi
if ! origin=$(git remote get-url origin 2>/dev/null); then
  echo "byggsteg: $dir has no origin remote to fetch $branch from" >&2
  exit 1
fi
before=$(git rev-parse --short HEAD 2>/dev/null) || before=none
attempt=1
while :; do
  if GIT_TERMINAL_PROMPT=0 git fetch --quiet origin "+refs/heads/$branch:refs/remotes/origin/$branch"; then
    break
  fi
  if [ "$attempt" -ge 3 ]; then
    echo "byggsteg: could not fetch $branch from $origin after 3 attempts; is the branch still there, and is the remote reachable?" >&2
    exit 1
  fi
  echo "byggsteg: fetching $branch from $origin failed; retrying in $((attempt * 2))s" >&2
  sleep $((attempt * 2))
  attempt=$((attempt + 1))
done
if ! git checkout --quiet --force -B "$branch" FETCH_HEAD; then
  echo "byggsteg: fetched $branch from $origin but could not check it out" >&2
  exit 1
fi
after=$(git rev-parse --short HEAD)
if [ "$before" = "$after" ]; then
  echo "byggsteg: $branch was already at $after"
else
  echo "byggsteg: $branch moved from $before to $after"
fi


byggsteg: trunk moved from 2d6d986 to b740d24
setupuname -a succeeded1 lines · 0.0s
Linux wolk-jjba 7.2.11-gnu #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux
setupgit log --name-status HEAD^..HEAD succeeded25 lines · 0.0s
commit b740d24a055e53962d7e7f7f9866d0eb6d3a86b5
Author: Josep Bigorra <jjbigorra@gmail.com>
Date:   Tue Dec 1 18:51:30 2026 +0100

    chore(release): v0.23.6
    
    Write 0.23.6 into the files that quote the version -- the source, the
    manual, the website and the README-- add the changelog section and the
    version history entry that say what the release is, and regenerate the
    API reference and the statistics from the tree being tagged.
    
    The website, @set VERSION and the README badge were left at 0.23.4 while
    0.23.5 was tagged, so they move two versions here; the badge the README
    points at is drawn in the same style as the last one it had.
    
    🤖 Generated with [ECA](https://eca.dev) (deepseek/deepseek-flash)
    
    Co-Authored-By: eca-agent <git@eca.dev>

M       CHANGELOG.org
M       README.org
A       badges/release-0.23.6.svg
M       manual/api/index.texi
M       manual/api/stats.texi
M       manual/main.texi
M       src/dokgen/cli.scm
M       website/index.html
runmaak version-check succeeded21 lines · 1.2s
--------------------------------------------------------------

Maak 1.0.0: the infinitely extensible command runner

Loading tasks from: /etc/byggsteg/job-clone/guile-dokgen/trunk/maak.scm

Executing Maak tasks: version-check


--------------------------------------------------------------

=> Running Maak task: version-check

  Check that every file that names the version names the same one.

This is the reading half of `sync-version', and what a pipeline runs: a copy
that drifted is a release that would ship two answers to what it is.

Every file that names the version says 0.23.6.;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/maak.scm
;;;       newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.6/etc/byggsteg/job-clone/guile-dokgen/trunk/maak.scm.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /etc/byggsteg/job-clone/guile-dokgen/trunk/maak.scm
;;; maak.scm:290:18: warning: non-literal format string
;;; maak.scm:291:16: warning: non-literal format string
;;; maak.scm:303:23: warning: non-literal format string
;;; maak.scm:973:0: warning: shadows previous definition of `version' at maak.scm:92:0
;;; maak.scm:977:0: warning: shadows previous definition of `version-check' at maak.scm:298:0
;;; maak.scm:1016:0: warning: shadows previous definition of `release' at maak.scm:311:0
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.6/etc/byggsteg/job-clone/guile-dokgen/trunk/maak.scm.go
testmaak check succeeded185 lines · 8.3s
--------------------------------------------------------------

Maak 1.0.0: the infinitely extensible command runner

Loading tasks from: /etc/byggsteg/job-clone/guile-dokgen/trunk/maak.scm

Executing Maak tasks: check


--------------------------------------------------------------

=> Running Maak task: check

  Compile every source and test module, so a syntax error fails the build.

Each file is compiled on its own, which is what makes one broken file name
itself rather than a pile of them.

  Execute command:
guix time-machine --channels=channels.scm -- shell -m manifest.scm -- sh -c 'set -eu
find src test -name '\''*.scm'\'' -print0 | xargs -0 -n 1 sh -c '\''guild compile -L ./src -L ./test -o "$(mktemp)" "$1"'\'' sh'

Executing: guix time-machine --channels=channels.scm -- shell -m manifest.scm -- sh -c 'set -eu
find src test -name '\''*.scm'\'' -print0 | xargs -0 -n 1 sh -c '\''guild compile -L ./src -L ./test -o "$(mktemp)" "$1"'\'' sh'
channels.scm:17:6: warning: channel 'jointhefreeworld' is not trusted
;;; note: source file ./src/dokgen/data.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/data.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/data.scm.go
;;; note: source file ./src/dokgen/exceptions.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/exceptions.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/exceptions.scm.go
;;; note: source file ./src/dokgen/diagrams.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/diagrams.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/diagrams.scm.go
;;; note: source file ./src/dokgen/writer.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/writer.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/writer.scm.go
;;; note: source file ./src/dokgen/utils.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/utils.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/utils.scm.go
wrote `/tmp/tmp.JCEaEfS8qM'
wrote `/tmp/tmp.vXgoa0k401'
wrote `/tmp/tmp.QwtTK1cMxb'
wrote `/tmp/tmp.OmgOo1dq3W'
wrote `/tmp/tmp.wzqqYWXteK'
wrote `/tmp/tmp.IMQMSdSbXA'
;;; note: source file ./src/dokgen/writer.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/writer.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/writer.scm.go
;;; note: source file ./src/dokgen/writer.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/writer.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/writer.scm.go
wrote `/tmp/tmp.SiaaEvjR8f'
;;; note: source file ./src/dokgen/exceptions.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/exceptions.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/exceptions.scm.go
wrote `/tmp/tmp.vgUr1EmYVP'
wrote `/tmp/tmp.SaQrvnao5C'
;;; note: source file ./src/dokgen/assets.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/assets.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/assets.scm.go
;;; note: source file ./src/dokgen/writer.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/writer.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/writer.scm.go
;;; note: source file ./src/dokgen/data.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/data.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/data.scm.go
;;; note: source file ./src/dokgen/exceptions.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/exceptions.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/exceptions.scm.go
;;; note: source file ./src/dokgen/diagrams.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/diagrams.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/diagrams.scm.go
;;; note: source file ./src/dokgen/stats.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/stats.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/stats.scm.go
;;; note: source file ./src/dokgen/templates/stexi.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/templates/stexi.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/templates/stexi.scm.go
;;; note: source file ./src/dokgen/utils.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/utils.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/utils.scm.go
;;; note: source file ./src/dokgen/commands.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/commands.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/commands.scm.go
;;; note: source file ./src/dokgen/assets.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/assets.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/assets.scm.go
;;; note: source file ./src/dokgen/writer.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/writer.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/writer.scm.go
;;; note: source file ./src/dokgen/data.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/data.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/data.scm.go
;;; note: source file ./src/dokgen/exceptions.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/exceptions.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/exceptions.scm.go
;;; note: source file ./src/dokgen/diagrams.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/diagrams.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/diagrams.scm.go
;;; note: source file ./src/dokgen/stats.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/stats.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/stats.scm.go
;;; note: source file ./src/dokgen/templates/stexi.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/templates/stexi.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/templates/stexi.scm.go
;;; note: source file ./src/dokgen/utils.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/utils.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/utils.scm.go
wrote `/tmp/tmp.PMknC36uKg'
wrote `/tmp/tmp.KUzYCWlh1O'
wrote `/tmp/tmp.B58eeIyShe'
wrote `/tmp/tmp.vgiYZYayU1'
wrote `/tmp/tmp.kuNmSngm5y'
wrote `/tmp/tmp.p13yZlzsqI'
wrote `/tmp/tmp.QOekwfXihD'
;;; note: source file ./src/dokgen/diagrams.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/diagrams.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/diagrams.scm.go
;;; note: source file ./src/dokgen/writer.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/writer.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/writer.scm.go
wrote `/tmp/tmp.STUQHjhQfX'
;;; note: source file ./src/dokgen/stats.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/stats.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/stats.scm.go
wrote `/tmp/tmp.eh4ywl53vE'
wrote `/tmp/tmp.TTbRqeeVDy'
;;; note: source file ./src/dokgen/utils.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/utils.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/utils.scm.go
;;; note: source file ./src/dokgen/assets.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/assets.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/assets.scm.go
;;; note: source file ./src/dokgen/writer.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/writer.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/writer.scm.go
wrote `/tmp/tmp.zZEn03mM0C'
wrote `/tmp/tmp.POPF2AveKA'
;;; note: source file ./src/dokgen/commands.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/commands.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/commands.scm.go
;;; note: source file ./src/dokgen/assets.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/assets.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/assets.scm.go
;;; note: source file ./src/dokgen/writer.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/writer.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/writer.scm.go
;;; note: source file ./src/dokgen/data.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/data.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/data.scm.go
;;; note: source file ./src/dokgen/exceptions.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/exceptions.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/exceptions.scm.go
;;; note: source file ./src/dokgen/diagrams.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/diagrams.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/diagrams.scm.go
;;; note: source file ./src/dokgen/stats.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/stats.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/stats.scm.go
;;; note: source file ./src/dokgen/templates/stexi.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/templates/stexi.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/templates/stexi.scm.go
;;; note: source file ./src/dokgen/utils.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/utils.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/utils.scm.go
;;; note: source file ./src/dokgen/data.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/data.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/data.scm.go
;;; note: source file ./src/dokgen/exceptions.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/exceptions.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/exceptions.scm.go
wrote `/tmp/tmp.Y1mxGlOuFd'
;;; note: source file ./src/dokgen/templates/stexi.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/templates/stexi.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/templates/stexi.scm.go
;;; note: source file ./src/dokgen/data.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/data.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/data.scm.go
;;; note: source file ./src/dokgen/exceptions.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/exceptions.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/exceptions.scm.go
;;; note: source file ./src/dokgen/diagrams.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/diagrams.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/diagrams.scm.go
;;; note: source file ./src/dokgen/writer.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/writer.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/writer.scm.go
;;; note: source file ./src/dokgen/utils.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/utils.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/utils.scm.go
wrote `/tmp/tmp.6ilL60T5g9'
wrote `/tmp/tmp.nerchEk4an'
wrote `/tmp/tmp.haG6dRp5uU'
wrote `/tmp/tmp.tBZ6FzT1pD'
testmaak test succeeded3954 lines · 3.3s
--------------------------------------------------------------

Maak 1.0.0: the infinitely extensible command runner

Loading tasks from: /etc/byggsteg/job-clone/guile-dokgen/trunk/maak.scm

Executing Maak tasks: test


--------------------------------------------------------------

=> Running Maak task: test

  Run every spec the test tree holds.

The runner discovers test/veritas/unit, loads each spec in a module of its own
and calls the `spec' it exports; it exits non-zero when one assertion failed,
so a red suite is a red task.  `-L ./test' is what makes a spec's own module
name, and the fixture libraries beside it, resolvable.

  Execute command:
guix time-machine --channels=channels.scm -- shell -m manifest.scm -- sh -c 'guile -L ./src -L ./test -c '\''((@ (veritas runner) run-tests))'\'''

Executing: guix time-machine --channels=channels.scm -- shell -m manifest.scm -- sh -c 'guile -L ./src -L ./test -c '\''((@ (veritas runner) run-tests))'\'''
channels.scm:17:6: warning: channel 'jointhefreeworld' is not trusted

scanning directories for unit tests...
scanning present working directory for unit tests...

shuffled the files with seed 721144384 (replay with VERITAS_SEED=721144384)

found unit tests: (assets-spec.scm diagrams-spec.scm stats-spec.scm stexi-spec.scm commands-spec.scm utils-spec.scm data-spec.scm)


running unit tests from file: assets-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 721144384 (replay with VERITAS_SEED=721144384)
+----------------------------------------------+
[📑 suite] The stylesheet a chapter is read with
  [🧪 test] a printed page is left as a page and not as a screen
    ✅ got: @media print
  [🧪 test] the code a definition carries can be copied
    [⚙️ assert] the button beside a block of code
    ✅ got: .dk-code-copy
  [🧪 test] a module's overview is an outline a reader can scan
    [⚙️ assert] the rows the overview is read in
    ✅ got: ul.dk-outline
  [🧪 test] a long page says how far the reader has read
    ✅ got: .dk-progress
  [🧪 test] a single-page manual drops the body's table of contents
    ✅ got: .region-contents#SEC_Contents
  [🧪 test] each definition is a card a reader reads one at a time
    ✅ got: dl.def-block
  [🧪 test] a narrow page keeps the index in a drawer
    ✅ got: translateX(-103%)
  [🧪 test] the surfaces that sit over the page are blurred
    ✅ got: backdrop-filter
  [🧪 test] the page follows the reader's own choice of light or dark
    ✅ got: prefers-color-scheme
  [🧪 test] a definition opens the source it is read from
    [⚙️ assert] the panel the source is folded into
    ✅ got: .dk-source
    [⚙️ assert] the colour the source is read in
    ✅ got: .dk-tok-keyword
+----------------------------------------------+
[📑 suite] The script a chapter is read with
  [🧪 test] the overview becomes the outline of the module
    [⚙️ assert] the list is rebuilt as rows
    ✅ got: dk-outline
  [🧪 test] a diagram is drawn in the page's own colours
    [⚙️ assert] mermaid is given variables, not a stock theme
    ✅ got: themeVariables
    [⚙️ assert] one place decides what a diagram is made of
    ✅ got: function diagramTheme
    [⚙️ assert] the colours are read from the stylesheet
    ✅ got: "--dk-accent"
  [🧪 test] the index holds the definitions by the id their anchors carry
    ✅ got: def-block
  [🧪 test] the index takes the place of the body's table of contents
    [⚙️ assert] the body's own list is the one folded
    ✅ got: ul.mini-toc
    [⚙️ assert] the page says the index is up
    ✅ got: dk-has-index
  [🧪 test] a diagram follows the page between light and dark
    [⚙️ assert] the toggle draws what it drew again
    ✅ got: function redrawDiagrams
    [⚙️ assert] the theme button calls it
    ✅ got: redrawDiagrams();
  [🧪 test] a module page says where it is and what is next
    [⚙️ assert] the trail is the script's
    ✅ got: dk-trail
    [⚙️ assert] so is the pair of links
    ✅ got: dk-pager
    [⚙️ assert] and it has a place in the page
    ✅ got: .dk-pager
  [🧪 test] the whole manual is a keystroke from any page
    [⚙️ assert] one index is written beside the chapter
    ✅ got: dokgen-index.json
    [⚙️ assert] the filter says where else to look
    ✅ got: Elsewhere in the manual
    [⚙️ assert] the filter is one keystroke away
    ✅ got: event.key === "/"
    [⚙️ assert] the box says what it searches
    ✅ got: Search this page and the manual
    [⚙️ assert] and which key reaches it
    ✅ got: press /
  [🧪 test] a name is found by the initials of its words
    [⚙️ assert] a filter that does not need every letter
    ✅ got: function subsequence
    [⚙️ assert] the index says how much of it matched
    ✅ got: visible + " of "
  [🧪 test] an anchor is named the way texi2any names it
    [⚙️ assert] one escape for every link the page builds
    ✅ got: function htmlTarget
  [🧪 test] a map too wide for the page is scrolled, not shrunk
    [⚙️ assert] the map keeps its own size
    ✅ got: .dk-map svg
    [⚙️ assert] the script marks the map when it draws it
    ✅ got: dk-map
  [🧪 test] the reader's place is found without measuring every card
    [⚙️ assert] a search over offsets measured once
    ✅ got: marks[middle].at
  [🧪 test] a definition is a keypress away
    [⚙️ assert] j for the next definition
    ✅ got: event.key === "j"
    [⚙️ assert] t for the top of the page
    ✅ got: event.key === "t"
  [🧪 test] the page follows the system until the reader chooses a theme
    [⚙️ assert] only a choice the reader made is read back
    ✅ got: function savedTheme
    [⚙️ assert] a change while the page is open is heard
    ✅ got: function followSystemTheme
    [⚙️ assert] on the colour scheme the system reports
    ✅ got: addEventListener("change"
    [⚙️ assert] starting on a theme is told apart from choosing one
    ✅ got: applyTheme(theme, chosen)
    [⚙️ assert] the button remembers the reader's choice
    ✅ got: ", true)
  [🧪 test] a page that holds its own sections is read as a tree of its headings
    [⚙️ assert] the chapters are the top of the tree
    ✅ got: h2.chapter
    [⚙️ assert] the page's own sections decide the rest
    ✅ got: subsection-level-extent
  [🧪 test] a definition the build did not label is still a card
    [⚙️ assert] the card class is put back
    ✅ got: classList.add("def-block")
  [🧪 test] the source a panel reveals is coloured
    [⚙️ assert] every token gets a class
    ✅ got: dk-tok-
    [⚙️ assert] a comment is told apart
    ✅ got: kind = "comment"
    [⚙️ assert] the forms that matter are named
    ✅ got: define-record-type
  [🧪 test] a source panel names the file it came from
    [⚙️ assert] the caption belongs to the panel
    ✅ got: dk-source-file
  [🧪 test] a definition marked to carry its source opens a panel
    [⚙️ assert] the panel is the script's
    ✅ got: dk-source
    [⚙️ assert] the marker is found by its escaped id
    ✅ got: dk_005fsource_005f
  [🧪 test] a block of code can be copied, not only a signature
    ✅ got: Copy the source of this definition
  [🧪 test] a definition that matches the filter keeps the path to it
    ✅ got: group.parent.li.hidden
  [🧪 test] a diagram the renderer left as source is drawn
    [⚙️ assert] the bundled renderer is loaded
    ✅ got: dokgen-mermaid.js
    [⚙️ assert] the diagram gets a plate of its own
    ✅ got: dk-diagram
  [🧪 test] the plate under a diagram is a surface, not a sheet of white
    [⚙️ assert] it is the page's card colour
    ✅ got: background: var(--dk-card);
    [⚙️ assert] the old white plate is gone
    ✅ got: #f
+----------------------------------------------+
[📑 suite] Writing the assets beside the chapter
  [🧪 test] the stylesheet lands beside the chapter
    ✅ got: #t
  [🧪 test] the bundled renderer is copied beside them
    ✅ got: #t
  [🧪 test] the files hold what the module says, not what the tree holds
    [⚙️ assert] the stylesheet written is the module's
    ✅ got: /* dokgen.css --- the presentation of an API chapter.
 *
 * SPDX-License-Identifier: MIT
 * Copyright © Josep Bigorra <jjbigorra@gmail.com>
 *
 * dokgen writes this file beside the Texinfo chapter it generates.  It
 * turns what texi2any emits into a page of reference documentation: one
 * index down the side with the sections and every definition, a card per
 * definition, a signature that can be copied, the source of a definition
 * behind a panel a reader opens, a light and a dark page, and diagrams
 * that sit on a plate of their own.
 *
 * Nothing here is required: the chapter is complete Texinfo without it,
 * and Info and print output never see a line of it.  Every rule is either
 * a `dk-' class that the script adds or a selector texi2any is known to
 * emit.
 */

:root {
    --dk-bg: #faf7f2;
    --dk-fg: #232019;
    --dk-muted: #6d6457;
    --dk-card: #fffdf9;
    --dk-signature: #f3ece1;
    --dk-code: #f6f0e6;
    --dk-border: #e3d8c8;
    --dk-accent: #a86a3c;
    --dk-accent-strong: #85502a;
    --dk-accent-soft: rgba(168, 106, 60, 0.09);
    --dk-tok-comment: #8b8274;
    --dk-tok-string: #6f7a4c;
    --dk-tok-number: #8a5f3d;
    --dk-tok-constant: #7c6090;
    --dk-tok-keyword: #96585d;
    --dk-tok-special: #5b6b8d;
    --dk-tok-paren: #a99d8d;
    --dk-blur: 14px;
    --dk-radius: 8px;
    --dk-sidebar: 17rem;
    --dk-bar: 3.25rem;
    --dk-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --dk-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --dk-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    --dk-ease: cubic-bezier(0.2, 0.6, 0.3, 1);
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --dk-bg: #171411;
        --dk-fg: #ece5da;
        --dk-muted: #a99d8c;
        --dk-card: #1e1a15;
        --dk-signature: #272119;
        --dk-code: #241f19;
        --dk-border: #3a3127;
        --dk-accent: #d7a173;
        --dk-accent-strong: #e6c0a0;
        --dk-accent-soft: rgba(215, 161, 115, 0.12);
        --dk-tok-comment: #8e8577;
        --dk-tok-string: #a6bc8b;
        --dk-tok-number: #d9a878;
        --dk-tok-constant: #c2a8d6;
        --dk-tok-keyword: #dda0a0;
        --dk-tok-special: #9cb2d6;
        --dk-tok-paren: #6d6357;
    }
}

[data-dk-theme="light"] {
    --dk-bg: #faf7f2;
    --dk-fg: #232019;
    --dk-muted: #6d6457;
    --dk-card: #fffdf9;
    --dk-signature: #f3ece1;
    --dk-code: #f6f0e6;
    --dk-border: #e3d8c8;
    --dk-accent: #a86a3c;
    --dk-accent-strong: #85502a;
    --dk-accent-soft: rgba(168, 106, 60, 0.09);
    --dk-tok-comment: #8b8274;
    --dk-tok-string: #6f7a4c;
    --dk-tok-number: #8a5f3d;
    --dk-tok-constant: #7c6090;
    --dk-tok-keyword: #96585d;
    --dk-tok-special: #5b6b8d;
    --dk-tok-paren: #a99d8d;
    color-scheme: light;
}

[data-dk-theme="dark"] {
    --dk-bg: #171411;
    --dk-fg: #ece5da;
    --dk-muted: #a99d8c;
    --dk-card: #1e1a15;
    --dk-signature: #272119;
    --dk-code: #241f19;
    --dk-border: #3a3127;
    --dk-accent: #d7a173;
    --dk-accent-strong: #e6c0a0;
    --dk-accent-soft: rgba(215, 161, 115, 0.12);
    --dk-tok-comment: #8e8577;
    --dk-tok-string: #a6bc8b;
    --dk-tok-number: #d9a878;
    --dk-tok-constant: #c2a8d6;
    --dk-tok-keyword: #dda0a0;
    --dk-tok-special: #9cb2d6;
    --dk-tok-paren: #6d6357;
    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--dk-bar) + 1.5rem);
    background: var(--dk-bg);
}

/* The wash of accent behind the page is a layer of its own, fixed once.
   Painted as the body's background with background-attachment: fixed it
   is repainted on every scroll frame, which a page of five hundred
   definitions cannot afford. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(120% 80% at 12% -10%, color-mix(in srgb, var(--dk-accent) 7%, transparent), transparent 62%);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .dk-index,
    .dk-code-copy,
    .dk-toggle::before {
        transition: none;
    }
}

/* --- the page before the script builds the index -------------------- */

/* The script adds `dk-has-index' and the rules below take over.  Until
   it runs, and for a reader who never runs it, this is the page: the
   same type and colours, a readable column, and a body table of contents
   with room for its nested levels. */

body:not(.dk-has-index) {
    box-sizing: border-box;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(1.1rem, 3vw, 2.8rem) 6rem;
    color: var(--dk-fg);
    background-color: var(--dk-bg);
    font-family: var(--dk-sans);
    font-size: 1rem;
    line-height: 1.68;
}

body:not(.dk-has-index) h1.top,
body:not(.dk-has-index) h1.settitle,
body:not(.dk-has-index) h2.chapter,
body:not(.dk-has-index) h3.section,
body:not(.dk-has-index) h3.heading,
body:not(.dk-has-index) h4.subsection {
    color: var(--dk-fg);
    font-family: var(--dk-serif);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

body:not(.dk-has-index) h1.settitle {
    margin: 1.8rem 0 0;
    font-size: clamp(2rem, 4vw, 2.75rem);
}

body:not(.dk-has-index) h1.top,
body:not(.dk-has-index) h2.chapter {
    margin: 2.4rem 0 1rem;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

body:not(.dk-has-index) h3.section {
    margin: 2.2rem 0 0.8rem;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

body:not(.dk-has-index) h3.heading,
body:not(.dk-has-index) h4.subsection {
    margin: 2rem 0 0.7rem;
    font-size: 1.25rem;
}

body:not(.dk-has-index) a {
    color: var(--dk-accent-strong);
    text-underline-offset: 0.18em;
}

body:not(.dk-has-index) a:hover {
    color: var(--dk-accent);
}

body:not(.dk-has-index) p {
    max-width: 74ch;
}

.nav-panel .nav-button {
    white-space: nowrap;
}

.nav-panel .nav-button + .nav-button {
    margin-left: 0.35rem;
}

.nav-panel a {
    color: var(--dk-muted);
    font-weight: 400;
    text-decoration: none;
    border-bottom: 1px dotted var(--dk-border);
}

.nav-panel a:hover {
    color: var(--dk-accent-strong);
    border-bottom-color: currentColor;
}

body:not(.dk-has-index) #SEC_Contents {
    margin: 2rem 0 2.6rem;
    padding: 1rem 1.2rem;
    background: var(--dk-card);
    border: 1px solid var(--dk-border);
    border-radius: var(--dk-radius);
}

body:not(.dk-has-index) #SEC_Contents .contents-heading {
    margin-top: 0;
    font-size: 1.35rem;
}

body:not(.dk-has-index) #SEC_Contents ul {
    padding-left: 1.1rem;
}

body:not(.dk-has-index) #SEC_Contents li {
    margin: 0.18rem 0;
}

body:not(.dk-has-index) #SEC_Contents a {
    text-decoration: none;
    overflow-wrap: anywhere;
}

body:not(.dk-has-index) ul.mini-toc {
    margin: 1rem 0 1.8rem;
    padding: 0.8rem 1.1rem 0.8rem 2rem;
    background: var(--dk-card);
    border: 1px solid var(--dk-border);
    border-radius: var(--dk-radius);
}

body:not(.dk-has-index) h3.heading + ol.enumerate {
    margin: 1rem 0 1.8rem;
    padding: 1.1rem 1.35rem 1.1rem 2.6rem;
    background: var(--dk-card);
    border: 1px solid var(--dk-border);
    border-radius: var(--dk-radius);
}

body:not(.dk-has-index) h3.heading + ol.enumerate li {
    margin: 0.45rem 0;
}

body:not(.dk-has-index) h3.heading + ol.enumerate li::marker {
    color: var(--dk-accent);
    font-weight: 650;
}

body:not(.dk-has-index) div.example {
    margin: 1rem 0;
}

body:not(.dk-has-index) pre {
    max-width: 100%;
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    overflow-x: auto;
    color: var(--dk-fg);
    background: var(--dk-signature);
    border: 1px solid var(--dk-border);
    border-radius: 6px;
    font-size: 0.86rem;
    line-height: 1.6;
}

body:not(.dk-has-index) table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

/* --- the page, once the script has built the index ------------------ */

body.dk-has-index {
    box-sizing: border-box;
    max-width: 1120px;
    margin-left: var(--dk-sidebar);
    margin-right: 0;
    padding: 0 clamp(1.1rem, 3vw, 2.8rem) 6rem;
    color: var(--dk-fg);
    background-color: var(--dk-bg);
    font-family: var(--dk-sans);
    font-size: 1rem;
    line-height: 1.68;
}

body.dk-has-index h2.chapter,
body.dk-has-index h3.section,
body.dk-has-index h3.heading,
body.dk-has-index h4.subsection,
body.dk-has-index .anchor,
body.dk-has-index dl.def-block {
    scroll-margin-top: calc(var(--dk-bar) + 1.5rem);
}

body.dk-has-index h1.top,
body.dk-has-index h2.chapter,
body.dk-has-index h3.section,
body.dk-has-index h3.heading,
body.dk-has-index h4.subsection {
    color: var(--dk-fg);
    font-family: var(--dk-serif);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

body.dk-has-index h1.top,
body.dk-has-index h2.chapter {
    margin: 2.8rem 0 1rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
}

body.dk-has-index h1.top {
    margin-top: 0;
}

body.dk-has-index h3.section {
    margin: 2.6rem 0 0.9rem;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}

body.dk-has-index h3.heading {
    margin: 2.4rem 0 0.8rem;
    font-size: clamp(1.3rem, 1.8vw, 1.5rem);
}

body.dk-has-index h4.subsection {
    margin: 2.1rem 0 0.7rem;
    font-size: 1.25rem;
}

/* The reading guide on a chapter landing page: a short numbered list in
   a card, not another copy of the index. */

body.dk-has-index h3.heading + ol.enumerate {
    margin: 1rem 0 1.8rem;
    padding: 1.1rem 1.35rem 1.1rem 2.6rem;
    background: var(--dk-card);
    border: 1px solid var(--dk-border);
    border-radius: var(--dk-radius);
}

body.dk-has-index h3.heading + ol.enumerate li {
    margin: 0.45rem 0;
}

body.dk-has-index h3.heading + ol.enumerate li::marker {
    color: var(--dk-accent);
    font-weight: 650;
}

body.dk-has-index a {
    color: var(--dk-accent-strong);
    text-decoration-color: color-mix(in srgb, var(--dk-accent) 40%, transparent);
    text-underline-offset: 0.18em;
}

body.dk-has-index a:hover {
    color: var(--dk-accent);
}

body.dk-has-index p {
    max-width: 74ch;
}

/* The sentence that says what the chapter is. */

h1.top + p,
h2.chapter + p {
    max-width: 64ch;
    margin: 0 0 2.4rem;
    padding-bottom: 1.7rem;
    border-bottom: 1px solid var(--dk-border);
    color: var(--dk-muted);
    font-family: var(--dk-serif);
    font-size: clamp(1.12rem, 1.5vw, 1.3rem);
    line-height: 1.62;
}

/* The one index replaces the list texi2any writes into the body.  It is
   hidden only after the script has built its own, so a reader without
   JavaScript keeps a table of contents. */

body.dk-has-index ul.mini-toc {
    display: none;
}

/* The manual's title is in the bar above every page; on the page that
   carries it, it does not need a second heading of its own. */
body.dk-has-index h1.settitle {
    display: none;
}

body.dk-has-index h1.settitle + hr {
    display: none;
}

/* A single-page manual repeats Next/Previous/Up before every section;
   with the index down the side those rows only get in the way.  A split
   manual keeps them, because they carry the Contents and Index links. */

body.dk-flat .nav-panel,
body.dk-flat .nav-panel + hr {
    display: none;
}

/* On a single page the index holds the whole manual, so the body's own
   table of contents would be the second copy of it. */

body.dk-flat .region-contents#SEC_Contents {
    display: none;
}

.nav-panel {
    max-width: 100%;
    color: var(--dk-muted);
    font: 0.78rem/1.6 var(--dk-sans);
}

body.dk-has-index .nav-panel a {
    color: var(--dk-muted);
    font-weight: 400;
    text-decoration: none;
    border-bottom: 1px dotted var(--dk-border);
}

body.dk-has-index .nav-panel a:hover {
    color: var(--dk-accent-strong);
    border-bottom-color: currentColor;
}

hr {
    border: 0;
    border-top: 1px solid var(--dk-border);
    margin: 1.8rem 0;
}

/* --- code and examples ---------------------------------------------- */

body.dk-has-index code,
body.dk-has-index kbd,
body.dk-has-index samp,
body.dk-has-index var {
    font-family: var(--dk-mono);
    font-size: 0.9em;
}

body.dk-has-index :not(pre) > code {
    padding: 0.08em 0.32em;
    color: var(--dk-fg);
    background: var(--dk-code);
    border: 1px solid var(--dk-border);
    border-radius: 4px;
}

body.dk-has-index div.example,
body.dk-has-index pre,
body.dk-has-index pre.example,
body.dk-has-index pre.verbatim {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

body.dk-has-index div.example {
    position: relative;
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    background: var(--dk-code);
    border: 1px solid var(--dk-border);
    border-radius: 6px;
}

body.dk-has-index div.example pre {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
}

body.dk-has-index pre {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    color: var(--dk-fg);
    background: var(--dk-signature);
    border: 1px solid var(--dk-border);
    border-radius: 6px;
    box-shadow: none;
    font-size: 0.86rem;
    line-height: 1.6;
}

/* --- lists and tables ----------------------------------------------- */

body.dk-has-index ul,
body.dk-has-index ol {
    padding-left: 1.2rem;
}

body.dk-has-index li {
    margin: 0.24rem 0;
}

body.dk-has-index li::marker {
    color: var(--dk-muted);
}

body.dk-has-index table {
    width: 100%;
    margin: 1.1rem 0;
    border-collapse: collapse;
    font-size: 0.9rem;
}

body.dk-has-index th,
body.dk-has-index td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid var(--dk-border);
    text-align: left;
    vertical-align: top;
}

body.dk-has-index th {
    color: var(--dk-muted);
    font-family: var(--dk-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.dk-has-index blockquote {
    margin: 1.2rem 0;
    padding: 0.1rem 0 0.1rem 1rem;
    border-left: 2px solid var(--dk-border);
    color: var(--dk-muted);
}

/* --- the bar -------------------------------------------------------- */

.dk-skip {
    position: absolute;
    left: -9999px;
    z-index: 60;
    padding: 0.55rem 0.9rem;
    color: var(--dk-fg);
    background: var(--dk-card);
    border: 1px solid var(--dk-accent);
    border-radius: 6px;
}

.dk-skip:focus {
    left: 0.6rem;
    top: 0.6rem;
}

.dk-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 calc(-1 * clamp(1.1rem, 3vw, 2.8rem));
    padding: 0.5rem clamp(1.1rem, 3vw, 2.8rem);
    background: var(--dk-bg);
    border-bottom: 1px solid var(--dk-border);
}

@supports (backdrop-filter: blur(1px)) {
    .dk-bar {
        background: color-mix(in srgb, var(--dk-bg) 74%, transparent);
        -webkit-backdrop-filter: blur(var(--dk-blur)) saturate(130%);
        backdrop-filter: blur(var(--dk-blur)) saturate(130%);
    }
}

.dk-bar-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--dk-fg);
    font-family: var(--dk-serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dk-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 2.15rem;
    height: 2.15rem;
    padding: 0 0.45rem;
    color: var(--dk-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    font: 500 0.95rem/1 var(--dk-sans);
    cursor: pointer;
}

.dk-icon:hover {
    color: var(--dk-accent-strong);
    background: var(--dk-accent-soft);
}

.dk-menu {
    display: none;
}

.dk-top[hidden] {
    display: none;
}

/* How much of a long page is left, drawn along the bottom of the bar. */
.dk-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--dk-accent);
    opacity: 0.9;
    pointer-events: none;
}

.dk-scrim {
    display: none;
}

/* --- the index ------------------------------------------------------ */

.dk-index {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: var(--dk-sidebar);
    overflow: hidden;
    background: var(--dk-card);
    border-right: 1px solid var(--dk-border);
    font: 0.85rem/1.5 var(--dk-sans);
}

.dk-index-head {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.95rem 0.55rem 0.2rem 0.85rem;
}

/* The page names itself here: the library the chapter documents, not the
   word every reference calls itself. */
.dk-index-head h2 {
    flex: 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--dk-fg);
    font-family: var(--dk-serif);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dk-index-site {
    margin: 0 0.85rem 0.15rem;
    color: var(--dk-muted);
    font-family: var(--dk-sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dk-index-meta {
    margin: 0 0.85rem 0.6rem;
    color: var(--dk-muted);
    font-family: var(--dk-sans);
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}

.dk-index-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--dk-muted);
    background: transparent;
    border: 0;
    border-radius: 4px;
    font: 600 0.82rem/1 var(--dk-sans);
    cursor: pointer;
}

.dk-index-tool:hover {
    color: var(--dk-accent-strong);
    background: var(--dk-accent-soft);
}

.dk-index-close {
    display: none;
}

.dk-index-filter {
    display: block;
    width: calc(100% - 2rem);
    margin: 0 1rem 0.8rem;
    padding: 0.42rem 0.6rem;
    color: var(--dk-fg);
    background: var(--dk-signature);
    border: 1px solid var(--dk-border);
    border-radius: 6px;
    font: inherit;
    font-size: 0.9rem;
}

.dk-index-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 0.6rem 1.5rem;
    /* Its own surface, so a page stylesheet's link decoration cannot
       show through the rows of the index. */
    background: var(--dk-card);
    scrollbar-color: var(--dk-border) transparent;
}

.dk-index-scroll::-webkit-scrollbar {
    width: 8px;
}

.dk-index-scroll::-webkit-scrollbar-thumb {
    background: var(--dk-border);
    border-radius: 999px;
}

.dk-index-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.dk-index-empty {
    margin: 0.8rem 0.5rem 0;
    color: var(--dk-muted);
    font-size: 0.8rem;
}

.dk-nav,
.dk-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dk-nav ul {
    margin: 0.1rem 0 0.35rem 0.55rem;
    padding-left: 0.3rem;
    border-left: 1px solid var(--dk-border);
}

.dk-nav [hidden] {
    display: none;
}

.dk-row {
    display: flex;
    align-items: center;
    gap: 0.05rem;
    border-radius: 5px;
}

.dk-row > a {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
    padding: 0.28rem 0.45rem;
    color: var(--dk-fg);
    text-decoration: none;
    /* The site stylesheet underlines every link; a row of the index is
       read as a list, so its underline is the surface it sits on. */
    border-bottom: 0;
    box-shadow: none;
    border-radius: 5px;
}

.dk-group > .dk-row > a {
    font-family: var(--dk-serif);
    font-size: 0.92rem;
    font-weight: 600;
}

.dk-nav ul .dk-group > .dk-row > a {
    font-family: var(--dk-sans);
    font-size: 0.81rem;
    font-weight: 500;
    color: var(--dk-muted);
}

.dk-row > a:hover {
    background: var(--dk-accent-soft);
}

/* How many definitions a section holds, the way an editor counts the
   nodes under a folded one. */
.dk-count {
    flex: none;
    margin-left: auto;
    color: var(--dk-muted);
    font-family: var(--dk-sans);
    font-size: 0.64rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.dk-row > a[aria-current="location"] {
    color: var(--dk-accent-strong);
    background: var(--dk-accent-soft);
}

.dk-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 1.35rem;
    height: 1.35rem;
    color: var(--dk-muted);
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.dk-toggle::before {
    content: "▸";
    font-size: 0.66rem;
    transition: transform 0.15s ease;
}

.dk-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.dk-toggle-empty {
    visibility: hidden;
}

.dk-def-link {
    display: block;
    padding: 0.24rem 0.45rem;
    color: var(--dk-fg);
    font-family: var(--dk-mono);
    font-size: 0.74rem;
    overflow-wrap: anywhere;
    text-decoration: none;
    border-bottom: 0;
    box-shadow: none;
    border-radius: 5px;
}

.dk-def-link:hover {
    background: var(--dk-accent-soft);
}

.dk-def-link[aria-current="location"] {
    color: var(--dk-accent-strong);
    background: var(--dk-accent-soft);
}

.dk-kind {
    display: inline-block;
    margin-right: 0.35rem;
    color: var(--dk-muted);
    font-family: var(--dk-sans);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: 0.08em;
}

/* --- a definition --------------------------------------------------- */

dl.def-block {
    position: relative;
    margin: 1.1rem 0;
    padding: 0.9rem 1.1rem 1rem;
    background: var(--dk-card);
    border: 1px solid var(--dk-border);
    border-left: 3px solid var(--dk-accent);
    border-radius: var(--dk-radius);
}

dl.def-block:target {
    border-color: var(--dk-accent);
    box-shadow: 0 0 0 3px var(--dk-accent-soft);
}

dl.def-block > dt.def-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem;
    margin: 0 0 0.65rem;
    padding: 0.5rem 0.7rem;
    overflow-wrap: anywhere;
    background: var(--dk-signature);
    border-radius: 5px;
    font-family: var(--dk-mono);
    font-size: 0.95rem;
}

dl.def-block .category-def {
    padding: 0.16rem 0.5rem;
    color: var(--dk-accent-strong);
    background: var(--dk-accent-soft);
    border-radius: 999px;
    font-family: var(--dk-sans);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

dl.def-block .def-name {
    color: var(--dk-fg);
    font-family: var(--dk-mono);
    font-size: 1.02rem;
    font-style: normal;
    font-weight: 600;
}

dl.def-block .def-var-arguments,
dl.def-block .def-type {
    color: var(--dk-muted);
    font-family: var(--dk-mono);
    font-style: normal;
    font-weight: 400;
}

dl.def-block > dd {
    margin: 0;
}

dl.def-block > dd > p {
    max-width: 78ch;
}

dl.def-block > dd > p:first-child {
    font-size: 1.02rem;
}

dl.def-block > dd strong.strong {
    color: var(--dk-fg);
}

/* --- the overview, as an outline ------------------------------------ */

/* A module opens with every name it exports.  Read as bullets it is a
   list of six hundred lines; read as rows it is the outline an editor
   shows: what kind of thing each name is, the arguments it takes and the
   sentence that documents it.  The chapter writes a plain list, so a
   reader without the script still gets one. */

.dk-outline-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 1rem 0 0.3rem;
}

.dk-outline-count {
    margin-right: auto;
    color: var(--dk-muted);
    font-family: var(--dk-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dk-outline-kind-filter {
    padding: 0.14rem 0.5rem;
    color: var(--dk-muted);
    background: transparent;
    border: 1px solid var(--dk-border);
    border-radius: 999px;
    font: 500 0.68rem/1.5 var(--dk-sans);
    cursor: pointer;
}

.dk-outline-kind-filter:hover {
    color: var(--dk-accent-strong);
    border-color: var(--dk-accent);
}

.dk-outline-kind-filter[aria-pressed="true"] {
    color: var(--dk-accent-strong);
    background: var(--dk-accent-soft);
    border-color: var(--dk-accent);
}

body.dk-has-index ul.dk-outline {
    margin: 0 0 1.6rem;
    padding: 0;
    overflow: hidden;
    list-style: none;
    background: var(--dk-card);
    border: 1px solid var(--dk-border);
    border-radius: var(--dk-radius);
    font-size: 0.85rem;
}

body.dk-has-index ul.dk-outline > li {
    display: grid;
    grid-template-columns: 4.9rem minmax(0, 1.05fr) minmax(0, 1.3fr);
    gap: 0.1rem 0.9rem;
    align-items: baseline;
    margin: 0;
    padding: 0.42rem 0.8rem;
    border-top: 1px solid var(--dk-border);
}

body.dk-has-index ul.dk-outline > li:first-child {
    border-top: 0;
}

body.dk-has-index ul.dk-outline > li:hover {
    background: var(--dk-accent-soft);
}

body.dk-has-index ul.dk-outline > li[hidden] {
    display: none;
}

.dk-outline-kind {
    justify-self: start;
    padding: 0.04rem 0.4rem;
    color: var(--dk-accent-strong);
    background: var(--dk-accent-soft);
    border-radius: 999px;
    font-family: var(--dk-sans);
    font-size: 0.54rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dk-outline-name {
    min-width: 0;
    font-family: var(--dk-mono);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.dk-outline-name a {
    color: var(--dk-fg);
    text-decoration: none;
    border-bottom: 0;
}

body.dk-has-index ul.dk-outline > li:hover .dk-outline-name a {
    color: var(--dk-accent-strong);
}

.dk-outline-signature {
    display: block;
    margin-top: 0.08rem;
    overflow: hidden;
    color: var(--dk-muted);
    font-family: var(--dk-mono);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dk-outline-summary {
    min-width: 0;
    color: var(--dk-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    body.dk-has-index ul.dk-outline > li {
        grid-template-columns: 4.2rem minmax(0, 1fr);
        row-gap: 0.2rem;
    }

    .dk-outline-summary {
        grid-column: 2;
    }
}

/* --- what the script adds ------------------------------------------- */

.dk-copy {
    margin-left: auto;
    padding: 0.28rem 0.45rem;
    color: var(--dk-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    font: 500 0.68rem/1 var(--dk-sans);
    letter-spacing: 0.02em;
    cursor: pointer;
}

.dk-copy:hover {
    color: var(--dk-accent-strong);
    background: var(--dk-accent-soft);
}

.dk-copy[data-dk-copied="yes"] {
    color: var(--dk-accent-strong);
    background: var(--dk-accent-soft);
}

/* The button that copies a block of code sits in its corner, out of the
   way until the pointer or the keyboard comes near it. */

.dk-code-copy {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    z-index: 1;
    padding: 0.18rem 0.45rem;
    color: var(--dk-muted);
    background: color-mix(in srgb, var(--dk-card) 88%, transparent);
    border: 1px solid var(--dk-border);
    border-radius: 5px;
    font: 500 0.66rem/1.4 var(--dk-sans);
    letter-spacing: 0.02em;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.12s var(--dk-ease);
}

div.example:hover > .dk-code-copy,
div.example:focus-within > .dk-code-copy,
details.dk-source:hover > .dk-code-copy,
details.dk-source:focus-within > .dk-code-copy,
.dk-code-copy:focus-visible {
    opacity: 1;
}

/* A page read with a finger has no hover to reveal it. */
@media (hover: none) {
    .dk-code-copy {
        opacity: 1;
    }
}

.dk-code-copy:hover {
    color: var(--dk-accent-strong);
    border-color: var(--dk-accent);
}

.dk-code-copy[data-dk-copied="yes"] {
    color: var(--dk-accent-strong);
    border-color: var(--dk-accent);
}

/* --- the source of a definition ------------------------------------- */

/* The script folds the example the chapter marks into this panel, so the
   code behind a definition is a click away instead of a page of it.  A
   reader without the script gets the example as the chapter wrote it. */

details.dk-source {
    position: relative;
    margin-top: 0.8rem;
    border-top: 1px solid var(--dk-border);
}

details.dk-source > summary {
    margin: 0.55rem 0 0;
    padding: 0.15rem 0 0.15rem 0.15rem;
    color: var(--dk-muted);
    font-family: var(--dk-sans);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
}

details.dk-source > summary::marker {
    color: var(--dk-accent);
}

details.dk-source > summary:hover,
details.dk-source[open] > summary {
    color: var(--dk-accent-strong);
}

details.dk-source > div.example {
    margin: 0.5rem 0 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
}

details.dk-source pre {
    margin: 0;
    padding: 0.7rem 0.85rem;
    background: var(--dk-signature);
    border: 1px solid var(--dk-border);
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.55;
    tab-size: 4;
}

.dk-tok-comment {
    color: var(--dk-tok-comment);
    font-style: italic;
}

.dk-tok-string {
    color: var(--dk-tok-string);
}

.dk-tok-number {
    color: var(--dk-tok-number);
}

.dk-tok-constant {
    color: var(--dk-tok-constant);
}

.dk-tok-keyword {
    color: var(--dk-tok-keyword);
}

.dk-tok-special {
    color: var(--dk-tok-special);
    font-weight: 600;
}

.dk-tok-paren {
    color: var(--dk-tok-paren);
}

/* --- the surfaces a reader reads through ---------------------------- */

/* Transparent, not see-through-by-accident: a browser without
   backdrop-filter keeps the solid surfaces declared above, and this is
   the page showing under the cards, the index and the bar. */

@supports (backdrop-filter: blur(1px)) {
    .dk-index {
        background: color-mix(in srgb, var(--dk-card) 78%, transparent);
        -webkit-backdrop-filter: blur(var(--dk-blur)) saturate(130%);
        backdrop-filter: blur(var(--dk-blur)) saturate(130%);
    }

    .dk-index-scroll {
        background: color-mix(in srgb, var(--dk-card) 60%, transparent);
    }

    .dk-index-filter {
        background: color-mix(in srgb, var(--dk-signature) 70%, transparent);
    }

    /* A blur per card is a blur per definition, and a long page has
       hundreds of them composited again on every scroll frame.  The cards
       stay translucent; the bar and the index keep the blur. */
    dl.def-block {
        background: color-mix(in srgb, var(--dk-card) 88%, transparent);
    }

    dl.def-block > dt.def-line {
        background: color-mix(in srgb, var(--dk-signature) 70%, transparent);
    }

    details.dk-source pre {
        background: color-mix(in srgb, var(--dk-signature) 58%, transparent);
    }
}

/* --- diagrams ------------------------------------------------------- */

img.image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--dk-border);
    border-radius: var(--dk-radius);
}

.dk-diagram {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    text-align: center;
    color: var(--dk-fg);
    background: var(--dk-card);
    border: 1px solid var(--dk-border);
    border-radius: var(--dk-radius);
}

.dk-diagram svg {
    max-width: 100%;
    height: auto;
}

/* The map of a whole library is wider than any page: it keeps its own
   size and the reader scrolls it, because a graph shrunk to the window is
   a grey smear where the labels should be.  The renderer writes its width
   inline, so the rule has to insist. */
.dk-map svg {
    max-width: none !important;
    height: auto;
}

/* --- the trail, the pager, and the rest of the manual ---------------- */

.dk-trail {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem;
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    color: var(--dk-muted);
}

.dk-trail a {
    color: var(--dk-accent);
    text-decoration: none;
}

.dk-trail a:hover {
    text-decoration: underline;
}

.dk-trail-here {
    color: var(--dk-fg);
}

.dk-pager {
    display: flex;
    gap: 2rem;
    margin: 2.5rem 0 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dk-border);
    font-size: 0.9rem;
}

.dk-pager > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dk-pager span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dk-muted);
}

.dk-pager a {
    color: var(--dk-accent);
    text-decoration: none;
}

.dk-pager a:hover {
    text-decoration: underline;
}

.dk-pager-next {
    margin-left: auto;
    text-align: right;
}

.dk-elsewhere {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--dk-border);
}

.dk-elsewhere h3 {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dk-muted);
}

.dk-elsewhere ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dk-elsewhere li {
    margin: 0.15rem 0;
}

.dk-elsewhere a {
    display: block;
    text-decoration: none;
}

.dk-elsewhere small {
    display: block;
    color: var(--dk-muted);
    font-size: 0.72rem;
}

.dk-source-file {
    margin: 0.5rem 0 0;
    font-family: var(--dk-mono);
    font-size: 0.78rem;
    color: var(--dk-muted);
}

.dk-source-file a {
    color: var(--dk-accent);
}

/* --- focus ---------------------------------------------------------- */

.dk-index a:focus-visible,
.dk-icon:focus-visible,
.dk-copy:focus-visible,
.dk-code-copy:focus-visible,
.dk-index-tool:focus-visible,
.dk-outline-kind-filter:focus-visible,
.dk-toggle:focus-visible,
.dk-skip:focus-visible,
.dk-source > summary:focus-visible,
.dk-index-filter:focus-visible {
    outline: 2px solid var(--dk-accent);
    outline-offset: 2px;
}

/* --- the phone and the tablet --------------------------------------- */

@media (max-width: 1024px) {
    body.dk-has-index {
        margin-left: 0;
        padding: 0 1.1rem 4rem;
    }

    .dk-bar {
        margin: 0 -1.1rem;
        padding: 0.5rem 1.1rem;
    }

    .dk-menu {
        display: inline-flex;
    }

    .dk-index {
        width: min(86vw, 20rem);
        visibility: hidden;
        transform: translateX(-103%);
        /* Stay visible while the drawer slides away, then leave the tab
           order; opening makes it visible at once so the filter can take
           the focus. */
        transition: transform 0.24s var(--dk-ease), visibility 0s linear 0.24s;
    }

    /* A closed drawer is out of the tab order too, not only out of sight. */
    body.dk-index-open .dk-index {
        visibility: visible;
        transform: none;
        transition: transform 0.24s var(--dk-ease), visibility 0s linear 0s;
        box-shadow: 0 0 0 1px var(--dk-border), 0 24px 64px rgba(8, 8, 12, 0.28);
    }

    .dk-index-close {
        display: inline-flex;
    }

    body.dk-index-open {
        overflow: hidden;
    }

    .dk-scrim {
        position: fixed;
        inset: 0;
        z-index: 45;
        display: block;
        background: rgba(20, 16, 12, 0.45);
    }

    .dk-scrim[hidden] {
        display: none;
    }
}

@media (max-width: 600px) {
    body.dk-has-index h2.chapter {
        margin-top: 2rem;
        font-size: clamp(1.8rem, 8vw, 2.3rem);
    }

    body.dk-has-index h3.section {
        font-size: 1.35rem;
    }

    body.dk-has-index h3.heading {
        font-size: 1.2rem;
    }

    body.dk-has-index h3.heading + ol.enumerate,
    body:not(.dk-has-index) h3.heading + ol.enumerate {
        padding: 0.9rem 1rem 0.9rem 2.2rem;
    }

    h2.chapter + p {
        font-size: 1.08rem;
    }

    dl.def-block {
        padding: 0.75rem 0.85rem 0.9rem;
    }

    dl.def-block > dt.def-line {
        font-size: 0.9rem;
    }

    dl.def-block .def-name {
        font-size: 0.98rem;
    }

    .dk-bar-title {
        font-size: 0.92rem;
    }

    body.dk-has-index table {
        display: block;
        overflow-x: auto;
    }
}

/* --- print ---------------------------------------------------------- */

@media print {
    .dk-index,
    .dk-bar,
    .dk-progress,
    .dk-skip,
    .dk-scrim,
    .dk-copy,
    .dk-code-copy,
    .dk-outline-bar {
        display: none !important;
    }

    body,
    body.dk-has-index,
    body:not(.dk-has-index) {
        max-width: none;
        margin: 0;
        padding: 0;
        background: none;
        font-size: 11pt;
    }

    /* The index is not printed, so the body's own table of contents
       comes back for the paper. */
    body.dk-has-index ul.mini-toc,
    body.dk-flat .region-contents#SEC_Contents {
        display: block;
    }

    dl.def-block {
        break-inside: avoid;
        border: 1px solid #cccccc;
        border-left: 3px solid #888888;
    }

    body.dk-has-index h3.heading + ol.enumerate,
    body:not(.dk-has-index) h3.heading + ol.enumerate,
    body:not(.dk-has-index) #SEC_Contents,
    body:not(.dk-has-index) ul.mini-toc {
        background: none;
        border-color: #cccccc;
    }

    .dk-diagram,
    img.image {
        break-inside: avoid;
    }

    /* The source panel is a click on a screen and nothing on paper. */
    details.dk-source {
        display: none !important;
    }
}

    [⚙️ assert] the script written is the module's
    ✅ got: /* dokgen.js --- the behaviour of an API chapter.
 *
 * SPDX-License-Identifier: MIT
 * Copyright © Josep Bigorra <jjbigorra@gmail.com>
 *
 * dokgen writes this file beside the Texinfo chapter it generates.  It
 * adds, on top of what texi2any emits, the few things that make a page of
 * reference documentation pleasant to read: one index holding the sections
 * and every definition, a filter over it, a bar with the theme and, on a
 * phone, the button that opens the index as a drawer.  It also folds the
 * body's own table of contents away, because the index already is one,
 * opens the source a definition carries in a panel of coloured code, reads
 * a module's overview as the outline of its names, copies a signature, an
 * example or a panel of source, and draws a diagram the build left as
 * source from the bundled renderer.
 *
 * Everything is progressive: the page is complete without this file, and
 * every feature is one selector away from disappearing if the HTML it
 * looks for is not there.  No network and no global of its own: the
 * renderer is a local file, loaded only when a page needs it.
 */

(function () {
    "use strict";

    var THEME_KEY = "dokgen-theme";
    /* What marks a stored theme as one the reader picked, rather than the
       one the page happened to open on. */
    var CHOSEN = ":chosen";
    var root = document.documentElement;
    var body = document.body;
    var phone = window.matchMedia("(max-width: 1024px)");

    function each(list, fn) {
        Array.prototype.forEach.call(list, fn);
    }

    /* The definition cards, under the class texi2any gives them and, on a
       build that gives them none, under the category every definition
       carries: the page is the same page, and the index, the signatures
       and the source panels do not disappear with a class name. */
    var definitionCache = null;

    function definitions() {
        if (definitionCache) {
            return definitionCache;
        }
        var found = document.querySelectorAll("dl.def-block");
        if (!found.length) {
            var list = [];
            each(document.querySelectorAll("dl > dt .category-def"), function (category) {
                var block = category.closest("dl");
                if (block && list.indexOf(block) === -1) {
                    list.push(block);
                }
            });
            each(list, function (block) {
                block.classList.add("def-block");
                each(block.children, function (child) {
                    if (child.tagName === "DT") {
                        child.classList.add("def-line");
                    }
                });
            });
            found = list;
        }
        definitionCache = found;
        return found;
    }

    function tidy(text) {
        return (text || "")
            .replace(/\s+/g, " ")
            .replace(/\s*¶+$/, "")
            .replace(/^\d+(\.\d+)*\s+/, "")
            .trim();
    }

    function signatureOf(block) {
        var line = block.querySelector(":scope > dt");
        if (!line) {
            return "";
        }
        var name = line.querySelector(".def-name");
        var args = line.querySelector(".def-var-arguments");
        var text = (name ? name.textContent : line.textContent) || "";
        if (args && args.textContent.trim()) {
            text += " " + args.textContent.trim();
        }
        return text.replace(/\s+/g, " ").trim();
    }

    function nameOf(block) {
        var name = block.querySelector(":scope > dt .def-name");
        return name ? name.textContent.trim() : "";
    }

    function kindOf(block) {
        var kind = block.querySelector(".category-def");
        return kind ? kind.textContent.replace(/[:\s]+$/, "").trim() : "";
    }

    function summaryOf(block) {
        var statement = block.querySelector(":scope > dd");
        var first = statement && statement.querySelector("p");
        return first ? first.textContent.replace(/\s+/g, " ").trim() : "";
    }

    function reduceMotion() {
        return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
    }

    /* --- the theme ---------------------------------------------------- */

    /* A theme is the reader's only once they have said so.  Until then the
       page starts on whatever the system reports and follows it while it
       is open; the button is what turns a choice into a remembered one. */

    function forgetTheme() {
        try {
            window.localStorage.removeItem(THEME_KEY);
        } catch (error) {
            /* A reader with storage turned off has nothing to forget. */
        }
    }

    function savedTheme() {
        var value = null;
        try {
            value = window.localStorage.getItem(THEME_KEY);
        } catch (error) {
            value = null;
        }
        if (!value) {
            return null;
        }
        if (value.slice(-CHOSEN.length) !== CHOSEN) {
            /* Written by a version that remembered the theme it started
               on, which is not a choice the reader made. */
            forgetTheme();
            return null;
        }
        var theme = value.slice(0, -CHOSEN.length);
        return theme === "light" || theme === "dark" ? theme : null;
    }

    function systemTheme() {
        return window.matchMedia("(prefers-color-scheme: dark)").matches
            ? "dark"
            : "light";
    }

    function currentTheme() {
        return root.getAttribute("data-dk-theme") === "dark" ? "dark" : "light";
    }

    function applyTheme(theme, chosen) {
        root.setAttribute("data-dk-theme", theme);
        if (!chosen) {
            return;
        }
        try {
            window.localStorage.setItem(THEME_KEY, theme + CHOSEN);
        } catch (error) {
            /* A reader with storage turned off gets the theme for the visit. */
        }
    }

    /* The system can change while the page is open -- a laptop that dims
       itself at night -- so the page listens and follows, unless the
       reader has picked a theme of their own.  A new theme is a new
       palette, so the diagrams are drawn again with it. */
    function followSystemTheme() {
        var scheme = window.matchMedia("(prefers-color-scheme: dark)");
        var follow = function (event) {
            if (savedTheme()) {
                return;
            }
            applyTheme(event.matches ? "dark" : "light", false);
            redrawDiagrams();
        };
        if (scheme.addEventListener) {
            scheme.addEventListener("change", follow);
        } else if (scheme.addListener) {
            scheme.addListener(follow);
        }
    }

    /* --- copied text -------------------------------------------------- */

    /* One button says what it did and then says it again, whether it
       copied a signature, an example or the source of a definition. */

    function flash(button, said) {
        var label = button.getAttribute("data-dk-label") || button.textContent;
        button.setAttribute("data-dk-label", label);
        button.textContent = said;
        button.setAttribute("data-dk-copied", "yes");
        window.setTimeout(function () {
            button.textContent = label;
            button.removeAttribute("data-dk-copied");
        }, 1400);
    }

    function copyText(text, button) {
        var wrote = navigator.clipboard && navigator.clipboard.writeText(text);
        if (!wrote || !wrote.then) {
            flash(button, "copy failed");
            return;
        }
        wrote.then(function () {
            flash(button, "copied");
        })["catch"](function () {
            flash(button, "copy failed");
        });
    }

    function copyButton(description, text) {
        var button = document.createElement("button");
        button.type = "button";
        button.className = "dk-code-copy";
        button.textContent = "copy";
        button.title = description;
        button.setAttribute("aria-label", description);
        button.addEventListener("click", function () {
            copyText(text, button);
        });
        return button;
    }

    /* --- copyable signatures ------------------------------------------ */

    function addCopyButtons() {
        each(definitions(), function (block) {
            var line = block.querySelector(":scope > dt");
            var signature = signatureOf(block);
            if (!line || !signature) {
                return;
            }
            var button = document.createElement("button");
            button.type = "button";
            button.className = "dk-copy";
            button.textContent = "copy";
            button.title = "Copy " + signature;
            button.setAttribute("aria-label", "Copy the signature of " + signature);
            button.addEventListener("click", function () {
                copyText(signature, button);
            });
            line.appendChild(button);
        });
    }

    /* --- the source of a definition ----------------------------------- */

    /* A definition's source is an example the chapter marks with an
       anchor.  texi2any writes the underscore of an anchor's name as an
       escape, so the marker's own id carries it. */
    var SOURCE_MARK = "dk_005fsource_005f";

    /* The words a reader looks for first: what a form does, not what it is
       called. */
    var SPECIAL = ("define define* define-public define*-public "
        + "define-module define-syntax define-syntax-rule "
        + "define-record-type lambda let let* letrec letrec* let-values "
        + "if cond case else when unless and or begin do quote quasiquote "
        + "unquote set! delay force parameterize guard dynamic-wind").split(" ");

    var TOKEN = /(;[^\n]*)|(#\|[\s\S]*?\|#)|("(?:[^"\\]|\\.)*")|(#[tf](?=[\s()\[\]"';]|$))|(#\\(?:[a-zA-Z0-9]+|.))|(#[^\s()\[\]"';]+)|([()\[\]])|(-?\d+(?:\.\d+)?)|([^\s()\[\]"';]+)|([\s\S])/g;

    function escapeHtml(text) {
        return text.replace(/&/g, "&amp;")
            .replace(/</g, "&lt;")
            .replace(/>/g, "&gt;");
    }

    function isSpecial(word) {
        return SPECIAL.indexOf(word) !== -1;
    }

    /* Colour one form: a comment, a string, a character, a number and a
       word are told apart by one expression, which is enough for a page
       that shows code and never runs it.  Every token is escaped, so the
       result is safe to put back as markup. */
    function colourise(text) {
        return text.replace(TOKEN, function (whole, comment, block, string, bool, char, keyword, bracket, number, word) {
            var kind = "";
            if (comment || block) {
                kind = "comment";
            } else if (string) {
                kind = "string";
            } else if (bool || char) {
                kind = "constant";
            } else if (keyword) {
                kind = "keyword";
            } else if (bracket) {
                kind = "paren";
            } else if (number) {
                kind = "number";
            } else if (word && isSpecial(word)) {
                kind = "special";
            }
            var safe = escapeHtml(whole);
            if (!kind) {
                return safe;
            }
            return '<span class="dk-tok-' + kind + '">' + safe + '</span>';
        });
    }

    /* The marker and the example it guards become one panel: the example
       moves inside a details element, which a reader opens and closes
       without this script.  The source is coloured once, when it is put
       there. */
    function addSourcePanels() {
        var markers = document.querySelectorAll("a[id^='" + SOURCE_MARK + "']");
        each(markers, function (marker) {
            var block = marker.nextElementSibling;
            var pre = block && block.querySelector("pre");
            if (!pre) {
                return;
            }
            var panel = document.createElement("details");
            panel.className = "dk-source";
            var summary = document.createElement("summary");
            summary.textContent = "Source";
            panel.appendChild(summary);
            panel.appendChild(copyButton("Copy the source of this definition",
                                         pre.textContent));
            /* The caption the chapter writes under the form, naming the
               file and line it came from, belongs to the panel too.  It
               is read before the block moves, because moving it is what
               takes the caption out of reach. */
            var caption = block.nextElementSibling;
            block.parentNode.insertBefore(panel, block);
            panel.appendChild(block);
            if (caption && caption.tagName === "P" &&
                /^Source: /.test(caption.textContent)) {
                caption.className = "dk-source-file";
                panel.appendChild(caption);
                linkSourceCaption(caption);
            }
            pre.innerHTML = colourise(pre.textContent);
        });
    }

    /* A docstring's own example is code a reader wants to run, so it gets
       the same button; the code inside a source panel keeps its own. */
    function addExampleCopies() {
        each(document.querySelectorAll("div.example"), function (block) {
            if (block.closest("details.dk-source")) {
                return;
            }
            var pre = block.querySelector("pre");
            if (!pre) {
                return;
            }
            /* A diagram's example is mermaid source with the marker this
               page looks for on the end; the reader wants the diagram. */
            var diagram = diagramSource(pre);
            block.appendChild(diagram
                ? copyButton("Copy this diagram's source", diagram)
                : copyButton("Copy this example", pre.textContent));
        });
    }

    /* --- the overview, as an outline ---------------------------------- */

    /* The chapter writes each module's overview as a plain list of a name
       and a sentence.  Here it becomes the outline an editor shows: the
       kind of thing, the name with the arguments it takes, and the
       sentence, with the kinds a reader can narrow the list down to. */

    var SHORT_KIND = {
        "Macro": "macro",
        "Procedure": "proc",
        "Variable": "var",
        "Parameter": "param",
        "Record type": "record",
        "Record Type": "record",
        "Record": "record"
    };

    function shortKind(kind) {
        return SHORT_KIND[kind] || (kind ? kind.toLowerCase() : "name");
    }

    function kindLabel(kind) {
        return kind.charAt(0).toUpperCase() + kind.slice(1);
    }

    /* The definition a name in the overview points at: the anchor sits
       before the card, and a heading's id sits on the card. */
    function definitionFor(link) {
        var target = targetOf(link);
        if (!target) {
            return null;
        }
        if (target.tagName === "DL") {
            return target;
        }
        var owner = target.closest ? target.closest("dl.def-block") : null;
        if (owner) {
            return owner;
        }
        var next = target.nextElementSibling;
        if (next && next.tagName !== "DL") {
            next = next.nextElementSibling;
        }
        return next && next.tagName === "DL" ? next : null;
    }

    function outlineRow(item) {
        var link = item.querySelector("a[href^='#']");
        if (!link) {
            return null;
        }
        var block = definitionFor(link);
        var kind = block ? kindOf(block) : "";
        var name = (block ? nameOf(block) : "") || tidy(link.textContent);
        var signature = block ? signatureOf(block) : "";

        var row = document.createElement("li");
        row.className = "dk-outline-row";
        row.setAttribute("data-dk-kind", shortKind(kind));

        var badge = document.createElement("span");
        badge.className = "dk-outline-kind";
        badge.textContent = shortKind(kind);
        badge.title = kind || "name";

        var cell = document.createElement("div");
        cell.className = "dk-outline-name";
        cell.appendChild(link);

        if (signature && signature !== name) {
            var rest = signature.slice(name.length).replace(/^\s+/, "");
            if (rest) {
                var takes = document.createElement("span");
                takes.className = "dk-outline-signature";
                takes.textContent = rest;
                cell.appendChild(takes);
            }
        }

        /* What the chapter wrote after the name is the sentence beside it,
           moved as the nodes it was so its links and code stay. */
        var summary = document.createElement("div");
        summary.className = "dk-outline-summary";
        var node = link.nextSibling;
        while (node) {
            var following = node.nextSibling;
            summary.appendChild(node);
            node = following;
        }
        if (summary.firstChild && summary.firstChild.nodeType === 3) {
            summary.firstChild.textContent =
                summary.firstChild.textContent.replace(/^\s*[—–-]\s*/, "");
        }

        row.appendChild(badge);
        row.appendChild(cell);
        row.appendChild(summary);
        return row;
    }

    function outlineFor(heading) {
        var list = heading.nextElementSibling;
        while (list && list.tagName !== "UL") {
            list = list.nextElementSibling;
        }
        if (!list || !list.classList.contains("itemize")) {
            return null;
        }

        var rows = [];
        each(list.children, function (item) {
            var row = outlineRow(item);
            if (row) {
                rows.push(row);
            }
        });
        if (!rows.length) {
            return null;
        }

        list.textContent = "";
        list.className = "itemize dk-outline";
        each(rows, function (row) {
            list.appendChild(row);
        });

        var bar = document.createElement("div");
        bar.className = "dk-outline-bar";
        var count = document.createElement("span");
        count.className = "dk-outline-count";
        bar.appendChild(count);

        function say(shown) {
            count.textContent = shown === rows.length
                ? rows.length + (rows.length === 1 ? " name" : " names")
                : shown + " of " + rows.length + " names";
        }
        say(rows.length);

        var kinds = [];
        each(rows, function (row) {
            var kind = row.getAttribute("data-dk-kind");
            if (kinds.indexOf(kind) === -1) {
                kinds.push(kind);
            }
        });

        var chips = [];
        if (kinds.length > 1) {
            var chip = function (label, kind) {
                var button = document.createElement("button");
                button.type = "button";
                button.className = "dk-outline-kind-filter";
                button.textContent = label;
                button.setAttribute("aria-pressed", kind === "all" ? "true" : "false");
                button.addEventListener("click", function () {
                    var shown = 0;
                    each(rows, function (row) {
                        var hit = kind === "all" || row.getAttribute("data-dk-kind") === kind;
                        row.hidden = !hit;
                        if (hit) {
                            shown += 1;
                        }
                    });
                    each(chips, function (other) {
                        other.setAttribute("aria-pressed",
                                           other === button ? "true" : "false");
                    });
                    say(shown);
                });
                chips.push(button);
                return button;
            };
            bar.appendChild(chip("All", "all"));
            each(kinds.sort(), function (kind) {
                bar.appendChild(chip(kindLabel(kind), kind));
            });
        }

        heading.parentNode.insertBefore(bar, list);
        return { list: list, rows: rows };
    }

    function buildOutlines() {
        each(document.querySelectorAll("h3.subsection, h4.subsection, h3.heading, h4.heading"), function (heading) {
            if (tidy(heading.textContent).toLowerCase() !== "overview") {
                return;
            }
            outlineFor(heading);
        });
    }

    /* --- the index ---------------------------------------------------- */

    function targetOf(link) {
        var href = link.getAttribute("href") || "";
        if (href.charAt(0) !== "#") {
            return null;
        }
        return document.getElementById(href.slice(1));
    }

    function anchorTarget(block, position) {
        var anchor = block.previousElementSibling;
        while (anchor && !(anchor.tagName === "A" && anchor.id)) {
            anchor = anchor.previousElementSibling;
        }
        if (anchor) {
            return anchor;
        }
        var id = "dk-definition-" + position;
        block.id = id;
        return block;
    }

    /* --- the whole manual -------------------------------------------- */

    /* The chapter's index, written beside it: every module, section and
       name, so that the filter on a module page can reach the rest of the
       manual without going home first. */
    var manualIndex = null;

    function manualBase() {
        var base = "";
        each(document.scripts, function (tag) {
            if (tag.src && /dokgen\.js(?:\?|$)/.test(tag.src)) {
                base = tag.src.replace(/[^\/]*$/, "");
            }
        });
        return base;
    }

    function loadManual(done) {
        if (manualIndex) {
            done(manualIndex);
            return;
        }
        if (!window.fetch || !window.JSON) {
            done(null);
            return;
        }
        window.fetch(manualBase() + "dokgen-index.json")
            .then(function (response) {
                return response.ok ? response.json() : null;
            })
            .then(function (data) {
                manualIndex = data || false;
                done(manualIndex || null);
            })
            .catch(function () {
                manualIndex = false;
                done(null);
            });
    }

    /* texi2any names a page or an anchor after its node, escaping every
       character it cannot put in a URL: an underscore is _005f, a hyphen
       _002d.  A link the page builds has to speak the same language. */
    function htmlTarget(name) {
        return String(name).replace(/[^A-Za-z0-9]/g, function (character) {
            var code = character.charCodeAt(0).toString(16);
            while (code.length < 4) {
                code = "0" + code;
            }
            return "_" + code;
        });
    }

    function entryHref(entry) {
        var anchor = entry.anchor ? "#" + htmlTarget(entry.anchor) : "";
        if (document.body.classList.contains("dk-flat")) {
            return anchor || "#" + htmlTarget(entry.node);
        }
        return htmlTarget(entry.node) + ".html" + anchor;
    }

    function moduleEntry(data, entry) {
        var found = null;
        each(data.entries, function (candidate) {
            if (candidate.kind === "section" && candidate.node === entry.node) {
                found = candidate;
            }
        });
        return found;
    }

    /* The module whose page this is, or null on the chapter page and in a
       manual that is one page. */
    function pageModule(data) {
        if (!data || !data.entries || document.body.classList.contains("dk-flat")) {
            return null;
        }
        var heading = document.querySelector("h3.section, h2.section, h4.subsection");
        if (!heading) {
            return null;
        }
        var label = tidy(heading.textContent);
        var found = null;
        each(data.entries, function (entry) {
            if (entry.kind === "section" && entry.label === label) {
                found = entry;
            }
        });
        return found;
    }

    /* Where this page sits in the chapter, and the modules either side of
       it: a split manual's module page otherwise says nothing about its
       place, and reading in order means going home between modules. */
    function wireTrail() {
        loadManual(function (data) {
            var here = pageModule(data);
            if (!here) {
                return;
            }
            var modules = [];
            each(data.entries, function (entry) {
                if (entry.kind === "section") {
                    modules.push(entry);
                }
            });
            var at = -1;
            each(modules, function (entry, position) {
                if (entry.node === here.node) {
                    at = position;
                }
            });
            var chapter = null;
            each(data.entries, function (entry) {
                if (entry.kind === "chapter") {
                    chapter = entry;
                }
            });

            var heading = document.querySelector("h3.section, h2.section, h4.subsection");
            var trail = document.createElement("nav");
            trail.className = "dk-trail";
            trail.setAttribute("aria-label", "You are here");
            if (chapter) {
                var home = document.createElement("a");
                home.href = htmlTarget(chapter.node) + ".html";
                home.textContent = chapter.label;
                trail.appendChild(home);
                var slash = document.createElement("span");
                slash.textContent = "/";
                trail.appendChild(slash);
            }
            var itself = document.createElement("span");
            itself.className = "dk-trail-here";
            itself.textContent = here.label;
            trail.appendChild(itself);
            heading.parentNode.insertBefore(trail, heading);

            if (at === -1 || modules.length < 2) {
                return;
            }
            var pager = document.createElement("nav");
            pager.className = "dk-pager";
            pager.setAttribute("aria-label", "Modules");
            var step = function (entry, relation, side) {
                var box = document.createElement("div");
                box.className = "dk-pager-" + side;
                var label = document.createElement("span");
                label.textContent = relation;
                var link = document.createElement("a");
                link.href = entryHref(entry);
                link.textContent = entry.label;
                box.appendChild(label);
                box.appendChild(link);
                pager.appendChild(box);
            };
            if (at > 0) {
                step(modules[at - 1], "Previous", "prev");
            }
            if (at < modules.length - 1) {
                step(modules[at + 1], "Next", "next");
            }
            if (pager.children.length) {
                heading.parentNode.appendChild(pager);
            }
        });
    }

    /* "Source: src/dokgen/data.scm:231", linked when the chapter was built
       with the repository its source paths hang from. */
    function linkSourceCaption(caption) {
        var text = caption.textContent.replace(/^Source: /, "").trim();
        var colon = text.lastIndexOf(":");
        if (colon === -1) {
            return;
        }
        var path = text.slice(0, colon);
        var line = text.slice(colon + 1);
        if (!/^[0-9]+$/.test(line) || !path) {
            return;
        }
        loadManual(function (data) {
            if (!data || !data.repository) {
                return;
            }
            var link = document.createElement("a");
            link.href = data.repository.replace(/\/+$/, "") + "/" + path +
                "#L" + line;
            link.textContent = text;
            caption.textContent = "Source: ";
            caption.appendChild(link);
        });
    }

    function buildIndex() {
        var toc = document.querySelector("ul.mini-toc");
        var blocks = definitions();
        if (!toc && !blocks.length) {
            return null;
        }

        var nav = document.createElement("nav");
        nav.className = "dk-index";
        nav.id = "dk-index";
        nav.setAttribute("aria-label", "Contents");

        var head = document.createElement("div");
        head.className = "dk-index-head";
        var title = document.createElement("h2");
        title.textContent = pageTitle();
        title.title = title.textContent;
        var expand = indexTool("⊞", "Expand every group");
        var collapse = indexTool("⊟", "Collapse every group");
        var close = createIcon("✕", "Close the contents");
        close.className += " dk-index-close";
        head.appendChild(title);
        head.appendChild(expand);
        head.appendChild(collapse);
        head.appendChild(close);
        nav.appendChild(head);

        /* The manual's own title above the page's, and what the page holds
           below it: the two things a reference says about itself before
           its list. */
        var site = document.querySelector("h1.settitle");
        if (site && tidy(site.textContent)) {
            var kicker = document.createElement("p");
            kicker.className = "dk-index-site";
            kicker.textContent = tidy(site.textContent);
            nav.appendChild(kicker);
        }

        var meta = document.createElement("p");
        meta.className = "dk-index-meta";
        nav.appendChild(meta);

        var filter = document.createElement("input");
        filter.type = "search";
        filter.className = "dk-index-filter";
        filter.placeholder = "Filter the contents…";
        filter.setAttribute("aria-label", "Filter the contents of this page");
        nav.appendChild(filter);

        var scroll = document.createElement("div");
        scroll.className = "dk-index-scroll";
        var list = document.createElement("ul");
        list.className = "dk-nav";
        var empty = document.createElement("p");
        empty.className = "dk-index-empty";
        empty.textContent = "Nothing here matches.";
        empty.hidden = true;
        scroll.appendChild(list);
        scroll.appendChild(empty);
        var elsewhere = document.createElement("section");
        elsewhere.className = "dk-elsewhere";
        elsewhere.hidden = true;
        var elsewhereTitle = document.createElement("h3");
        elsewhereTitle.textContent = "Elsewhere in the manual";
        var elsewhereList = document.createElement("ul");
        elsewhere.appendChild(elsewhereTitle);
        elsewhere.appendChild(elsewhereList);
        scroll.appendChild(elsewhere);
        nav.appendChild(scroll);

        var groups = [];
        var entries = [];
        var position = 0;

        function entryFor(block) {
            var name = nameOf(block) || signatureOf(block);
            if (!name) {
                return null;
            }
            var anchor = anchorTarget(block, position++);
            var item = document.createElement("li");
            var link = document.createElement("a");
            link.className = "dk-def-link";
            link.href = "#" + anchor.id;
            link.title = signatureOf(block) || name;
            var kind = document.createElement("span");
            kind.className = "dk-kind";
            kind.textContent = kindOf(block);
            link.appendChild(kind);
            link.appendChild(document.createTextNode(name));
            item.appendChild(link);
            return {
                li: item,
                link: link,
                block: block,
                anchor: anchor,
                group: null,
                text: (kindOf(block) + " " + signatureOf(block) + " " + summaryOf(block)).toLowerCase()
            };
        }

        function openGroup(group, open) {
            if (!group.list) {
                return;
            }
            group.list.hidden = !open;
            group.toggle.setAttribute("aria-expanded", open ? "true" : "false");
            group.li.classList.toggle("dk-open", open);
        }

        function headingLevel(heading) {
            /* The top node is an unnumbered chapter, not a container for
               the numbered ones: the index lists it beside them. */
            if (heading.tagName === "H1") {
                return 2;
            }
            if (heading.classList.contains("chapter")) {
                return 2;
            }
            return heading.classList.contains("section") ? 3 : 4;
        }

        function headingTarget(heading) {
            var box = heading.parentElement;
            while (box && !box.id) {
                box = box.parentElement;
            }
            var target = box && box.id ? box : heading;
            if (!target.id) {
                target.id = "dk-" + tidy(heading.textContent).toLowerCase().replace(/[^a-z0-9]+/g, "-");
            }
            return target;
        }

        function headingGroup(heading) {
            var label = tidy(heading.textContent);
            var item = document.createElement("li");
            item.className = "dk-group";
            var row = document.createElement("div");
            row.className = "dk-row";
            var target = headingTarget(heading);
            var anchor = document.createElement("a");
            anchor.href = "#" + target.id;
            anchor.textContent = label;
            anchor.title = label;
            row.appendChild(anchor);
            item.appendChild(row);
            var children = document.createElement("ul");
            children.hidden = true;
            item.appendChild(children);
            return {
                li: item,
                row: row,
                link: anchor,
                target: target,
                label: label.toLowerCase(),
                entries: [],
                list: children,
                toggle: null,
                parent: null
            };
        }

        function countIn(group) {
            var count = document.createElement("span");
            count.className = "dk-count";
            count.textContent = String(group.entries.length);
            count.title = group.entries.length
                + (group.entries.length === 1 ? " name" : " names");
            group.link.appendChild(count);
        }

        function finishGroup(group) {
            if (!group.list || !group.list.children.length) {
                if (group.list) {
                    group.list.remove();
                    group.list = null;
                }
                var spacer = document.createElement("span");
                spacer.className = "dk-toggle dk-toggle-empty";
                group.row.insertBefore(spacer, group.link);
                return;
            }
            var toggle = document.createElement("button");
            toggle.type = "button";
            toggle.className = "dk-toggle";
            toggle.setAttribute("aria-expanded", "false");
            toggle.setAttribute("aria-label", "Show what " + group.link.textContent + " contains");
            toggle.addEventListener("click", function () {
                openGroup(group, group.list.hidden);
            });
            group.row.insertBefore(toggle, group.link);
            group.toggle = toggle;
            countIn(group);
        }

        /* A page that holds its own sections is indexed from its
           headings, which is the whole page even in a single-page manual. */
        function buildTree() {
            var stack = [];
            each(document.querySelectorAll("h1, h2.chapter, h3.section, h4.subsection, dl.def-block"), function (node) {
                if (node.classList.contains("settitle")) {
                    return;
                }
                if (node.tagName === "DL") {
                    var entry = entryFor(node);
                    if (!entry) {
                        return;
                    }
                    var holder = stack.length ? stack[stack.length - 1].group : null;
                    entry.group = holder;
                    if (holder) {
                        holder.entries.push(entry);
                        holder.list.appendChild(entry.li);
                    } else {
                        list.appendChild(entry.li);
                    }
                    entries.push(entry);
                    return;
                }
                var level = headingLevel(node);
                while (stack.length && stack[stack.length - 1].level >= level) {
                    stack.pop();
                }
                var group = headingGroup(node);
                var parent = stack.length ? stack[stack.length - 1].group : null;
                group.depth = parent ? parent.depth + 1 : 0;
                if (parent) {
                    group.parent = parent;
                    parent.list.appendChild(group.li);
                } else {
                    list.appendChild(group.li);
                }
                stack.push({ level: level, group: group });
                groups.push(group);
            });
            each(groups, finishGroup);
        }

        function groupFor(link) {
            var label = tidy(link.textContent);
            var target = targetOf(link);
            var item = document.createElement("li");
            item.className = "dk-group";
            var row = document.createElement("div");
            row.className = "dk-row";
            var group = { li: item, row: row, link: null, target: target, label: label.toLowerCase(), entries: [], list: null, toggle: null, parent: null, depth: 0 };

            if (target) {
                each(target.querySelectorAll("dl.def-block"), function (block) {
                    var entry = entryFor(block);
                    if (!entry) {
                        return;
                    }
                    entry.group = group;
                    group.entries.push(entry);
                });
            }

            if (group.entries.length) {
                var toggle = document.createElement("button");
                toggle.type = "button";
                toggle.className = "dk-toggle";
                toggle.setAttribute("aria-expanded", "false");
                toggle.setAttribute("aria-label", "Show what " + label + " contains");
                toggle.addEventListener("click", function () {
                    openGroup(group, group.list.hidden);
                });
                row.appendChild(toggle);
                group.toggle = toggle;
                group.list = document.createElement("ul");
                group.list.hidden = true;
                each(group.entries, function (entry) {
                    group.list.appendChild(entry.li);
                });
            } else {
                var spacer = document.createElement("span");
                spacer.className = "dk-toggle dk-toggle-empty";
                row.appendChild(spacer);
            }

            var anchor = document.createElement("a");
            anchor.href = link.getAttribute("href");
            anchor.textContent = label;
            anchor.title = label;
            row.appendChild(anchor);
            item.appendChild(row);
            if (group.list) {
                item.appendChild(group.list);
            }
            group.link = anchor;
            if (group.entries.length) {
                countIn(group);
            }
            return group;
        }

        /* A chapter page of a split manual has no sections of its own: its
           mini-toc names the pages that follow, so that is the tree. */
        if (document.querySelector(".section-level-extent, .subsection-level-extent")) {
            buildTree();
        } else if (toc) {
            each(toc.children, function (item) {
                var link = item.querySelector("a");
                if (!link) {
                    return;
                }
                var group = groupFor(link);
                list.appendChild(group.li);
                groups.push(group);
                each(group.entries, function (entry) {
                    entries.push(entry);
                });
            });
        }

        if (!groups.length) {
            each(blocks, function (block) {
                var entry = entryFor(block);
                if (!entry) {
                    return;
                }
                list.appendChild(entry.li);
                entries.push(entry);
            });
        }

        if (!groups.length && !entries.length) {
            return null;
        }

        /* A reference index shows its shape before it is touched: the
           top level is open, so a chapter lists its sections (or a
           module its subsections) without a click.  The definitions
           below them stay folded until a section is opened. */
        each(groups, function (group) {
            if (group.depth === 0 && group.list) {
                openGroup(group, true);
            }
        });

        /* The definition being read is marked as it scrolls, and the
           group that holds it opens, so the index says where the reader
           is even after a jump from a link. */
        var active = null;
        function activate(item) {
            if (active === item) {
                return;
            }
            if (active) {
                active.link.removeAttribute("aria-current");
            }
            active = item;
            item.link.setAttribute("aria-current", "location");
            var holder = item.group || item.parent || null;
            while (holder) {
                if (holder.list && holder.list.hidden) {
                    openGroup(holder, true);
                }
                holder = holder.parent;
            }
            var linkBox = item.link.getBoundingClientRect();
            var scrollBox = scroll.getBoundingClientRect();
            if (linkBox.top < scrollBox.top || linkBox.bottom > scrollBox.bottom) {
                scroll.scrollTop += linkBox.top - scrollBox.top - scrollBox.height / 2;
            }
        }

        /* The bar marks the heading or definition being read: the last one
           whose top has passed under the bar is the one in view. */
        var byTarget = new Map();
        each(groups, function (group) {
            if (group.target) {
                byTarget.set(group.target, group);
            }
        });
        each(entries, function (entry) {
            byTarget.set(entry.anchor, entry);
        });
        var watched = [];
        each(document.querySelectorAll(".top-level-extent, .chapter-level-extent, .section-level-extent, .subsection-level-extent, a.anchor, dl.def-block"), function (target) {
            if (byTarget.has(target)) {
                watched.push(target);
            }
        });
        /* The reader's place is read from offsets measured once, not from
           a rectangle per card per frame: a page of five hundred
           definitions carries a thousand of them, and measuring all of
           them on every frame is what makes it stutter.  The offsets are
           in document order, so the one in view is a binary search away
           and a frame reads no layout at all. */
        var marks = [];
        var line = 96;

        function measure() {
            var bar = document.querySelector(".dk-bar");
            line = (bar ? bar.getBoundingClientRect().height : 44) + 32;
            var list = [];
            each(watched, function (target) {
                list.push({
                    at: target.getBoundingClientRect().top + window.scrollY,
                    item: byTarget.get(target)
                });
            });
            list.sort(function (first, second) {
                return first.at - second.at;
            });
            marks = list;
        }

        function place() {
            var y = window.scrollY + line;
            var low = 0;
            var high = marks.length - 1;
            var found = null;
            while (low <= high) {
                var middle = (low + high) >> 1;
                if (marks[middle].at <= y) {
                    found = marks[middle].item;
                    low = middle + 1;
                } else {
                    high = middle - 1;
                }
            }
            if (!found && groups.length) {
                found = groups[0];
            }
            if (found) {
                activate(found);
            }
        }

        var waiting = false;
        var progress = null;

        function frame() {
            waiting = false;
            if (progress === null) {
                progress = document.querySelector(".dk-progress") || false;
            }
            place();
            if (progress) {
                var room = document.documentElement.scrollHeight - window.innerHeight;
                progress.style.width = (room > 0
                    ? Math.min(100, (window.scrollY / room) * 100)
                    : 0) + "%";
            }
        }

        function later() {
            if (!waiting) {
                waiting = true;
                window.requestAnimationFrame(frame);
            }
        }

        if (watched.length) {
            measure();
            window.addEventListener("scroll", later, { passive: true });
            window.addEventListener("resize", function () {
                measure();
                later();
            });
            /* Web fonts and a diagram land after the first paint and move
               every offset with them. */
            window.addEventListener("load", function () {
                measure();
                later();
            });
            place();
        }

        /* A reader who knows the name but not its punctuation types the
           initials of its words: dgc finds dokgen_005fcli_005fcall, and
           the filter says how much of the page is left. */
        function subsequence(text, needle) {
            var at = 0;
            for (var index = 0; index < needle.length; index += 1) {
                at = text.indexOf(needle.charAt(index), at);
                if (at === -1) {
                    return false;
                }
                at += 1;
            }
            return true;
        }

        function matches(text, needle) {
            return needle === ""
                || text.indexOf(needle) !== -1
                || subsequence(text, needle);
        }

        filter.addEventListener("input", function () {
            var needle = filter.value.trim().toLowerCase();
            var found = 0;
            each(groups, function (group) {
                var shown = 0;
                each(group.entries, function (entry) {
                    var hit = matches(entry.text, needle);
                    entry.li.hidden = !hit;
                    if (hit) {
                        shown += 1;
                    }
                });
                var named = needle !== "" && matches(group.label, needle);
                group.li.hidden = needle !== "" && !named && shown === 0;
                if (group.list) {
                    openGroup(group, needle !== "");
                }
                if (!group.li.hidden) {
                    found += 1;
                }
            });
            each(entries, function (entry) {
                if (entry.group) {
                    return;
                }
                var hit = matches(entry.text, needle);
                entry.li.hidden = !hit;
                if (!entry.li.hidden) {
                    found += 1;
                }
            });
            /* A matching definition can sit under a group whose own title
               does not match: the path to it is shown with it. */
            if (needle !== "") {
                for (var index = groups.length - 1; index >= 0; index -= 1) {
                    var group = groups[index];
                    if (!group.li.hidden && group.parent) {
                        group.parent.li.hidden = false;
                    }
                }
            }
            /* What the filter found, out of what there was to find: the
               index says both rather than leaving the reader to wonder. */
            var visible = 0;
            for (var at = 0; at < entries.length; at += 1) {
                if (!entries[at].li.hidden &&
                    (!entries[at].group || !entries[at].group.li.hidden)) {
                    visible += 1;
                }
            }
            meta.textContent = needle === ""
                ? metaText
                : visible + " of " + entries.length +
                    (entries.length === 1 ? " name" : " names");
            empty.hidden = !(needle !== "" && found === 0);
            showElsewhere(needle);
            /* Clearing the filter should not hide the reader's place. */
            if (needle === "" && active && active.group) {
                openGroup(active.group, true);
            }
        });

        /* The filter is where a reader lands after pressing /: the arrow
           keys walk the rows it left, so a name is a keystroke away and
           not a reach for the mouse. */
        filter.addEventListener("keydown", function (event) {
            if (event.key !== "ArrowDown" && event.key !== "ArrowUp" && event.key !== "Escape") {
                return;
            }
            if (event.key === "Escape") {
                filter.value = "";
                filter.dispatchEvent(new Event("input"));
                return;
            }
            var links = [];
            each(nav.querySelectorAll("a[href^='#']"), function (link) {
                var item = link.closest("li");
                if (item && !item.hidden && link.getClientRects().length) {
                    links.push(link);
                }
            });
            if (!links.length) {
                return;
            }
            event.preventDefault();
            var at = links.indexOf(document.activeElement);
            var next = event.key === "ArrowDown"
                ? Math.min(at + 1, links.length - 1)
                : Math.max(at - 1, 0);
            links[next].focus();
        });

        /* A result on another page, so the filter on a module page can
           reach the whole chapter: the index it reads is written beside
           the chapter by the build. */
        function showElsewhere(needle) {
            if (needle.length < 2 || document.body.classList.contains("dk-flat")) {
                elsewhere.hidden = true;
                return;
            }
            loadManual(function (data) {
                var here = pageModule(data);
                var rows = [];
                if (data && data.entries) {
                    each(data.entries, function (entry) {
                        if (rows.length >= 12 || entry.kind === "chapter") {
                            return;
                        }
                        /* What this page already lists is in the index
                           above; the point of this list is the rest. */
                        if (here && entry.node === here.node) {
                            return;
                        }
                        var haystack = entry.label.toLowerCase();
                        if (matches(haystack, needle) ||
                            (entry.category &&
                             matches(entry.category.toLowerCase(), needle))) {
                            rows.push(entry);
                        }
                    });
                }
                elsewhereList.textContent = "";
                each(rows, function (entry) {
                    var item = document.createElement("li");
                    var link = document.createElement("a");
                    link.href = entryHref(entry);
                    link.textContent = entry.label;
                    item.appendChild(link);
                    var where = document.createElement("small");
                    var module = moduleEntry(data, entry);
                    where.textContent = entry.kind === "section"
                        ? "module"
                        : shortKind(entry.category) +
                          (module ? " in " + module.label : "");
                    item.appendChild(where);
                    elsewhereList.appendChild(item);
                });
                elsewhere.hidden = rows.length === 0;
                elsewhereTitle.textContent = rows.length === 1
                    ? "One match elsewhere in the manual"
                    : rows.length + " matches elsewhere in the manual";
            });
        }

        meta.textContent = (groups.length
            ? groups.length + (groups.length === 1 ? " section · " : " sections · ")
            : "") + entries.length + (entries.length === 1 ? " name" : " names");
        var metaText = meta.textContent;

        expand.addEventListener("click", function () {
            each(groups, function (group) {
                if (group.list) {
                    openGroup(group, true);
                }
            });
        });
        collapse.addEventListener("click", function () {
            each(groups, function (group) {
                if (group.list) {
                    openGroup(group, false);
                }
            });
        });

        return {
            nav: nav,
            filter: filter,
            close: close,
            groups: groups,
            entries: entries,
            remeasure: measure
        };
    }

    /* --- the keys ----------------------------------------------------- */

    /* j and k walk the definitions the way an editor walks a buffer, so a
       module can be read with a hand on the keyboard; t returns to the
       top.  A field or a modifier keeps the letters for itself. */
    function wireKeys(entries) {
        if (!entries.length) {
            return;
        }
        document.addEventListener("keydown", function (event) {
            if (event.metaKey || event.ctrlKey || event.altKey || event.repeat) {
                return;
            }
            if (event.key !== "j" && event.key !== "k" && event.key !== "t") {
                return;
            }
            var field = event.target;
            if (field && (field.isContentEditable ||
                          /^(input|textarea|select)$/i.test(field.tagName))) {
                return;
            }
            var still = window.matchMedia
                && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
            var behaviour = still ? "auto" : "smooth";
            if (event.key === "t") {
                event.preventDefault();
                window.scrollTo({ top: 0, behavior: behaviour });
                return;
            }
            var bar = document.querySelector(".dk-bar");
            var line = (bar ? bar.getBoundingClientRect().bottom : 0) + 8;
            var here = -1;
            for (var at = 0; at < entries.length; at += 1) {
                if (entries[at].anchor.getBoundingClientRect().top <= line) {
                    here = at;
                } else {
                    break;
                }
            }
            var next = event.key === "j"
                ? Math.min(here + 1, entries.length - 1)
                : Math.max(here - 1, 0);
            event.preventDefault();
            entries[next].anchor.scrollIntoView({ behavior: behaviour, block: "start" });
        });
    }

    /* --- the bar and the drawer --------------------------------------- */

    function createIcon(label, description) {
        var button = document.createElement("button");
        button.type = "button";
        button.className = "dk-icon";
        button.textContent = label;
        button.title = description;
        button.setAttribute("aria-label", description);
        return button;
    }

    /* A small button in the index's own head: the same piece as the bar's
       icons, one step quieter. */
    function indexTool(label, text) {
        var button = createIcon(text, label);
        button.className = "dk-index-tool";
        return button;
    }

    function pageTitle() {
        /* The chapter names the page; a section only does so when the
           page holds no chapter of its own. */
        var heading = document.querySelector("h2.chapter")
            || document.querySelector("h3.section")
            || document.querySelector("h4.subsection")
            || document.querySelector("h1");
        var title = heading ? tidy(heading.textContent) : "";
        if (!title) {
            title = tidy(document.title);
        }
        return title || "Contents";
    }

    /* texi2any titles a manual that sets none "Untitled Document"; the tab
       a reader keeps open deserves the page's own name. */
    function retitle() {
        if (!document.title || /^\s*(untitled document)?\s*$/i.test(document.title)) {
            document.title = pageTitle();
        }
    }

    function buildBar(index) {
        var bar = document.createElement("header");
        bar.className = "dk-bar";

        var menu = createIcon("☰", "Open the contents");
        menu.className += " dk-menu";
        menu.setAttribute("aria-controls", index.nav.id);
        menu.setAttribute("aria-expanded", "false");

        var title = document.createElement("span");
        title.className = "dk-bar-title";
        title.textContent = pageTitle();

        var top = createIcon("↑", "Back to the top");
        top.className += " dk-top";
        top.hidden = true;

        var theme = createIcon("◐", "Switch between a light and a dark page");
        theme.className += " dk-theme";

        var progress = document.createElement("div");
        progress.className = "dk-progress";
        progress.setAttribute("aria-hidden", "true");

        bar.appendChild(menu);
        bar.appendChild(title);
        bar.appendChild(top);
        bar.appendChild(theme);
        bar.appendChild(progress);

        theme.addEventListener("click", function () {
            applyTheme(currentTheme() === "dark" ? "light" : "dark", true);
            redrawDiagrams();
        });
        top.addEventListener("click", function () {
            window.scrollTo({ top: 0, behavior: reduceMotion() ? "auto" : "smooth" });
        });
        var atTop = true;
        window.addEventListener("scroll", function () {
            var next = window.scrollY < 640;
            if (next !== atTop) {
                atTop = next;
                top.hidden = next;
            }
        }, { passive: true });

        return { bar: bar, menu: menu, theme: theme, top: top };
    }

    function isTyping(element) {
        if (!element) {
            return false;
        }
        var tag = element.tagName;
        return tag === "INPUT" || tag === "TEXTAREA" || tag === "SELECT" || element.isContentEditable;
    }

    function wireDrawer(chrome, index) {
        var scrim = document.createElement("div");
        scrim.className = "dk-scrim";
        scrim.hidden = true;

        function open() {
            if (!phone.matches) {
                return;
            }
            body.classList.add("dk-index-open");
            chrome.menu.setAttribute("aria-expanded", "true");
            scrim.hidden = false;
            index.filter.focus();
        }

        function close() {
            var wasOpen = body.classList.contains("dk-index-open");
            body.classList.remove("dk-index-open");
            chrome.menu.setAttribute("aria-expanded", "false");
            scrim.hidden = true;
            if (wasOpen) {
                chrome.menu.focus();
            }
        }

        chrome.menu.addEventListener("click", function () {
            if (body.classList.contains("dk-index-open")) {
                close();
            } else {
                open();
            }
        });
        index.close.addEventListener("click", close);
        scrim.addEventListener("click", close);
        each(index.nav.querySelectorAll("a"), function (link) {
            link.addEventListener("click", close);
        });
        document.addEventListener("keydown", function (event) {
            if (event.key === "Escape" && body.classList.contains("dk-index-open")) {
                close();
            } else if (event.key === "/" && !isTyping(event.target)) {
                event.preventDefault();
                open();
                index.filter.focus();
            }
        });
        var onResize = function () {
            if (!phone.matches) {
                close();
            }
        };
        if (phone.addEventListener) {
            phone.addEventListener("change", onResize);
        } else {
            phone.addListener(onResize);
        }
        return scrim;
    }

    function buildSkip() {
        var target = document.querySelector(".chapter-level-extent[id], .section-level-extent[id]");
        if (!target) {
            return null;
        }
        target.setAttribute("tabindex", "-1");
        var link = document.createElement("a");
        link.className = "dk-skip";
        link.href = "#" + target.id;
        link.textContent = "Skip to the content";
        link.addEventListener("click", function () {
            target.focus();
        });
        return link;
    }

    /* --- diagrams ----------------------------------------------------- */

    var MERMAID_MARKER = "%%dokgen-mermaid";

    function diagramSource(pre) {
        var lines = pre.textContent.replace(/\s+$/, "").split("\n");
        if (lines.length < 2) {
            return null;
        }
        if (lines[lines.length - 1].replace(/\s/g, "") !== MERMAID_MARKER) {
            return null;
        }
        lines.pop();
        return lines.join("\n");
    }

    function loadMermaid(done) {
        if (window.mermaid) {
            done();
            return;
        }
        var base = "";
        each(document.scripts, function (tag) {
            if (tag.src && /dokgen\.js(?:\?|$)/.test(tag.src)) {
                base = tag.src.replace(/[^\/]*$/, "");
            }
        });
        var script = document.createElement("script");
        script.src = base + "dokgen-mermaid.js";
        script.onload = done;
        /* A page built without the bundled renderer keeps the source. */
        script.onerror = function () {};
        document.head.appendChild(script);
    }

    /* --- diagrams ----------------------------------------------------- */

    /* The diagrams are drawn in the page's own palette: the card colour
       behind them, the accent on their edges, the text colour in their
       labels.  Reading the stylesheet instead of repeating its hex values
       is what keeps the two in step, and what lets a theme change redraw
       them rather than leave a white plate at night. */
    var drawnDiagrams = [];

    function diagramTheme() {
        var style = window.getComputedStyle(document.documentElement);
        var colour = function (name, fallback) {
            var value = style.getPropertyValue(name).trim();
            return value || fallback;
        };
        var plate = colour("--dk-card", "#fffdf9");
        var node = colour("--dk-signature", "#f3ece1");
        var text = colour("--dk-fg", "#232019");
        var border = colour("--dk-border", "#e3d8c8");
        var accent = colour("--dk-accent", "#a86a3c");
        return {
            darkMode: root.getAttribute("data-dk-theme") === "dark",
            background: plate,
            fontFamily: colour("--dk-sans", "system-ui, sans-serif"),
            fontSize: "15px",
            primaryColor: node,
            primaryTextColor: text,
            primaryBorderColor: border,
            secondaryColor: plate,
            secondaryTextColor: text,
            secondaryBorderColor: border,
            tertiaryColor: plate,
            tertiaryTextColor: text,
            tertiaryBorderColor: border,
            mainBkg: node,
            nodeBorder: border,
            nodeTextColor: text,
            lineColor: accent,
            arrowheadColor: accent,
            textColor: text,
            titleColor: text,
            edgeLabelBackground: plate,
            clusterBkg: plate,
            clusterBorder: border
        };
    }

    function drawDiagrams(pending) {
        var boxes = [];
        var restore = function () {
            each(pending, function (item) {
                item.pre.hidden = false;
                item.box = null;
            });
            each(boxes, function (box) {
                box.remove();
            });
        };
        try {
            window.mermaid.initialize({
                startOnLoad: false,
                securityLevel: "strict",
                theme: "base",
                themeVariables: diagramTheme()
            });
        } catch (error) {
            restore();
            return;
        }
        each(pending, function (item) {
            var box = document.createElement("div");
            box.className = "mermaid dk-diagram";
            if (item.source.indexOf("%% dokgen-map") !== -1) {
                box.className += " dk-map";
            }
            box.textContent = item.source;
            item.pre.parentNode.insertBefore(box, item.pre.nextSibling);
            item.pre.hidden = true;
            item.box = box;
            boxes.push(box);
        });
        var drawing;
        try {
            drawing = window.mermaid.run({ nodes: boxes });
        } catch (error) {
            restore();
            return;
        }
        if (drawing && drawing.catch) {
            drawing.catch(restore);
        }
    }

    function renderDiagrams() {
        var pending = [];
        each(document.querySelectorAll("pre"), function (pre) {
            var source = diagramSource(pre);
            if (source) {
                pending.push({ pre: pre, source: source });
            }
        });
        if (!pending.length) {
            return;
        }
        drawnDiagrams = pending;
        loadMermaid(function () {
            drawDiagrams(pending);
        });
    }

    /* A theme change re-initializes the renderer and draws the same sources
       again, so the diagrams are made of the new palette rather than left in
       the old one's colours. */
    function redrawDiagrams() {
        if (!drawnDiagrams.length || !window.mermaid) {
            return;
        }
        each(drawnDiagrams, function (item) {
            if (item.box && item.box.parentNode) {
                item.box.parentNode.removeChild(item.box);
            }
            item.box = null;
            item.pre.hidden = false;
        });
        drawDiagrams(drawnDiagrams);
    }

    /* --- start -------------------------------------------------------- */

    applyTheme(savedTheme() || systemTheme(), false);
    followSystemTheme();
    retitle();
    addCopyButtons();
    addSourcePanels();
    addExampleCopies();
    buildOutlines();
    renderDiagrams();

    var index = buildIndex();
    if (index) {
        body.classList.add("dk-has-index");
        /* A split manual links between pages in its navigation rows; a
           single-page manual repeats links to itself before every
           section, and the index already offers those. */
        if (!document.querySelector(".nav-panel a[href$='.html']")) {
            body.classList.add("dk-flat");
        } else {
            /* On a split manual the box searches further than this page,
               and there is nothing else that says so. */
            index.filter.placeholder = "Search this page and the manual… (press /)";
            index.filter.setAttribute("aria-label",
                "Search this page and the rest of the manual; press / to reach this box");
        }
        var chrome = buildBar(index);
        var scrim = wireDrawer(chrome, index);
        var skip = buildSkip();
        body.insertBefore(index.nav, body.firstChild);
        body.insertBefore(scrim, index.nav);
        body.insertBefore(chrome.bar, scrim);
        if (skip) {
            body.insertBefore(skip, chrome.bar);
        }
        /* The index was built before the bar existed; measuring now that
           both are in the page marks the reader's place on arrival. */
        index.remeasure();
        window.dispatchEvent(new Event("scroll"));
        wireKeys(index.entries);
        wireTrail();
    }
}());

  [🧪 test] the script lands beside it too
    ✅ got: #t
ℹ️ info - ran 3 tasks in: 0 seconds, 97468 microseconds
ℹ️ info - counted 1 file, 3 suites, 36 tests and 61 assertions

running unit tests from file: diagrams-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 721144384 (replay with VERITAS_SEED=721144384)
+----------------------------------------------+
[📑 suite] A docstring split into the prose and the diagrams it holds
  [🧪 test] a gnuplot fence is read as a gnuplot diagram
    ✅ got: ((diagram gnuplot plot sin(x)))
  [🧪 test] a fence in a language dokgen does not read stays text
    ✅ got: ((text . ```dot
digraph { a -> b }
```))
  [🧪 test] an unterminated fence stays text, so nothing is lost
    ✅ got: ((text . Before.
```mermaid
graph TD
  source --> manual))
  [🧪 test] a diagram quoted inside a Texinfo block stays a sample
    ✅ got: ((text . @example
Write it so:
```mermaid
graph TD
  source --> manual
```
@end example))
  [🧪 test] a fence that stands on an indented line is still read
    ✅ got: ((diagram mermaid graph TD
  source --> manual))
  [🧪 test] a fenced diagram is split out of the prose around it
    ✅ got: ((text . Before.) (diagram mermaid graph TD
  source --> manual) (text . After.))
  [🧪 test] a docstring with no fence is one block of prose
    ✅ got: ((text . Just prose.))
  [🧪 test] two diagrams in one docstring are both read
    ✅ got: ((diagram mermaid graph TD
  source --> manual) (text . Prose.) (diagram mermaid graph TD
  source --> manual))
+----------------------------------------------+
[📑 suite] The name a diagram's files are written under
  [🧪 test] the owner is spelled the way a shell and a URL accept, and a digest follows
    ✅ got: api-symbols-a96d6976
  [🧪 test] the same diagram under the same owner gets the same name
    ✅ got: #t
  [🧪 test] a changed diagram gets a name of its own
    ✅ got: #t
+----------------------------------------------+
[📑 suite] The Texinfo that shows a diagram
  [🧪 test] a mermaid diagram no renderer drew is left as marked source
    [⚙️ assert] the source is shown instead of an image
    ✅ got: (para example)
    [⚙️ assert] the script can tell the diagram from a sample
    ✅ got: graph TD
  source --> manual
%% dokgen-mermaid
  [🧪 test] a mermaid diagram a renderer drew becomes the image it wrote
    [⚙️ assert] the node is a paragraph holding the image
    ✅ got: (para (image (% (file diagrams/render-me-a96d6976) (alt-text Mermaid diagram))))
    [⚙️ assert] the image is written where the reference says
    ✅ got: #t
    [⚙️ assert] the source stays beside the image for a reader who re-renders it
    ✅ got: #t
  [🧪 test] a plot a renderer drew becomes the SVG gnuplot wrote, named as such
    [⚙️ assert] the node is a paragraph holding an SVG image
    ✅ got: (para (image (% (file diagrams/plot-me-d3974797) (alt-text Gnuplot diagram) (extension svg))))
    [⚙️ assert] the plot's source is kept, without the terminal the run chose
    ✅ got: #t
    [⚙️ assert] the image gnuplot wrote is the one used
    ✅ got: #t
    [⚙️ assert] no wrapper script is left behind
    ✅ got: #t
    [⚙️ assert] the terminal that draws an SVG is asked for
    ✅ got: set terminal svg
    [⚙️ assert] no background is asked for, which gnuplot 6 would refuse
    ✅ got: transparent
  [🧪 test] an image already in the destination is used without a renderer
    ✅ got: (para (image (% (file diagrams/pre-rendered-a96d6976) (alt-text Mermaid diagram))))
  [🧪 test] a gnuplot diagram nothing drew is left as plain source
    [⚙️ assert] gnuplot has no browser path, so the source stands
    ✅ got: ((para Gnuplot diagram, as source:) (example plot sin(x)))
ℹ️ info - ran 3 tasks in: 0 seconds, 63258 microseconds
ℹ️ info - counted 1 file, 3 suites, 16 tests and 24 assertions

running unit tests from file: stats-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 721144384 (replay with VERITAS_SEED=721144384)
+----------------------------------------------+
[📑 suite] What a single file of Scheme source is made of
  [🧪 test] one decision point is counted for each branching form
    ✅ got: 4
  [🧪 test] every line of a string that spans several of them is counted
    ✅ got: ((blank . 0) (comment . 0) (code . 3) (decisions . 0))
  [🧪 test] an empty file counts nothing
    ✅ got: ((blank . 0) (comment . 0) (code . 0) (decisions . 0))
  [🧪 test] the line of a file that ends without a newline is counted
    ✅ got: ((blank . 0) (comment . 0) (code . 1) (decisions . 0))
  [🧪 test] a line of code, a line of comment and a blank line are told apart
    ✅ got: ((blank . 2) (comment . 4) (code . 5) (decisions . 1))
  [🧪 test] a branch written in a comment or in a string is not counted
    ✅ got: 0
  [🧪 test] a string holding an escaped quote stays one string
    ✅ got: ((blank . 0) (comment . 0) (code . 1) (decisions . 0))
  [🧪 test] every line of a block comment that spans several of them is counted
    ✅ got: ((blank . 0) (comment . 2) (code . 1) (decisions . 0))
+----------------------------------------------+
[📑 suite] The totals of a project's files, and the order they are shown in
  [🧪 test] the files are listed largest first, so a reader sees where the code is
    ✅ got: (large.scm small.scm)
  [🧪 test] the files' counts are added up
    ✅ got: ((blank . 2) (comment . 4) (code . 6) (decisions . 1) (bytes . 162))
+----------------------------------------------+
[📑 suite] What a repository's history says once git has printed it
  [🧪 test] what each file cost is summed, largest first, skipping what git cannot count
    ✅ got: ((src/dokgen/stats.scm 52 5) (README.org 0 1))
  [🧪 test] the commits the log holds are counted
    ✅ got: 2
  [🧪 test] the newest and the oldest commit are dated in UTC
    ✅ got: (2026-11-21 2026-11-20)
  [🧪 test] each author's additions and removals are summed, the largest first
    ✅ got: ((Someone Else 40 2) (Josep Bigorra 12 4))
  [🧪 test] no history at all is reported as nothing
    ✅ got: #f
  [🧪 test] the report is named after the newest commit
    ✅ got: ff0021d
ℹ️ info - ran 3 tasks in: 0 seconds, 40758 microseconds
ℹ️ info - counted 1 file, 3 suites, 16 tests and 16 assertions

running unit tests from file: stexi-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 721144384 (replay with VERITAS_SEED=721144384)
+----------------------------------------------+
[📑 suite] The shape of the library in one picture
  [🧪 test] the chapter puts the map before the table
    [⚙️ assert] the whole shape comes before the numbers
    ✅ got: #t
    [⚙️ assert] a sentence says what it is
    ✅ got: #t
  [🧪 test] every module is a node and every edge an arrow
    [⚙️ assert] the first module is a node
    ✅ got: m0["(depslib uses)"]
    [⚙️ assert] the second module is a node
    ✅ got: m1["(depslib base)"]
    [⚙️ assert] the edge points at what it draws on
    ✅ got: m0 --> m1
    [⚙️ assert] the map says it is one
    ✅ got: %% dokgen-map
+----------------------------------------------+
[📑 suite] What a module draws on, and what draws on it
  [🧪 test] a graph's dependencies are listed as links under it
    [⚙️ assert] the diagram is not the only way in
    ✅ got: #t
    [⚙️ assert] the links say what they are
    ✅ got: #t
  [🧪 test] a module something draws on gets a dotted arrow from it
    [⚙️ assert] the arrow points from the user
    ✅ got: m1 -.-> m0
    [⚙️ assert] the dependent is a node too
    ✅ got: m1["(depslib uses)"]
  [🧪 test] a module section says who draws on it
    ✅ got: #t
  [🧪 test] a module section counts the names it documents
    ✅ got: #t
  [🧪 test] the chapter opens with a map of its modules
    [⚙️ assert] the heading is there
    ✅ got: #t
    [⚙️ assert] the table says what a module draws on
    ✅ got: #t
    [⚙️ assert] each module is a row
    ✅ got: #t
  [🧪 test] a chapter with no module section has no map
    [⚙️ assert] nothing was documented, so nothing is mapped
    ✅ got: #f
  [🧪 test] a graph's dependents are listed as links too
    [⚙️ assert] the module that draws on it is a link
    ✅ got: #t
    [⚙️ assert] the list says which direction it is
    ✅ got: #t
+----------------------------------------------+
[📑 suite] What the chapter says it documents
  [🧪 test] a definition is counted wherever it sits, and nothing else is
    ✅ got: 1 module and 2 exported names
  [🧪 test] the kinds of name are named in the plural
    ✅ got: 2 procedures and 1 macro
+----------------------------------------------+
[📑 suite] A binding, as the definition a reader meets
  [🧪 test] a procedure with no docstring is still documented
    ✅ got: (*fragment* (anchor (% (name somelib_amodule_undocumented-procedure))) 
 (deffn (% (category Procedure) (name undocumented-procedure) (arguments )) (para Undocumented procedure.)))
  [🧪 test] a verbatim example in a docstring renders as a block
    ✅ got: (*fragment* (anchor (% (name somelib_amodule_verbatim-in-docstring))) 
 (deffn (% (category Procedure) (name verbatim-in-docstring) (arguments )) (para This procedure contains verbatim examples.) (verbatim (+ 3 5)
)))
  [🧪 test] a procedure with no argument says so with an empty list
    ✅ got: (*fragment* (anchor (% (name somelib_amodule_paramless-procedure))) 
 (deffn (% (category Procedure) (name paramless-procedure) (arguments )) (para This thunk says hi to another thunk.)))
  [🧪 test] a macro's arguments are named the way its source writes them
    ✅ got: x
  [🧪 test] an undocumented macro says so rather than nothing
    ✅ got: (*fragment* (anchor (% (name somelib_amodule_sub1))) 
 (defmac (% (name sub1) (arguments x)) (para Undocumented macro.)))
  [🧪 test] a parameter is documented with the value it defaults to
    ✅ got: (*fragment* (anchor (% (name somelib_amodule_bogus-parameter))) 
 (defvr (% (category Parameter) (name bogus-parameter)) (para Default value:) (verbatim "default value")))
  [🧪 test] a value short enough to read is written as it stands
    ✅ got: (*fragment* (anchor (% (name somelib_amodule_greeting))) 
 (defvr (% (category Variable) (name greeting)) (verbatim "hello")))
  [🧪 test] a value too long to read is described by its length instead
    ✅ got: (*fragment* (anchor (% (name somelib_amodule_big))) 
 (defvr (% (category Variable) (name big)) (para The value is a string of  (code 500)  characters, too long to print here.)))
  [🧪 test] a record type names its fields
    ✅ got: (*fragment* (anchor (% (name somelib_amodule_<being>))) 
 (deftp (% (category Record type) (name <being>) (attributes)) (para This record type has  2 fields:  (code name) ,  (code binomial) .)))
  [🧪 test] a diagram nothing drew is kept as its source
    ✅ got: (*fragment* (anchor (% (name somelib_amodule_diagrammed-procedure))) 
 (deffn (% (category Procedure) (name diagrammed-procedure) (arguments )) (para This procedure is drawn.) (para Mermaid diagram, as source:) (example graph TD
  a --> b
%% dokgen-mermaid)))
  [🧪 test] a record names its type and its fields
    ✅ got: (*fragment* (anchor (% (name somelib_amodule_panda))) 
 (defvar (% (name panda)) (para This is a record of the type  (code <being>) , with  2 fields:  (code name) ,  (code binomial) .)))
  [🧪 test] a macro is a definition of its own, arguments included
    ✅ got: (*fragment* (anchor (% (name somelib_amodule_add1))) 
 (defmac (% (name add1) (arguments x)) (para Add 1 to the given number.)))
+----------------------------------------------+
[📑 suite] The overview that opens a module
  [🧪 test] the names are listed with the sentence that documents each
    ✅ got: (*fragment* (subsection Overview) (itemize (item (ref (% (node somelib_amodule_paramless-procedure) (name paramless-procedure)))  —  (para This thunk says hi to another thunk.) 
)))
  [🧪 test] an object that says nothing is described, not left blank
    ✅ got: (*fragment* (subsection Overview) (itemize (item (ref (% (node somelib_amodule_undocumented-procedure) (name undocumented-procedure)))  —  (para An undocumented procedure.) 
)))
+----------------------------------------------+
[📑 suite] The parameters of a procedure, as its signature shows them
  [🧪 test] the optional parameters are the ones the source names
    ✅ got: OPT: opt1 opt2
  [🧪 test] optional parameters are introduced as optional
    [⚙️ assert] the marker, then one word per parameter
    ✅ value ("OPT:" "opt1" "opt2") matches ("OPT:" a b)
  [🧪 test] the required parameters are the ones the source names
    ✅ got: param1 param2 param3
  [🧪 test] a rest argument is shown after a dot
    ✅ got: . parts
  [🧪 test] keyword parameters carry their keyword
    ✅ got: KEY: #:key1 #:key2
  [🧪 test] a procedure with no parameter shows none
    ✅ got: 
  [🧪 test] a procedure that takes any keyword says so
    ✅ got: KEY: #:key1 #:key2 [arbitrary keys]
  [🧪 test] required parameters follow one another, in order
    [⚙️ assert] three words, one per parameter
    ✅ value ("param1" "param2" "param3") matches (a b c)
+----------------------------------------------+
[📑 suite] The modules a module draws on, drawn
  [🧪 test] a module with no coupling at all gets no graph
    [⚙️ assert] a leaf module says nothing it does not have
    ✅ got: #f
  [🧪 test] a module section that has dependencies draws them
    [⚙️ assert] the diagram is in the section
    ✅ got: #t
  [🧪 test] a graph names the module and every module it uses
    ✅ got: graph LR
    [⚙️ assert] the module is the first node
    ✅ got: m0["(depslib uses)"]
    [⚙️ assert] its dependency is the next
    ✅ got: m1["(depslib base)"]
    [⚙️ assert] the graph points at what it uses
    ✅ got: m0 --> m1
+----------------------------------------------+
[📑 suite] The index of the whole manual
  [🧪 test] the source of a definition says where it is written
    [⚙️ assert] the panel has a caption
    ✅ got: #t
    [⚙️ assert] the caption is a path and a line
    ✅ got: #t
  [🧪 test] every chapter, module and name is in it
    [⚙️ assert] the chapter is an entry of its own
    ✅ got: #t
    [⚙️ assert] a module is a section
    ✅ got: #t
    [⚙️ assert] a definition is a name
    ✅ got: #t
  [🧪 test] the index is written as JSON
    [⚙️ assert] it is JSON, not Scheme
    ✅ got: "kind": "chapter"
    [⚙️ assert] the repository is carried with it
    ✅ got: "repository": "https://example.org/repo"
    [⚙️ assert] a module names the node it is
    ✅ got: "node": "depslib_base"
  [🧪 test] a name in the index knows the anchor it lives at
    ✅ got: depslib_uses_twice-the-value
    ✅ got: depslib_uses
+----------------------------------------------+
[📑 suite] The source of a definition
  [🧪 test] a definition no file holds carries no source
    [⚙️ assert] the definition is still built
    ✅ got: #t
    [⚙️ assert] no example is added under the docstring
    ✅ got: #f
    [⚙️ assert] no panel is marked
    ✅ got: #f
  [🧪 test] a definition the tree holds carries the form behind it
    [⚙️ assert] an anchor marks the panel
    ✅ got: (anchor (% (name dk_source_dokgen_utils_unindent)))
    [⚙️ assert] the form is the one the file writes
    ✅ got: #t
+----------------------------------------------+
[📑 suite] What a module leaves undocumented
  [🧪 test] a module names the names it does not document
    [⚙️ assert] the gap is counted against the module
    ✅ got: #t
    [⚙️ assert] one gap is named
    ✅ got: #t
    [⚙️ assert] and so is the other
    ✅ got: #t
  [🧪 test] a module that documents every name says nothing
    [⚙️ assert] no gap means no line
    ✅ got: #f
+----------------------------------------------+
[📑 suite] Prose that points at definitions
  [🧪 test] a name two modules export is left as prose and reported
    [⚙️ assert] no link to a guess
    ✅ got: #f
    [⚙️ assert] the ambiguity is reported
    ✅ got: ambiguous
  [🧪 test] a docstring's code that is no name is left alone
    [⚙️ assert] nothing invented
    ✅ got: #f
    [⚙️ assert] and nothing reported
    ✅ got: ()
  [🧪 test] a mention of a name the chapter exports becomes a reference
    [⚙️ assert] the mention is a reference
    ✅ got: #t
  [🧪 test] a mention the chapter cannot place is not linked
    [⚙️ assert] the name is not in the chapter's table
    ✅ got: #f
  [🧪 test] a mention of a name the module keeps private is reported
    [⚙️ assert] the report names the module and the name
    ✅ got: (unexported (dokgen data) definition-form)
+----------------------------------------------+
[📑 suite] The statistics chapter
  [🧪 test] a tree with a history reports its authors and its churn
    ✅ got: (Size The largest files Documentation Which modules are documented Authors The files that change most)
    [⚙️ assert] the documented names are counted against the exported ones
    ✅ got: #t
  [🧪 test] a tree with no history reports its size and nothing invented
    ✅ got: (Size The largest files Documentation Which modules are documented)
    [⚙️ assert] the missing history is said, not imagined
    ✅ got: #t
  [🧪 test] the chapter says which modules are documented
    [⚙️ assert] every module is a row of the table
    ✅ got: #t
    [⚙️ assert] the table counts what is missing
    ✅ got: #t
    [⚙️ assert] a module with no gap is a row too
    ✅ got: #t
  [🧪 test] the chapter is titled the way a manual includes it
    ✅ got: (node (% (name Statistics)))
+----------------------------------------------+
[📑 suite] The chapter a manual includes
  [🧪 test] the chapter is titled with the library it documents
    ✅ got: Somelib API
  [🧪 test] modules with no name in common keep the plain title
    ✅ got: API
  [🧪 test] the chapter opens with what it documents, not with its list
    [⚙️ assert] the modules are not listed twice
    ✅ got: #f
    [⚙️ assert] it names the library
    ✅ got: The API reference for 
    [⚙️ assert] the name is set as code
    ✅ got: (code somelib)
  [🧪 test] a short guide says how to read the reference
    ✅ got: How to read this reference
    [⚙️ assert] five steps, the source panel among them
    ✅ got: ((item The chapter opens with a map of every module and what it draws
on, so the shape of the library is in one place.  Every module also has a
section of its own; open it in the index, or with the menu button on a
phone.
) (item A module section opens with a graph of the modules it draws on
and the modules that draw on it, with the same modules listed under it as
links, then its exported names and a one-line summary of each.  Follow a
name to its definition, where its signature, its category and the docstring
sit together.
) (item A definition can show the code it is written with: open  (code Source)  under the docstring to read the form the module holds, coloured like the
Scheme it is.
) (item To find a name across the whole API, press  (code /)  and type
in the index filter: a name is found by any of its letters in order, so  (code dcc)  finds  (code dokgen_005fcli_005fcall) .
) (item To move from one definition to the next, press  (code j)  and  (code k) ; press  (code t)  to return to the top of the page.
))
  [🧪 test] a note says the chapter is generated and where to correct it
    [⚙️ assert] the heading is there
    ✅ got: #t
    [⚙️ assert] the paragraph says a docstring is the place to fix it
    ✅ got: #t
  [🧪 test] the opening sentence counts what the chapter documents
    [⚙️ assert] the size is counted
    ✅ got: 2 modules and 0 exported names
    [⚙️ assert] the reader is told how to search
    ✅ got: the index filters all of them
  [🧪 test] the chapter is named the way a manual includes it
    ✅ got: (node (% (name API)))
ℹ️ info - ran 13 tasks in: 0 seconds, 230271 microseconds
ℹ️ info - counted 1 file, 13 suites, 60 tests and 94 assertions

running unit tests from file: commands-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 721144384 (replay with VERITAS_SEED=721144384)
+----------------------------------------------+
[📑 suite] The dokgen commands
+----------------------------------------------+
[📑 suite] The check command counts the gaps in a documented API
  [🧪 test] the report names the module and the name, so it can be fixed
    ✅ got: undocumented: (examplelib mixed) blank-docstring
  [🧪 test] a library with two undocumented procedures counts twoundocumented: (examplelib mixed) blank-docstring
undocumented: (examplelib mixed) undocumented
dokgen: 2 undocumented names

    ✅ got: 2
  [🧪 test] a library with no gap counts nonedokgen: every exported procedure and macro is documented

    ✅ got: 0
+----------------------------------------------+
[📑 suite] The stats command measures the tree it was pointed at
  [🧪 test] every module is a row of the coverage table2 files, 2 modules, 18 lines of code, 0 decision points
2 of 4 exported names documented
144 commits by 3 authors, the last on 2026-12-01
Statistics saved to /tmp/dokgen-commands-15417/table

    [⚙️ assert] the table has a section
    ✅ got: @section Which modules are documented
    [⚙️ assert] a module with gaps is a row
    ✅ got: (examplelib mixed)
    [⚙️ assert] so is a module without them
    ✅ got: (examplelib diagrammed)
  [🧪 test] the chapter is titled the way a manual includes it2 files, 2 modules, 18 lines of code, 0 decision points
2 of 4 exported names documented
144 commits by 3 authors, the last on 2026-12-01
Statistics saved to /tmp/dokgen-commands-15417/titled

    ✅ got: @chapter Statistics
  [🧪 test] the size of what was measured is reported2 files, 2 modules, 18 lines of code, 0 decision points
2 of 4 exported names documented
144 commits by 3 authors, the last on 2026-12-01
Statistics saved to /tmp/dokgen-commands-15417/sized

    ✅ got: lines of code
  [🧪 test] the chapter is written beside the API chapter2 files, 2 modules, 18 lines of code, 0 decision points
2 of 4 exported names documented
144 commits by 3 authors, the last on 2026-12-01
Statistics saved to /tmp/dokgen-commands-15417/measured

    ✅ got: #t
  [🧪 test] the page counts the same gap the table doesAPI documentation saved to /tmp/dokgen-commands-15417/gaps

    [⚙️ assert] the module section names the gap
    ✅ got: 2 of 3 names have no docstring: 
  [🧪 test] how much of the API is documented is reported2 files, 2 modules, 18 lines of code, 0 decision points
2 of 4 exported names documented
144 commits by 3 authors, the last on 2026-12-01
Statistics saved to /tmp/dokgen-commands-15417/coverage

    ✅ got: 2 of the 4 exported
  [🧪 test] the chapter is read with the same stylesheet and script2 files, 2 modules, 18 lines of code, 0 decision points
2 of 4 exported names documented
144 commits by 3 authors, the last on 2026-12-01
Statistics saved to /tmp/dokgen-commands-15417/readable

    [⚙️ assert] the stylesheet
    ✅ got: #t
    [⚙️ assert] the script
    ✅ got: #t
+----------------------------------------------+
[📑 suite] The api command writes the chapter a manual includes
  [🧪 test] a mention of a name the module keeps private is reported
    [⚙️ assert] the report says where the name is not
    ✅ got: mention: (proselib prose) private-helper is defined
  [🧪 test] the module has a node of its own, so a reader can find itAPI documentation saved to /tmp/dokgen-commands-15417/named

    ✅ got: @node examplelib_diagrammed
  [🧪 test] a docstring mention of a name the chapter documents is a referencemention: (proselib prose) private-helper is defined here but not exported
API documentation saved to /tmp/dokgen-commands-15417/prose-references

    [⚙️ assert] the mention points at the definition
    ✅ got: @ref{proselib_prose_helper,helper}
  [🧪 test] a diagram with no image and no renderer is kept as sourceAPI documentation saved to /tmp/dokgen-commands-15417/bare

    [⚙️ assert] the source is an example block
    ✅ got: @example
    [⚙️ assert] the page can tell it from a sample
    ✅ got: %% dokgen-mermaid
  [🧪 test] a plot with no renderer stays readable as sourceAPI documentation saved to /tmp/dokgen-commands-15417/plot-bare

    ✅ got: Gnuplot diagram, as source:
  [🧪 test] a definition carries the source behind it, behind a markerAPI documentation saved to /tmp/dokgen-commands-15417/source

    [⚙️ assert] the panel is marked with an anchor
    ✅ got: @anchor{dk_source_examplelib_mixed_documented}
    [⚙️ assert] the form the module writes is in it
    ✅ got: (define (documented)
  "This procedure says what it does."
  [🧪 test] a diagram is referenced as an image the build drewAPI documentation saved to /tmp/dokgen-commands-15417/drawn

    ✅ got: @image{diagrams/examplelib_diagrammed-
  [🧪 test] an image already written is kept when nothing redraws itAPI documentation saved to /tmp/dokgen-commands-15417/kept
API documentation saved to /tmp/dokgen-commands-15417/kept

    ✅ got: @image{diagrams/examplelib_diagrammed-
  [🧪 test] the image of a diagram is written beside the chapterAPI documentation saved to /tmp/dokgen-commands-15417/rendered

    ✅ got: #t
  [🧪 test] a gnuplot diagram is drawn with the command it was givenAPI documentation saved to /tmp/dokgen-commands-15417/plot

    [⚙️ assert] the plot is an image
    ✅ got: @image{diagrams/plotlib_plot-
    [⚙️ assert] the plot is drawn as SVG
    ✅ got: #t
  [🧪 test] the chapter is written where the command was toldAPI documentation saved to /tmp/dokgen-commands-15417/written

    ✅ got: #t
  [🧪 test] the stylesheet and the scripts go beside the chapterAPI documentation saved to /tmp/dokgen-commands-15417/assets

    [⚙️ assert] the stylesheet
    ✅ got: #t
    [⚙️ assert] the script
    ✅ got: #t
    [⚙️ assert] the bundled renderer
    ✅ got: #t
ℹ️ info - ran 1 tasks in: 2 seconds, 81908 microseconds
ℹ️ info - counted 1 file, 4 suites, 22 tests and 30 assertions

running unit tests from file: utils-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 721144384 (replay with VERITAS_SEED=721144384)
+----------------------------------------------+
[📑 suite] The shortest indentation in a docstring
  [🧪 test] a single line has no indentation to measure
    ✅ got: 0
  [🧪 test] an empty string is indented by nothing
    ✅ got: 0
  [🧪 test] the shallowest of several paragraphs is the answer
    ✅ got: 3
+----------------------------------------------+
[📑 suite] Tabs become spaces
  [🧪 test] each tab becomes the size the caller asks for
    ✅ got:         Line.    

  [🧪 test] each tab becomes the default number of spaces
    ✅ got:     Line.  

+----------------------------------------------+
[📑 suite] Dropping the indentation a docstring was aligned to
  [🧪 test] indentation deeper than the shallowest line is left alone
    ✅ got: First paragraph.

Second paragraph.

  Indented paragraph.

Last paragraph.
  [🧪 test] space indentation is removed from every line
    ✅ got: First paragraph.

Second paragraph.

Third paragraph.

Fourth paragraph.
  [🧪 test] tab indentation is removed from every line
    ✅ got: First paragraph.

Second paragraph.

Third paragraph.

Fourth paragraph.
  [🧪 test] a docstring of one line comes back unchanged
    ✅ got: One line.
  [🧪 test] an empty docstring stays empty
    ✅ got: 
+----------------------------------------------+
[📑 suite] Trimming a number of spaces off the front of a line
  [🧪 test] exactly that many spaces come off
    ✅ got: Line.
  [🧪 test] a line indented deeper keeps what lies past the cut
    ✅ got:   Line.
ℹ️ info - ran 4 tasks in: 0 seconds, 23298 microseconds
ℹ️ info - counted 1 file, 4 suites, 12 tests and 12 assertions

running unit tests from file: data-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 721144384 (replay with VERITAS_SEED=721144384)
+----------------------------------------------+
[📑 suite] The modules a module draws on
  [🧪 test] a module is not its own dependency
    ✅ got: #f
  [🧪 test] a dependent outside the chapter is not drawn either
    ✅ got: ()
  [🧪 test] a dependency the chapter documents is kept
    ✅ got: ((depslib base))
  [🧪 test] a module everyone draws on knows who does
    ✅ got: ((depslib uses))
  [🧪 test] a module outside the chapter is not a dependency to draw
    ✅ got: ()
  [🧪 test] a module nothing draws on has no dependents
    ✅ got: ()
+----------------------------------------------+
[📑 suite] The objects a module exports, grouped by kind
  [🧪 test] every parameter the fixture exports is in it
    ✅ got: ((parameter . #<<parameter> 7faefedc9880 proc: #<procedure 7faefedba7e0 at ice-9/boot-9.scm:1324:5 () | (x)>>) (parameter-with-converter . #<<parameter> 7faefedc9860 proc: #<procedure 7faefedba780 at ice-9/boot-9.scm:1324:5 () | (x)>>))
  [🧪 test] parameters get a group of their own
    ✅ got: (parameters (parameter . #<<parameter> 7faefedc9880 proc: #<procedure 7faefedba7e0 at ice-9/boot-9.scm:1324:5 () | (x)>>) (parameter-with-converter . #<<parameter> 7faefedc9860 proc: #<procedure 7faefedba780 at ice-9/boot-9.scm:1324:5 () | (x)>>))
  [🧪 test] an export bound to nothing is reported, not skipped
    [⚙️ assert] reading the interface raises
    ✅ success catching error: %exception: (#<&residual-export-exception reason: "Possible residual export found." exported-residue: residual-export exporter-module: (boguslibs unbound)>)
  [🧪 test] the group holds parameters and not procedures
    ✅ got: #t
+----------------------------------------------+
[📑 suite] The source behind a definition
  [🧪 test] a name no form defines has no source
    ✅ got: #f
  [🧪 test] a procedure's whole form, docstring and body included
    [⚙️ assert] it starts with the definition
    ✅ got: #t
    [⚙️ assert] the docstring is part of it
    ✅ got: This procedure says what it does.
    [⚙️ assert] it ends where the form ends
    ✅ got: #t
  [🧪 test] a module no file holds has no source
    ✅ got: #f
  [🧪 test] a variable's form, and nothing around it
    ✅ got: (define documented-variable 42)
+----------------------------------------------+
[📑 suite] Every name a module defines
  [🧪 test] a name the module keeps to itself is in the list too
    [⚙️ assert] the helper is defined, not exported
    ✅ got: #t
  [🧪 test] a name the module exports is in the list
    [⚙️ assert] the exported name
    ✅ got: #t
+----------------------------------------------+
[📑 suite] Where a definition is written
  [🧪 test] the line is where the form begins, not where its comments do
    ✅ got: 20
  [🧪 test] a definition knows the file and line it is written on
    [⚙️ assert] the top-level form is found
    ✅ got: #t
    [⚙️ assert] the file that holds the form is named
    ✅ got: #t
    [⚙️ assert] the line is counted from the top
    ✅ got: #t
  [🧪 test] a name with no source of its own has no location
    [⚙️ assert] absent, not guessed
    ✅ got: #f
+----------------------------------------------+
[📑 suite] The exported names that are documented nowhere
  [🧪 test] a library with no gap reports none
    ✅ got: ()
  [🧪 test] the gaps are named
    ✅ got: (blank-docstring undocumented)
+----------------------------------------------+
[📑 suite] A file path, as a module name
  [🧪 test] a library with more than one module
    ✅ got: (libx module-a)
  [🧪 test] a library that is one file
    ✅ got: (module)
ℹ️ info - ran 7 tasks in: 0 seconds, 51014 microseconds
ℹ️ info - counted 1 file, 7 suites, 23 tests and 27 assertions
global totals: 7 files, 37 suites, 185 tests and 264 assertions


finished running tests
;;; note: source file ./src/dokgen/assets.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/assets.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/assets.scm.go
;;; note: source file ./src/dokgen/writer.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/writer.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/writer.scm.go
;;; note: source file ./src/dokgen/diagrams.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/diagrams.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/diagrams.scm.go
;;; note: source file ./src/dokgen/stats.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/stats.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/stats.scm.go
;;; note: source file ./src/dokgen/templates/stexi.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/templates/stexi.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/templates/stexi.scm.go
;;; note: source file ./src/dokgen/data.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/data.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/data.scm.go
;;; note: source file ./src/dokgen/exceptions.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/exceptions.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/exceptions.scm.go
;;; note: source file ./src/dokgen/utils.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/utils.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/utils.scm.go
;;; note: source file ./src/dokgen/commands.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/commands.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/commands.scm.go
runmaak docs-check succeeded93 lines · 3.6s
--------------------------------------------------------------

Maak 1.0.0: the infinitely extensible command runner

Loading tasks from: /etc/byggsteg/job-clone/guile-dokgen/trunk/maak.scm

Executing Maak tasks: docs-check


--------------------------------------------------------------

=> Running Maak task: docs-check

  Fail when manual/api/index.texi is not what the sources generate.

The reference is generated, so a committed copy that differs from a fresh one
is a procedure that was changed without the documentation following.  So is
the stylesheet and the script the chapter is read with.  The statistics
chapter is regenerated but not compared: it describes a commit, and any
commit after it makes it different by design.

  Execute command:
guix time-machine --channels=channels.scm -- shell -m manifest.scm -- sh bin/dokgen api --destination manual/api ./src/dokgen

Executing: guix time-machine --channels=channels.scm -- shell -m manifest.scm -- sh bin/dokgen api --destination manual/api ./src/dokgen
channels.scm:17:6: warning: channel 'jointhefreeworld' is not trusted
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/cli.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/cli.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/cli.scm
;;;       newer than compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/cli.scm.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/cli.scm
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/commands.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/commands.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/commands.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/assets.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/assets.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/assets.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/writer.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/writer.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/writer.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/data.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/data.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/data.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/exceptions.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/exceptions.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/exceptions.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/diagrams.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/diagrams.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/diagrams.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/stats.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/stats.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/stats.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/templates/stexi.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/templates/stexi.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/templates/stexi.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/utils.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/utils.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/utils.scm.go
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/cli.scm.go
mention: (dokgen cli) sources is defined here but not exported
mention: (dokgen cli) destination is defined here but not exported
mention: (dokgen stats) count-lines is defined here but not exported
API documentation saved to manual/api

  Execute command:
guix time-machine --channels=channels.scm -- shell -m manifest.scm -- sh bin/dokgen stats --destination manual/api ./src/dokgen

Executing: guix time-machine --channels=channels.scm -- shell -m manifest.scm -- sh bin/dokgen stats --destination manual/api ./src/dokgen
channels.scm:17:6: warning: channel 'jointhefreeworld' is not trusted
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/cli.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/cli.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/cli.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/commands.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/commands.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/commands.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/assets.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/assets.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/assets.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/writer.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/writer.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/writer.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/data.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/data.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/data.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/exceptions.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/exceptions.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/exceptions.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/diagrams.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/diagrams.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/diagrams.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/stats.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/stats.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/stats.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/templates/stexi.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/templates/stexi.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/templates/stexi.scm.go
;;; note: source file /etc/byggsteg/job-clone/guile-dokgen/trunk/bin/../src/dokgen/utils.scm
;;;       newer than compiled /gnu/store/230wyy262aa24vg0qc43ijg28fqdrmdx-profile/lib/guile/3.0/site-ccache/dokgen/utils.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-dokgen/trunk/src/dokgen/utils.scm.go
10 files, 10 modules, 1742 lines of code, 132 decision points
51 of 51 exported names documented
144 commits by 3 authors, the last on 2026-12-01
Statistics saved to manual/api
buildmaak manual succeeded27 lines · 0.5s
--------------------------------------------------------------

Maak 1.0.0: the infinitely extensible command runner

Loading tasks from: /etc/byggsteg/job-clone/guile-dokgen/trunk/maak.scm

Executing Maak tasks: manual


--------------------------------------------------------------

=> Running Maak task: manual

  Build the HTML manual into reports/manual.

Texinfo looks for an image where it is told to, not where the text that
names it lives, so the directory the generated chapter sits in goes on the
include path.  Nothing copies an image or a stylesheet into the output
either, so the diagrams, the stylesheet and the script are put beside the
pages that point at them.

  Execute command:
guix time-machine --channels=channels.scm -- shell -m manifest.scm -- makeinfo --html --css-ref=https://jointhefreeworld.org/static/css/jointhefreeworld.css -c SHOW_TITLE=true -I manual/api -c 'EXTRA_HEAD=<link rel="stylesheet" href="dokgen.css"><script src="dokgen.js" defer></script>' -o reports/manual manual/main.texi

Executing: guix time-machine --channels=channels.scm -- shell -m manifest.scm -- makeinfo --html --css-ref=https://jointhefreeworld.org/static/css/jointhefreeworld.css -c SHOW_TITLE=true -I manual/api -c 'EXTRA_HEAD=<link rel="stylesheet" href="dokgen.css"><script src="dokgen.js" defer></script>' -o reports/manual manual/main.texi
channels.scm:17:6: warning: channel 'jointhefreeworld' is not trusted

  Execute command:
cp manual/api/dokgen.css reports/manual

  Execute command:
cp manual/api/dokgen.js reports/manual

  Execute command:
cp manual/api/dokgen-index.json reports/manual

  Execute command:
cp manual/api/dokgen-mermaid.js reports/manual

  Execute command:
cp -r manual/api/diagrams reports/manual

open file:///etc/byggsteg/job-clone/guile-dokgen/trunk/reports/manual/index.html
build diagnostics11 warnings, 0 errors