mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 14:33:17 -10:00
main
25
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
89f26c5771 |
docs(site): draw the diagrams at build time with pele, no Mermaid JS
The docs site's 18 mermaid blocks are now drawn as SVGs before Hugo
builds the site, by docs/render-diagrams.mjs with pele 1.13.0, and
inlined by a render hook, so no page loads Mermaid's 5.5 MB script.
- docs/render-diagrams.mjs: finds each mermaid block in docs/content,
draws it with pele in Departure Mono at 14px (a measurer from the
font's metrics), and writes <key>.svg and <key>.json (its size) to
the git-ignored docs/.build/diagrams. pele draws edge labels,
messages and notes at round(14 * 0.875) = 12px with no option, so the
measurer gives that text its 14px width and the script rewrites
font-size="12" to 14 on each small-text group (pele-edge-labels,
-notes, -boxes, -frames); a guard fails on any such group without
font-size="12", or small text outside them, and a self-check, run
whenever there's something to draw, renders an edge label, a message
and a note and fails unless pele measured them at 12 and wrote their
group with font-size="12". It also fails on a diagram without
accTitle and accDescr, or on an indented block. A newline after each
</text>, outside any text element, lets the search index see labels
as separate words; screenshots of all 18 are byte-identical with and
without it. (Newlines between a label's tspans would move centered
lines, so a label's own lines stay joined in the index.)
- Caching: a block's key is sha256(salt + "\n" + text)[:16], the salt
being sha256("pele <version>\n" + the script's text)[:16], written to
diagrams/salt. The script keeps every drawing already there, draws
only missing ones (written to .tmp and renamed), prunes files no key
names, and touches the folder. docs:diagrams has sources (the pages,
the script, package.json, the lock) and outputs (the folder), so mise
skips an unchanged run, and runs npm ci only when the lock's SHA-256
differs from docs/node_modules/.devvm-lock-sha256. An unchanged run:
0.45-0.75 s before, 0.02 s now (0.09 s forced); one diagram changed:
0.09 s. CI's check job caches ~/.npm keyed on the lock; the Docs
workflow, which publishes, keeps no cache.
- docs/package.json and package-lock.json pin pele 1.13.0
(sha512-Ie8UKY9x00MsuR3jO6AzUwzK2Z6MIV3Tf4EDdITiuk8Uaz8K7g0R082WqsqNaSU8DdgkrRvZThzhit83mi/uiw==).
- docs/layouts/_markup/render-codeblock-mermaid.html: in place of
Hextra's hook, reads the salt, computes the key from it and .Inner,
inlines the SVG from assets/diagrams (hugo.yaml mounts .build/diagrams
there), sets the wrapper's contain-intrinsic-block-size to the
diagram's height and --devvm-diagram-width to its width, and errorf's
when a drawing or the salt is missing. layouts/_partials/scripts/
mermaid.html and params.mermaid go.
- custom.css: .devvm-diagram with content-visibility: auto, and pele's
--pele-* variables from the palette (subgraphs, lifelines and notes in
the border color). A diagram wider than the text reaches into the
article's right padding (1.5rem, 3rem from 768px) as far as it needs,
then into the left padding for the rest, so it never covers the table
of contents; wider than both, it scrolls. From about 1010px no diagram
scrolls, the four wide ones included (proxy checks 751px, agent store,
VM states, SSH agent); at 900px five scroll. With the table of
contents shown, the proxy checks take 48px on the right and 31px on
the left.
- mise.toml: docs:diagrams, which docs and lint:docs depend on.
docs.yml: the next and release jobs install node and draw the
diagrams; the release job only when the tag has the script, so older
tags still build.
- scripts/bump.sh: bump_pele, named only, replaces bump_mermaid: npm
install --save-exact --ignore-scripts in docs, then mise run
docs:diagrams, whose self-check catches a pele that changed how it
draws small text. TestBumpCoversPins finds docs/package.json's
dependencies (npm:NAME); bump.txtar tests --check and the install.
The header and hextra's note say the mermaid render hook replaces
Hextra's mermaid hook, so check it still has that name.
- Every diagram gets an accTitle and accDescr, which pele makes the
SVG's title and desc (aria-labelledby, aria-describedby). Staying
safe's columns are written in reading order, as pele lays subgraphs
out from left to right. The proxy checks' description names every
branch, and a hand-placed <br> keeps "CA)" off a line of its own.
- AGENTS.md: the one Node script; no other build script is JavaScript,
and no other npm package is installed outside mise's tools.
Contributing's docs, tools and
maintaining pages describe the drawing, the caching, the margin, the
task and the bump.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
f8f29e7acb |
docs(site): fonts served from devvm.dev, no third-party requests
devvm.dev and next.devvm.dev loaded Instrument Sans and Martian Mono from Google Fonts, with preconnects to fonts.googleapis.com and fonts.gstatic.com. They were the site's only automatic third-party loads; both fonts are now served from docs/static/fonts/ with their OFL, and a lint:docs check keeps it that way. - Instrument Sans: Instrument/instrument-sans at commit 7fa22308a3d0c94ee2b3cd537a1196b65db34a3e, fonts/webfonts/ InstrumentSans[wdth,wght].woff2 (88,784 B, sha256 aa72922a...826d) and InstrumentSans-Italic[wdth,wght].woff2 (94,888 B, sha256 e958f71f...9ba5), OFL.txt (sha256 9e27a72e...f966). - Martian Mono: evilmartians/mono release v1.1.0 (commit 8ffa86c2), martian-mono-1.1.0-variable.zip (sha256 b8773097...0867), its MartianMonoVF.woff2 (83,044 B, sha256 7cdf8e98...238a, wdth 75-112.5 for the code's font-stretch), the commit's OFL.txt (sha256 ddafd2c3...c256). - head-end.html: @font-face for each with font-display: swap and the same family names, a preload for the upright Instrument Sans, and a comment recording every font's source, pin and full SHA-256s, Departure Mono's included. - TestNoThirdPartyLoads (internal/cli/docgen/site_test.go): lint:docs runs it on the site it builds (DOCS_SITE); it fails on any link, script, img/srcset, iframe, source, video, object, SVG image/use, style attribute, <style> block or stylesheet url()/@import pointing at a host other than hugo.yaml's and next.yaml's baseURL. TestPageLoads covers the scanner. - Branding links each font to its upstream repo and its served license; Contributing's Writing docs covers the fonts and the check. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
81f3feeecf |
docs: each page's social card shows its title and what it covers (#21)
## What this changes Every page on devvm.dev and next.devvm.dev gets its own Open Graph card, which Hugo draws when it builds the site. Each card is the brand card (the pixel logo with the lock, black, the lime bar, devvm.dev) with the page's section in lime capitals, its title, and a short explainer of what the page covers. > [!NOTE] > The six preview cards in `docs/og-preview/` were for review only. `chore(docs): drop the preview social cards` removes them again, so the squashed commit doesn't have them, and the images below still show from the commit that added them. - **The template**, `docs/assets/images/og-template.png`, is `docs/static/images/social-card.png` with the headline and tagline rows filled with the background's exact black. The repo has no SVG or generator for the card: it was a headless Chrome screenshot of the logo SVG and text. The old card has only four colors (`#000000`, `#7fff00`, `#eeeeee`, `#8f93a2`) and no antialiasing, so filling those rows leaves no marks. The logo, `devvm.dev` and the bar match the card pixel for pixel, and the template has those four colors and nothing else. - **The drawing**, `docs/layouts/_partials/og-image.html`, uses `images.Text` with Departure Mono at multiples of 11px (22px for the section label, 66, 55 or 44px for the title, whichever fits it in two lines, and 33px for the explainer). Every line starts on a whole pixel, so the generated cards also have exactly the template's four colors and no antialiasing: they are as crisp as the logo. `og-wrap.html` wraps lines by length, because the font is monospaced. The block is centered between the logo and devvm.dev. The section is the page's section title, *Docs* on a section's own page, and none on the home, branding and taxonomy pages. - **The font:** Departure Mono **v1.500**, the release the site's woff2 comes from (checked: the woff2 in the release zip is byte-identical to `docs/static/fonts/departure-mono/DepartureMono-Regular.woff2`, sha256 `5b4fed1d…`, and so is the LICENSE). That release ships an OTF, not a TTF. Hugo's `images.Text` reads it fine, so `docs/assets/fonts/departure-mono/` has `DepartureMono-Regular.otf` (sha256 `4d53f663155cf8bf7ffc8e688776e719625f7bbb80a8d90073438b249261a2e0`) and its OFL. Source: `gh release download v1.500 -R rektdeckard/departure-mono`, `DepartureMono-1.500.zip`, sha256 `bf3e48059aeef4617ec585bdea81dcc3491c576b3e7a472f52faf40e09ee5c3a`. - **The tags:** `custom/head-end.html` writes `og:image`, `og:image:type`, `og:image:width`/`height`, `og:image:alt` and `twitter:image:alt`. The alt text is `devvm docs: TITLE: EXPLAINER`. `_partials/_funcs/get-page-images.html` replaces Hugo's own, which Hugo's `twitter_cards.html` and `schema.html` call, so `twitter:card` is `summary_large_image` and `twitter:image` and `itemprop=image` are the same card. `params.images` is removed from `hugo.yaml`, so Hextra's `opengraph.html` writes no second `og:image`. In the built site, every one of the 115 HTML pages (the 404 included) has exactly one `og:image`, and each card is different. - **The explainer** is a new front matter key, `explainer`, not `description`. `description` is the page's meta description, `og:description`, the search snippet and its `llms.txt` line. Those want a sentence or two, and only two pages have one. A 4–9 word card line would be a weak search snippet. Every hand-written page has one. The CLI pages get their command's `Short` from `internal/cli/docgen` (`mise run cli-docs` rerun), and the reference's index gets a fixed one. The home page also sets `cardTitle: One VM for every project` (the hero's headline), because its title, `devvm`, would repeat the logo. - **The guard:** `TestExplainers` in `internal/cli/docgen/explainer_test.go` fails when any page under `docs/content` has no `explainer`. It also fails when the explainer takes more than two card lines of 48 characters (33px), or when the title (or `cardTitle`) takes more than two lines of 36 characters (44px). Those are the card's real limits, and they also cover the longest `Short`s. It runs in `mise run test` and in `mise run lint:docs`, next to `TestDocLinks`. `TestFrontMatter` and `TestWrappedLines` cover its parsing. - **Docs:** Contributing › Writing docs describes the cards, the key and the test. The branding page says each page has its own card. `social-card.png` stays as the brand asset. ### Numbers | | Before (main) | After | | --- | --- | --- | | Built site (`hugo -s docs --minify`, apparent size) | 40,194 KB | 42,138 KB (+1.9 MB) | | Cards | 1 static card | 115 PNGs, 14.9–16.6 KB each, 1.84 MB total | | Build time, image cache cold (`--ignoreCache`) | ~1.0 s | 1.4–1.95 s | | Build time, image cache warm | ~1.0 s | ~1.0 s | The cards are smaller than the prototype's estimate (about 16 KB, not 22–34 KB), because they have only four colors. next.devvm.dev: `hugo -s docs --minify --config hugo.yaml,next.yaml` gives `og:image`, `twitter:image` and `itemprop=image` as `https://next.devvm.dev/images/og-template_hu_….png` on every page. ### Examples | Home | Short title | | --- | --- | |  |  | | **Longest title (two lines)** | **CLI page, longest explainer** | |  |  | | **Section index** | **How it works page** | |  |  | ### Every page's card From a local `hugo -s docs --minify` build. "(none)" is a page whose card has no section label or no explainer. The 404 page's card, titled *404 Page not found*, isn't listed. | Section | Page | Title | Explainer | Card | | --- | --- | --- | --- | --- | | (none) | `/branding/` | Branding | devvm's logo, icons, colors and fonts | 15.6 KB | | (none) | `/categories/` | Categories | (none) | 15.0 KB | | Docs | `/docs/backends/` | Backends | The program that runs devvm's VMs | 15.7 KB | | Backends | `/docs/backends/lima/` | Lima | What Lima needs, and how devvm uses it | 15.7 KB | | CLI reference | `/docs/cli/devvm_adopt/` | devvm adopt | Give this folder the VM made for an earlier folder or path | 16.3 KB | | CLI reference | `/docs/cli/devvm_agent_import/` | devvm agent import | Copy the agents' settings and logins from this machine into devvm's store | 16.6 KB | | CLI reference | `/docs/cli/devvm_agent_login/` | devvm agent login | Log an agent in, in this folder's VM, and save the login in devvm's store | 16.6 KB | | CLI reference | `/docs/cli/devvm_agent_save/` | devvm agent save | Copy the agents' settings from this folder's VM into devvm's store | 16.5 KB | | CLI reference | `/docs/cli/devvm_agent/` | devvm agent | Fill devvm's store of the agents' settings and logins that every VM gets | 16.6 KB | | CLI reference | `/docs/cli/devvm_build/` | devvm build | Build an image and the images under it, unless they're built | 16.4 KB | | CLI reference | `/docs/cli/devvm_clone/` | devvm clone | Show or change whether this folder's VM has its own clone of the repo | 16.4 KB | | CLI reference | `/docs/cli/devvm_code/` | devvm code | Open this folder's VM in VS Code over Remote-SSH | 15.9 KB | | CLI reference | `/docs/cli/devvm_completion/` | devvm completion | Print the shell completion script for bash, zsh or fish | 16.3 KB | | CLI reference | `/docs/cli/devvm_desktop/` | devvm desktop | Open this folder's VM's desktop in a VNC viewer | 16.0 KB | | CLI reference | `/docs/cli/devvm_doctor/` | devvm doctor | Check what devvm needs on this machine | 15.8 KB | | CLI reference | `/docs/cli/devvm_gc/` | devvm gc | Delete stale images, unused tools, old files and the Nix cache over its cap | 16.4 KB | | CLI reference | `/docs/cli/devvm_git-protect/` | devvm git-protect | Show or change .git protection for this folder's VM | 16.3 KB | | CLI reference | `/docs/cli/devvm_group_join/` | devvm group join | Put this folder's VM in a group of VMs | 15.9 KB | | CLI reference | `/docs/cli/devvm_group_leave/` | devvm group leave | Take this folder's VM out of its group | 16.0 KB | | CLI reference | `/docs/cli/devvm_group/` | devvm group | Show the group this folder's VM is in | 15.9 KB | | CLI reference | `/docs/cli/devvm_history_export/` | devvm history export | Save this folder's VM's agent history to a .tar.gz | 16.5 KB | | CLI reference | `/docs/cli/devvm_history_import/` | devvm history import | Put an export of agent history into this folder's VM | 16.4 KB | | CLI reference | `/docs/cli/devvm_history/` | devvm history | List the saved exports of agents' history | 16.0 KB | | CLI reference | `/docs/cli/devvm_host/` | devvm host | Get this folder's VM ready for ssh and editors, and show its host name | 16.4 KB | | CLI reference | `/docs/cli/devvm_images_rm/` | devvm images rm | Delete images, by name or by key | 15.9 KB | | CLI reference | `/docs/cli/devvm_images/` | devvm images | List the images and the shared tools | 15.9 KB | | CLI reference | `/docs/cli/devvm_layer_add/` | devvm layer add | Make this folder's VM again with more layers, then open a shell in it | 16.6 KB | | CLI reference | `/docs/cli/devvm_layer_new/` | devvm layer new | Start a layer of your own | 15.8 KB | | CLI reference | `/docs/cli/devvm_layer_rm/` | devvm layer rm | Make this folder's VM again without some of its layers, then open a shell in it | 16.6 KB | | CLI reference | `/docs/cli/devvm_layer/` | devvm layer | Make image layers of your own, or change this folder's VM's layers | 16.6 KB | | CLI reference | `/docs/cli/devvm_limactl/` | devvm limactl | Run Lima's limactl for debugging, which starts VMs unconfined, whatever their tier | 16.6 KB | | CLI reference | `/docs/cli/devvm_link_add/` | devvm link add | Link this folder's VM to a port of another VM | 16.0 KB | | CLI reference | `/docs/cli/devvm_link_publish/` | devvm link publish | Show or add the ports this folder's VM offers to links | 16.3 KB | | CLI reference | `/docs/cli/devvm_link_rm/` | devvm link rm | Remove one of this folder's VM's links | 15.8 KB | | CLI reference | `/docs/cli/devvm_link_unpublish/` | devvm link unpublish | Stop offering ports of this folder's VM to links | 16.1 KB | | CLI reference | `/docs/cli/devvm_link/` | devvm link | List this folder's VM's links to your other VMs | 16.0 KB | | CLI reference | `/docs/cli/devvm_ls/` | devvm ls | List the project VMs | 15.7 KB | | CLI reference | `/docs/cli/devvm_network_allow/` | devvm network allow | Allow hosts for this folder's VM | 15.9 KB | | CLI reference | `/docs/cli/devvm_network_deny/` | devvm network deny | Deny hosts for this folder's VM | 15.9 KB | | CLI reference | `/docs/cli/devvm_network_log/` | devvm network log | Show what this folder's VM connected to and what its proxy blocked | 16.5 KB | | CLI reference | `/docs/cli/devvm_network_rm/` | devvm network rm | Remove rules from this folder's VM | 15.8 KB | | CLI reference | `/docs/cli/devvm_network/` | devvm network | Show or change the network tier of this folder's VM | 16.2 KB | | CLI reference | `/docs/cli/devvm_ports_add/` | devvm ports add | Forward more ports from this folder's VM | 16.0 KB | | CLI reference | `/docs/cli/devvm_ports_rm/` | devvm ports rm | Stop forwarding some ports from this folder's VM | 16.1 KB | | CLI reference | `/docs/cli/devvm_ports/` | devvm ports | Show or change which ports this folder's VM forwards | 16.3 KB | | CLI reference | `/docs/cli/devvm_rebuild/` | devvm rebuild | Build an image again, and delete the old one | 16.0 KB | | CLI reference | `/docs/cli/devvm_restart/` | devvm restart | Restart this folder's VM and open a shell in it | 16.0 KB | | CLI reference | `/docs/cli/devvm_retention/` | devvm retention | Show or change what devvm deletes on its own | 15.9 KB | | CLI reference | `/docs/cli/devvm_rm/` | devvm rm | Delete this folder's VM, or a VM whose folder is gone | 16.1 KB | | CLI reference | `/docs/cli/devvm_secret_rm/` | devvm secret rm | Delete a saved secret | 15.7 KB | | CLI reference | `/docs/cli/devvm_secret_set/` | devvm secret set | Save a secret on this machine | 15.8 KB | | CLI reference | `/docs/cli/devvm_secret_unuse/` | devvm secret unuse | Stop this folder's VM using a secret | 16.0 KB | | CLI reference | `/docs/cli/devvm_secret_use/` | devvm secret use | Let this folder's VM use a secret | 15.8 KB | | CLI reference | `/docs/cli/devvm_secret/` | devvm secret | List the secrets kept on this machine, for VMs to use | 16.2 KB | | CLI reference | `/docs/cli/devvm_setup/` | devvm setup | Choose base's features, and new VMs' size, network tier, coding agents and layers | 16.6 KB | | CLI reference | `/docs/cli/devvm_size/` | devvm size | Show or change this folder's VM's size | 15.9 KB | | CLI reference | `/docs/cli/devvm_space/` | devvm space | Show what devvm keeps on this machine and the space it takes | 16.3 KB | | CLI reference | `/docs/cli/devvm_ssh-agent_add/` | devvm ssh-agent add | Load a key into devvm's own SSH agent | 16.0 KB | | CLI reference | `/docs/cli/devvm_ssh-agent_rm/` | devvm ssh-agent rm | Remove a key from devvm's own SSH agent | 16.0 KB | | CLI reference | `/docs/cli/devvm_ssh-agent/` | devvm ssh-agent | Show or change SSH agent forwarding for this folder's VM | 16.4 KB | | CLI reference | `/docs/cli/devvm_stop/` | devvm stop | Stop this folder's VM | 15.6 KB | | CLI reference | `/docs/cli/devvm_tools_add/` | devvm tools add | Add shared tools to this folder's VM, then open a shell in it | 16.3 KB | | CLI reference | `/docs/cli/devvm_tools_rm/` | devvm tools rm | Take shared tools out of this folder's VM, then open a shell in it | 16.3 KB | | CLI reference | `/docs/cli/devvm_tools_update/` | devvm tools update | Move this folder's VM to the newest shared tools, then open a shell in it | 16.5 KB | | CLI reference | `/docs/cli/devvm_tools/` | devvm tools | Show or choose this folder's VM's shared tools | 15.9 KB | | CLI reference | `/docs/cli/devvm_update/` | devvm update | Bring this folder's VM up to date, then open a shell in it | 16.3 KB | | CLI reference | `/docs/cli/devvm_upgrade/` | devvm upgrade | Install devvm's newest release | 15.8 KB | | CLI reference | `/docs/cli/devvm/` | devvm | Open a shell in this folder's VM, creating it first | 16.1 KB | | Docs | `/docs/cli/` | CLI reference | Every devvm command, with its arguments and flags | 16.1 KB | | Docs | `/docs/contributing/` | Contributing | Build devvm, run its tests and follow its rules | 15.8 KB | | Contributing | `/docs/contributing/maintaining/` | Maintaining | Bump pinned versions, release devvm and run the docs sites | 16.3 KB | | Contributing | `/docs/contributing/testing/` | Testing on other hosts | Run devvm's tests on Linux, x86_64 and other hosts | 16.3 KB | | Getting started | `/docs/getting-started/commands/` | Everyday commands | The commands you use most, in their groups | 16.0 KB | | Getting started | `/docs/getting-started/first-vm/` | Your first VM | Make a project's VM and start an agent in it | 16.0 KB | | Docs | `/docs/getting-started/` | Getting started | From installing devvm to your first VM | 15.9 KB | | Getting started | `/docs/getting-started/install/` | Installing | Install devvm and check what it needs | 15.8 KB | | (none) | `/docs/` | Docs | The guides, in the order you'll need them | 15.6 KB | | How it works | `/docs/internals/backends/` | Backends | What a backend gives devvm, and how VMs are named | 16.1 KB | | How it works | `/docs/internals/design/` | Design notes | Why devvm is built this way, and what's open | 15.9 KB | | How it works | `/docs/internals/desktop/` | The desktop | How devvm desktop serves a VM's desktop | 15.9 KB | | How it works | `/docs/internals/git-protection/` | .git protection | What devvm locks in .git, and when | 15.9 KB | | How it works | `/docs/internals/images/` | Images and caching | How images and shared tools are built and cached | 16.2 KB | | Docs | `/docs/internals/` | How it works | How devvm works, for reviewers and contributors | 15.9 KB | | How it works | `/docs/internals/install/` | Installing and updating | What the install script and devvm doctor check | 16.1 KB | | How it works | `/docs/internals/lima/` | Lima | How devvm sets up, confines and clones Lima's VMs | 16.0 KB | | How it works | `/docs/internals/network/` | Network tiers | How the proxy confines VMs and keeps your secrets | 16.2 KB | | How it works | `/docs/internals/overview/` | Overview | What devvm does at each step of a VM's life | 15.8 KB | | How it works | `/docs/internals/ports/` | Port forwarding | How devvm forwards a VM's ports to this machine | 16.1 KB | | How it works | `/docs/internals/security/` | Security model | What devvm protects, how, and what it doesn't | 16.0 KB | | Staying safe | `/docs/safety/attack-vectors/` | Attack vectors | Common attacks, and what devvm does about each | 15.9 KB | | Staying safe | `/docs/safety/git-protection/` | .git protection | Keep code in the VM out of your .git | 16.0 KB | | Docs | `/docs/safety/` | Staying safe | How devvm keeps untrusted code off your machine | 16.0 KB | | Staying safe | `/docs/safety/network/` | Network tiers | Choose what each VM can reach on the network | 15.9 KB | | Using devvm | `/docs/using/clone/` | Working on a clone | Give a VM its own clone of the repo | 15.9 KB | | Using devvm | `/docs/using/coding-agents/` | Coding agents | Run Claude Code, Codex and opencode in a VM | 16.0 KB | | Using devvm | `/docs/using/command-line/` | The command line | Help, flags, questions, JSON output and completion | 16.3 KB | | Using devvm | `/docs/using/customizing/` | Customizing images | Add your own layers and choose base's features | 16.1 KB | | Using devvm | `/docs/using/desktop/` | A VM's desktop | Add a desktop to a VM and open it | 15.8 KB | | Using devvm | `/docs/using/devcontainer/` | devcontainer.json | Set up a VM from a project's devcontainer.json | 16.1 KB | | Using devvm | `/docs/using/from/` | Starting from a container image | Start base from a Debian, Ubuntu or Alpine image | 16.6 KB | | Using devvm | `/docs/using/images/` | Images and tools | The images VMs are made from, and their tools | 16.1 KB | | Docs | `/docs/using/` | Using devvm | What you change in your VMs as you work | 15.9 KB | | Using devvm | `/docs/using/limits/` | Known limits | What devvm can't do, and where | 15.7 KB | | Using devvm | `/docs/using/links/` | Links between VMs | Let one VM reach a service in another by name | 16.1 KB | | Using devvm | `/docs/using/ports-size/` | Ports and size | Forward a VM's ports and change its size | 15.9 KB | | Using devvm | `/docs/using/settings/` | Settings and files | The files you edit and the files devvm keeps | 16.2 KB | | Using devvm | `/docs/using/space/` | What devvm keeps on this machine | Each file devvm keeps, and how it's cleaned up | 16.5 KB | | Using devvm | `/docs/using/ssh/` | SSH and editors | Reach VMs by name from ssh and VS Code | 15.9 KB | | Using devvm | `/docs/using/toolchains/` | Toolchains | The toolchains VMs get, and the files that choose them | 16.2 KB | | Using devvm | `/docs/using/troubleshooting/` | Troubleshooting | What to do when something fails | 15.9 KB | | Using devvm | `/docs/using/upgrading/` | Upgrading and uninstalling | Upgrade devvm, or remove it and what it keeps | 16.5 KB | | Using devvm | `/docs/using/vms/` | Managing VMs | Open, stop, delete and list your VMs | 15.9 KB | | (none) | `/` | One VM for every project | An isolated sandbox for you or a coding agent | 16.1 KB | | (none) | `/tags/` | Tags | (none) | 14.9 KB | ## How it was tested - `mise run fmt && mise run lint && mise run test` passes on macOS. `mise run lint:docs` passes: markdownlint, Vale, lychee, `TestDocLinks`, `TestCommandLines`, `TestExplainers` and the `--panicOnWarning` build. - I built devvm.dev and next.devvm.dev, checked that every HTML page has exactly one `og:image`, and opened the cards for the home page, a short title, the longest title, the longest CLI explainer, a section index, a How it works page and the 404. I checked each card's color histogram: four colors, so there's no antialiasing and no marks from the template. - No e2e: the change is docs only. ## Checklist - [x] The title is a Conventional Commit, `type(scope): summary`, because it becomes the squashed commit's subject. - [x] `mise run fmt && mise run lint && mise run test` passes. - [x] New behaviour has tests, and every behaviour change updates its page in `docs/content/docs/`. - [x] A changed command follows the cli skill, and `mise run cli-docs` is rerun when its help changed. (No command changed. `cli-docs` was rerun for the generated explainers.) - [x] Nothing here belongs in a private security advisory instead (see SECURITY.md). **Ready to merge:** the previews are removed and main (#25) is merged in. The gate passes on macOS (2362 tests). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]> |
||
|
|
e9bd270398 |
docs: brew trust before brew install, as Homebrew 7 asks
The --confirm flag's ssh-askpass hint names no tool: put one on PATH or set SSH_ASKPASS. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
15e063c616 |
chore: the Homebrew tap is devvmhq/tap
Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
f4f2ec6a8f |
chore: the repo is devvmhq/devvm
Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
71a8caaf2e |
docs(home): quick start as three cards with animated terminals, and a Layers card
Quick start is now the install tabs, then three cards side by side from 1024px: go to your project, run devvm, start your agent. Each card has a terminal that loops on its own: cd ~/some-project typed out, devvm typed and claude checked in its list, and claude typed in the VM's shell. They are SVG and CSS only, drawn in their end state for reduced motion. - step-cd.svg, step-pick.svg, step-agent.svg; the type, caret, caret-blink, pick-list, pick-cursor, pick-check and key classes in custom.css; three-column cards' art at most twice its size - What's supported's Backends card is now Layers (layers.svg: the image docker+nix as a stack, the built-in layers beside it); the Lima fact moves to the FAQ; backends.svg goes - the hero's art is centered, and a gap sits above Quick start's cards - install's unused step parameter goes, from the shortcode, its Markdown copy and install-tabs.html - hugo.yaml: Hugo's module fetches use the environment's proxy - Contributing describes the new cards, drawings and animations Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
3da8ffa208 |
fix: Lima-only review: docs and messages describe Lima alone, doctor --json drops backend_source
- doctor --json: backend_source goes (it could only be built-in). - AgentWhileRunning and the agent_on_risk_running and agent_devvm_risk_running messages go: nothing sets the field. Confinement.SSH, NoAgent and AgentFixed stay, as the generic emulation contract for ssh and agent-toggle. - The unused experimental badge goes: its shortcode, Markdown version, partial, CSS, llms.txt filter and flask icon. - Messages: space_backend_unknown, space_stray, gc_backend_skipped and gc_orphans_unknown start with "The lima backend" instead of a lowercase name; backend_lacks and backend_unreviewed point at doctor's features, not other backends; space_caches_note says Lima's caches; setup_in_config's description no longer names a backend key. - Docs: "on every backend" and similar leftovers go (limits, devcontainer, images, ports, lima, design, the docs index); space's "Lima's caches"; safety/network and security say every Lima VM can have network policy; images says a docker-layer VM keeps it; ports.md says devvm records every VM's ssh port; security's set-id paragraph says where a root-owned file comes from; Contributing lists the invariants a new backend's threat check covers. - AGENTS.md: msg.IDOf, now used only by tests, joins deadcode's list. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
35bc2c3cdd |
docs: hugo.Data in place of the deprecated site.Data, and lint:docs fails on any Hugo warning
The two templates that read the sections' icons used site.Data, which Hugo 0.156 deprecated; the built site is the same with hugo.Data. lint:docs builds the site with --panicOnWarning into a temporary folder, so the next deprecation fails there. The site's description says one VM for every project. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
76a91ed698 |
feat(docs): llms.txt links to each page's Markdown copy
As the llms.txt convention prefers: agents get the clean Markdown, install commands and tables included, without the site's chrome. _partials/llms-link.txt gives a page's Markdown copy's URL, or its HTML page's for one without a copy. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
b5be557ab6 |
feat(docs): llms.txt, a Markdown copy of each page and the Copy page menu
hugo.yaml turns on Hextra's llms output at the site root, a markdown output beside each page and section, and params.page.contextMenu. The home page keeps html and rss, and sections keep rss. The search index comes out byte-identical. - layouts/llms.txt replaces Hextra's. Each section's own page is listed first, followed by its pages. Each line is the page's description, or else its first paragraph as plain text on one line, cut at 200 characters (_partials/llms-summary.txt). Hextra's version left out the section pages, printed HTML entities and newlines, and let the experimental badge and the CLI "Synopsis" heading into the summaries. - page/section.markdown.md and _partials/markdown-copy.md render the shortcodes through .markdown.md versions (install, os-tabs, yes, no, experimental, section-card, Hextra's cards). They also point links to a section's _index.md at index.md, so all 867 relative links between the copies resolve. The install commands live in _partials/install-tabs.html, which the HTML tabs use too. - The branding page sets outputs: [html], contextMenu: false and llms: false. The home page sets contextMenu: false. - Coding agents gets a description, because its first paragraph is a heading and a code block. - custom.css styles the menu in the site's border, surface and lime. - Contributing's Writing docs describes all of this, including what to check after adding a page or a shortcode. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
15d6ecc6b9 |
docs(site): the navbar shows the SVG logo, and the footer has no branding link
The navbar uses Hextra's image logo, devvm-logo-on-dark.svg at its own size, with the site's title as its alt text, in place of the CSS logo. The footer's link to the branding page and its styles are gone; right-clicking the logo still opens the page. Why use devvm?'s fourth point gets its period. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
c590167432 |
docs(site): a branding page, and right-click on the logo to reach it
/branding/ (content/branding.md, layouts/branding.html: Hextra's home layout with the home page's look, out of the sidebar): the logo as box-drawing text in a code block with Hextra's copy button; the logo as pixel SVGs for dark and light backgrounds, with 4x PNGs (static/branding/); the app icon as SVG and PNG at 64 to 1024, plus the site's existing icons; the social card; the palette as click-to-copy swatches (data/palette.yaml, hexes read from custom.css); the fonts with samples and Departure Mono's license; usage notes; credits. Shortcodes: brand-assets, brand-asset (fails the build on a missing file, reads PNG sizes), palette, font-sample. custom.css: the page's styles, the footer, and --devvm-accent-dark (#408000), the light logo's prompt. custom/footer.html: a footer link to the page on every page, and a contextmenu handler on the navbar logo that opens it. Contributing > Writing docs describes the page, its shortcodes and how to render its PNGs again. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
56e0d03969 |
docs(site): pixel icons in the home page cards' titles
The feature shortcode takes an icon, drawn before the title in the title's own color at 24px. Toolchains gets code, Coding agents and Made for coding agents robot, Backends cube, Developer ready prompt, Ready in seconds the new high-voltage icon (Dinkie 0.4.6), Isolated sandbox locked and Make it yours wrench. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
c59fe194d3 |
docs(site): section icons in the sidebar, from one list with the section cards
docs/data/sections.yaml maps each docs section to its icon. The docs' section cards read it, and head-end.html writes a CSS mask for each section's top-level sidebar item at build time, so the two always match; the build fails on a section or icon that doesn't exist. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
4e39416bb5 |
docs: section icons, OS tab icons, an experimental badge, ✓ and ✗
The docs' first page is a card per section (section-card on Hextra's cards), each with its pixel icon: rocket, wrench, locked, cube, prompt, gear and the GitHub mark. The install and os-tabs shortcodes put the Apple icon before macOS and the penguin before Linux (os-tab-name.html). The experimental shortcode (flask, Departure Mono, the site's blue) marks smolvm and Docker on their pages, in the backends' comparison table and on the home page's Backends card. yes and no put a check or a cross before a table cell's word, in the comparison table and Installing's install script column. Writing docs describes each. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
17118c3bf7 |
docs(site): pixel icons from Dinkie Icons, and an icon shortcode
Icons in docs/assets/icons/, one SVG each (12x12 viewBox, one path,
fill="currentColor", shape-rendering="crispEdges"):
- From Dinkie Icons 0.4.6 (MIT, the @dinkie-icons/react package's path
data; LICENSE kept): rocket, wrench, shield, locked,
three-networked-computers, cube, code, gear, brand-github, hammer,
brand-apple, flask, check-mark-circled, cross-mark-button,
diagonal-cross, information-circled, no-entry, view-grid,
speech-balloon-question, ghost, question-face, robot, file-folder,
globe-with-meridians, copies.
- Drawn in the same grid and line weight: penguin (Linux), prompt (>_),
warning (a triangle with !).
{{< icon "name" >}} (and {{< icon "name" "Label" >}}) inlines one through
the icon partial: class devvm-icon, aria-hidden without a label, role=img
and aria-label with one; an unknown name fails the build. custom.css sizes
it 0.75em square on the baseline, so a pixel is one screen pixel in 16px
text. Contributing > Writing docs covers the source, license, shortcode
and adding one.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
e5e89e9bbd |
docs(site): the home page's feature cards in two columns, each as tall as its content
On wide screens, features puts the first and third cards in the left column and the others in the right, so a short card leaves no gap; on narrow screens the columns drop out and the cards' order styles keep the page's order. Ready in seconds is the second card again. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
86ed698d5a |
docs: what a VM can reach in three columns; compact decision nodes
Staying safe's diagram sorts what's on this machine into what the VM reaches, what it gets read-only or copied, and what's out of reach, in three columns without arrows that fit the page. The Mermaid theme uses the classic look: the neo look pads a hexagon 70px top and bottom together. Flowchart padding 8 keeps rectangles as wide as before; every diagram is as wide or narrower, and shorter. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
10c73195fa |
docs(site): install commands in a tab per operating system
The home page's quick start and Install devvm, and Installing's Installing devvm, show the install command in Hextra's tabs, from a new install shortcode: macOS with Homebrew, Linux with the install script. The macOS tab is selected in the HTML; a small partial selects the Linux tab for Linux visitors as the page loads. custom.css styles the tabs in the site's palette. README says which command is for which system, and Contributing describes the shortcode. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
2331e2467f |
docs(site): sequence diagrams' actor boxes fit two lines of 14px text
Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
0140402095 |
docs(site): diagrams' text at 14px
Departure Mono at 14px in every Mermaid diagram, with labels on an 18px line and the spacing and actors' boxes scaled to fit it. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
f54bf39be4 |
docs(site): Mermaid diagrams in the site's palette
Mermaid code blocks render with one theme for every diagram: a site partial in place of Hextra's scripts/mermaid.html loads Mermaid 12.2.0, pinned in hugo.yaml (params.mermaid.base), and sets the palette (surface panels, blue borders, lime arrows, no shadows) and Departure Mono at 11px. Diagrams render at their own size and scroll when wide; ids are counted across runs, as Mermaid's time-based ones collide. Five diagrams: the --clone round trip (using/clone.md), the image chain and which image a new VM gets (using/images.md), the first run (getting-started/first-vm.md) and a request through the proxy (safety/network.md). Contributing > Writing docs covers diagrams. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
3ce446bc27 |
docs(site): no shadow on the edit link; home page sections in a grid
The edit link's box at the bottom of the table of contents had Hextra's dark #111 shadow, a gray band on the black background: custom.css drops it. The home page's four sections are feature cards in a grid (the features and feature shortcodes), one centered column, then two per row from 1024px, their art at 364px or 728px. The art shortcode and the cards share the art.html partial. Contributing > Writing docs describes the shortcodes. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
31fca16f8d |
docs(site): a landing page, with a black and lime theme
The home page is Hextra's hextra-home layout: "One VM for every folder", the devvm command and its output, what it does (isolated, ready in seconds, made for coding agents, each linking its page) and how to install. The README's first line and the site's description say the same. The site is dark only, with a palette from the JustBlack VS Code theme: a black background and one lime accent, #7fff00, as Hextra's primary color. Instrument Sans for text and Martian Mono for code come from Google Fonts; Departure Mono (v1.500, OFL, its license beside it) is self-hosted for the navbar logo and the home page's headings, badge and buttons. The logo is the site's title in a box with a box-drawing lock on its corner, in CSS; the navbar is 30px taller for it. Co-Authored-By: Claude Opus 5.5 <[email protected]> |