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 |
| --- | --- |
|
![home](https://github.com/devvmhq/devvm/blob/f679f00e3536fa4ca224d12d3c33aff2b48b676a/docs/og-preview/home.png?raw=true)
|
![Installing](https://github.com/devvmhq/devvm/blob/f679f00e3536fa4ca224d12d3c33aff2b48b676a/docs/og-preview/getting-started-install.png?raw=true)
|
| **Longest title (two lines)** | **CLI page, longest explainer** |
| ![What devvm keeps on this
machine](https://github.com/devvmhq/devvm/blob/f679f00e3536fa4ca224d12d3c33aff2b48b676a/docs/og-preview/using-space.png?raw=true)
| ![devvm
limactl](https://github.com/devvmhq/devvm/blob/f679f00e3536fa4ca224d12d3c33aff2b48b676a/docs/og-preview/cli-devvm-limactl.png?raw=true)
|
| **Section index** | **How it works page** |
| ![Using
devvm](https://github.com/devvmhq/devvm/blob/f679f00e3536fa4ca224d12d3c33aff2b48b676a/docs/og-preview/using.png?raw=true)
| ![.git
protection](https://github.com/devvmhq/devvm/blob/f679f00e3536fa4ca224d12d3c33aff2b48b676a/docs/og-preview/internals-git-protection.png?raw=true)
|

### 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]>
This commit is contained in:
CJandClaude Opus 5.5 authored and GitHub committed 2026-11-07 15:17:55 -07:00
1 parent 72f6284eb9
commit 81f3feeecf
123 files changed
+472 -11

No files matched your search

+93
View File
@@ -0,0 +1,93 @@
Copyright 2022–2024 Helena Zhang (helenazhang.com).
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

+3
View File
@@ -1,5 +1,8 @@
---
title: devvm
# The social card's title (layouts/_partials/og-image.html): the hero's headline, as the logo says devvm.
cardTitle: One VM for every project
explainer: An isolated sandbox for you or a coding agent
layout: hextra-home
# Mostly shortcodes: no Copy page menu (hugo.yaml gives the home page no Markdown copy).
contextMenu: false
+2 -1
View File
@@ -1,5 +1,6 @@
---
title: Branding
explainer: devvm's logo, icons, colors and fonts
layout: branding
description: "devvm's logo, icons, social card, colors and fonts, to download and use when you write about devvm."
sidebar:
@@ -46,7 +47,7 @@ The app icon at any size, and the icons the site uses for browser tabs and home
## The social card
The image that sites and chat apps show with a link to devvm.dev:
The image to show with a link to devvm. Sites and chat apps show each page of devvm.dev with a card of its own in the same style, which has the page's section, its title and a line on what it covers.
{{< brand-assets wide="true" >}}
{{< brand-asset title="Social card, 1200 by 630" src="images/social-card.png" bg="dark" alt="The devvm social card: the logo, One VM for every project, and the tagline" files="images/social-card.png" >}}
+1
View File
@@ -1,5 +1,6 @@
---
title: Docs
explainer: The guides, in the order you'll need them
---
The docs are in the order you'll need them: getting devvm running, using it day to day, staying safe and choosing a backend, then every command, how devvm works and how to change it.
+1
View File
@@ -1,5 +1,6 @@
---
title: Backends
explainer: The program that runs devvm's VMs
weight: 40
---
+1
View File
@@ -1,5 +1,6 @@
---
title: Lima
explainer: What Lima needs, and how devvm uses it
weight: 1
---
+1
View File
@@ -1,6 +1,7 @@
---
title: CLI reference
weight: 90
explainer: Every devvm command, with its arguments and flags
---
Every devvm command, with its arguments and flags. `devvm <command> --help` prints the same.
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm
weight: 1
explainer: "Open a shell in this folder's VM, creating it first"
---
Open a shell in this folder's VM, creating it first
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm adopt
weight: 2
explainer: "Give this folder the VM made for an earlier folder or path"
---
Give this folder the VM made for an earlier folder or path
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm agent
weight: 3
explainer: "Fill devvm's store of the agents' settings and logins that every VM gets"
---
Fill devvm's store of the agents' settings and logins that every VM gets
@@ -1,6 +1,7 @@
---
title: devvm agent import
weight: 4
explainer: "Copy the agents' settings and logins from this machine into devvm's store"
---
Copy the agents' settings and logins from this machine into devvm's store
@@ -1,6 +1,7 @@
---
title: devvm agent login
weight: 5
explainer: "Log an agent in, in this folder's VM, and save the login in devvm's store"
---
Log an agent in, in this folder's VM, and save the login in devvm's store
@@ -1,6 +1,7 @@
---
title: devvm agent save
weight: 6
explainer: "Copy the agents' settings from this folder's VM into devvm's store"
---
Copy the agents' settings from this folder's VM into devvm's store
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm build
weight: 7
explainer: "Build an image and the images under it, unless they're built"
---
Build an image and the images under it, unless they're built
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm clone
weight: 8
explainer: "Show or change whether this folder's VM has its own clone of the repo"
---
Show or change whether this folder's VM has its own clone of the repo
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm code
weight: 9
explainer: "Open this folder's VM in VS Code over Remote-SSH"
---
Open this folder's VM in VS Code over Remote-SSH
@@ -1,6 +1,7 @@
---
title: devvm completion
weight: 10
explainer: "Print the shell completion script for bash, zsh or fish"
---
Print the shell completion script for bash, zsh or fish
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm desktop
weight: 11
explainer: "Open this folder's VM's desktop in a VNC viewer"
---
Open this folder's VM's desktop in a VNC viewer
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm doctor
weight: 12
explainer: "Check what devvm needs on this machine"
---
Check what devvm needs on this machine
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm gc
weight: 13
explainer: "Delete stale images, unused tools, old files and the Nix cache over its cap"
---
Delete stale images, unused tools, old files and the Nix cache over its cap
@@ -1,6 +1,7 @@
---
title: devvm git-protect
weight: 14
explainer: "Show or change .git protection for this folder's VM"
---
Show or change .git protection for this folder's VM
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm group
weight: 15
explainer: "Show the group this folder's VM is in"
---
Show the group this folder's VM is in
@@ -1,6 +1,7 @@
---
title: devvm group join
weight: 16
explainer: "Put this folder's VM in a group of VMs"
---
Put this folder's VM in a group of VMs
@@ -1,6 +1,7 @@
---
title: devvm group leave
weight: 17
explainer: "Take this folder's VM out of its group"
---
Take this folder's VM out of its group
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm history
weight: 18
explainer: "List the saved exports of agents' history"
---
List the saved exports of agents' history
@@ -1,6 +1,7 @@
---
title: devvm history export
weight: 19
explainer: "Save this folder's VM's agent history to a .tar.gz"
---
Save this folder's VM's agent history to a .tar.gz
@@ -1,6 +1,7 @@
---
title: devvm history import
weight: 20
explainer: "Put an export of agent history into this folder's VM"
---
Put an export of agent history into this folder's VM
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm host
weight: 21
explainer: "Get this folder's VM ready for ssh and editors, and show its host name"
---
Get this folder's VM ready for ssh and editors, and show its host name
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm images
weight: 22
explainer: "List the images and the shared tools"
---
List the images and the shared tools
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm images rm
weight: 23
explainer: "Delete images, by name or by key"
---
Delete images, by name or by key
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm layer
weight: 24
explainer: "Make image layers of your own, or change this folder's VM's layers"
---
Make image layers of your own, or change this folder's VM's layers
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm layer add
weight: 25
explainer: "Make this folder's VM again with more layers, then open a shell in it"
---
Make this folder's VM again with more layers, then open a shell in it
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm layer new
weight: 26
explainer: "Start a layer of your own"
---
Start a layer of your own
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm layer rm
weight: 27
explainer: "Make this folder's VM again without some of its layers, then open a shell in it"
---
Make this folder's VM again without some of its layers, then open a shell in it
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm limactl
weight: 28
explainer: "Run Lima's limactl for debugging, which starts VMs unconfined, whatever their tier"
---
Run Lima's limactl for debugging, which starts VMs unconfined, whatever their tier
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm link
weight: 29
explainer: "List this folder's VM's links to your other VMs"
---
List this folder's VM's links to your other VMs
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm link add
weight: 30
explainer: "Link this folder's VM to a port of another VM"
---
Link this folder's VM to a port of another VM
@@ -1,6 +1,7 @@
---
title: devvm link publish
weight: 31
explainer: "Show or add the ports this folder's VM offers to links"
---
Show or add the ports this folder's VM offers to links
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm link rm
weight: 32
explainer: "Remove one of this folder's VM's links"
---
Remove one of this folder's VM's links
@@ -1,6 +1,7 @@
---
title: devvm link unpublish
weight: 33
explainer: "Stop offering ports of this folder's VM to links"
---
Stop offering ports of this folder's VM to links
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm ls
weight: 34
explainer: "List the project VMs"
---
List the project VMs
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm network
weight: 35
explainer: "Show or change the network tier of this folder's VM"
---
Show or change the network tier of this folder's VM
@@ -1,6 +1,7 @@
---
title: devvm network allow
weight: 36
explainer: "Allow hosts for this folder's VM"
---
Allow hosts for this folder's VM
@@ -1,6 +1,7 @@
---
title: devvm network deny
weight: 37
explainer: "Deny hosts for this folder's VM"
---
Deny hosts for this folder's VM
@@ -1,6 +1,7 @@
---
title: devvm network log
weight: 38
explainer: "Show what this folder's VM connected to and what its proxy blocked"
---
Show what this folder's VM connected to and what its proxy blocked
@@ -1,6 +1,7 @@
---
title: devvm network rm
weight: 39
explainer: "Remove rules from this folder's VM"
---
Remove rules from this folder's VM
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm ports
weight: 40
explainer: "Show or change which ports this folder's VM forwards"
---
Show or change which ports this folder's VM forwards
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm ports add
weight: 41
explainer: "Forward more ports from this folder's VM"
---
Forward more ports from this folder's VM
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm ports rm
weight: 42
explainer: "Stop forwarding some ports from this folder's VM"
---
Stop forwarding some ports from this folder's VM
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm rebuild
weight: 43
explainer: "Build an image again, and delete the old one"
---
Build an image again, and delete the old one
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm restart
weight: 44
explainer: "Restart this folder's VM and open a shell in it"
---
Restart this folder's VM and open a shell in it
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm retention
weight: 45
explainer: "Show or change what devvm deletes on its own"
---
Show or change what devvm deletes on its own
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm rm
weight: 46
explainer: "Delete this folder's VM, or a VM whose folder is gone"
---
Delete this folder's VM, or a VM whose folder is gone
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm secret
weight: 47
explainer: "List the secrets kept on this machine, for VMs to use"
---
List the secrets kept on this machine, for VMs to use
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm secret rm
weight: 48
explainer: "Delete a saved secret"
---
Delete a saved secret
@@ -1,6 +1,7 @@
---
title: devvm secret set
weight: 49
explainer: "Save a secret on this machine"
---
Save a secret on this machine
@@ -1,6 +1,7 @@
---
title: devvm secret unuse
weight: 50
explainer: "Stop this folder's VM using a secret"
---
Stop this folder's VM using a secret
@@ -1,6 +1,7 @@
---
title: devvm secret use
weight: 51
explainer: "Let this folder's VM use a secret"
---
Let this folder's VM use a secret
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm setup
weight: 52
explainer: "Choose base's features, and new VMs' size, network tier, coding agents and layers"
---
Choose base's features, and new VMs' size, network tier, coding agents and layers
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm size
weight: 53
explainer: "Show or change this folder's VM's size"
---
Show or change this folder's VM's size
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm space
weight: 54
explainer: "Show what devvm keeps on this machine and the space it takes"
---
Show what devvm keeps on this machine and the space it takes
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm ssh-agent
weight: 55
explainer: "Show or change SSH agent forwarding for this folder's VM"
---
Show or change SSH agent forwarding for this folder's VM
@@ -1,6 +1,7 @@
---
title: devvm ssh-agent add
weight: 56
explainer: "Load a key into devvm's own SSH agent"
---
Load a key into devvm's own SSH agent
@@ -1,6 +1,7 @@
---
title: devvm ssh-agent rm
weight: 57
explainer: "Remove a key from devvm's own SSH agent"
---
Remove a key from devvm's own SSH agent
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm stop
weight: 58
explainer: "Stop this folder's VM"
---
Stop this folder's VM
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm tools
weight: 59
explainer: "Show or choose this folder's VM's shared tools"
---
Show or choose this folder's VM's shared tools
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm tools add
weight: 60
explainer: "Add shared tools to this folder's VM, then open a shell in it"
---
Add shared tools to this folder's VM, then open a shell in it
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm tools rm
weight: 61
explainer: "Take shared tools out of this folder's VM, then open a shell in it"
---
Take shared tools out of this folder's VM, then open a shell in it
@@ -1,6 +1,7 @@
---
title: devvm tools update
weight: 62
explainer: "Move this folder's VM to the newest shared tools, then open a shell in it"
---
Move this folder's VM to the newest shared tools, then open a shell in it
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm update
weight: 63
explainer: "Bring this folder's VM up to date, then open a shell in it"
---
Bring this folder's VM up to date, then open a shell in it
+1
View File
@@ -1,6 +1,7 @@
---
title: devvm upgrade
weight: 64
explainer: "Install devvm's newest release"
---
Install devvm's newest release
+10 -5
View File
@@ -1,5 +1,6 @@
---
title: Contributing
explainer: Build devvm, run its tests and follow its rules
weight: 100
---
@@ -527,7 +528,7 @@ The site is [Hugo](https://gohugo.io) with the [Hextra](https://imfing.github.io
- **Pages** are Markdown files in `docs/content/docs/`, one per topic, in a folder per section of the sidebar. The sections run in the order a new user needs them: `getting-started/`, `using/`, `safety/`, `backends/`, `cli/`, `internals/`, then `contributing/`. Each folder's `_index.md` is the section's own page, which lists its pages. Update the page for any behavior you change.
- **What goes where:** the user pages, in `getting-started/`, `using/`, `safety/` and `backends/`, say what devvm does, what you type and what you see, and they name no repo paths, Go identifiers or message names. How it works, in `internals/`, explains how devvm does it, for readers who want to check a claim, and it holds the mechanisms and the message names that come from them. Contributing, in `contributing/`, covers changing devvm, so repo paths, Go identifiers, version bumps, releases and tests go there. A user page links once to its How it works page where there is one.
- **Front matter** sets `title`, shown as the page's heading, and `weight`, the page's place in its section, or a section's place in the sidebar for an `_index.md`. Start the body at `##`.
- **Front matter** sets `title`, shown as the page's heading, `weight`, the page's place in its section, or a section's place in the sidebar for an `_index.md`, and `explainer`, the line under the title on the page's social card, which Social cards below describes. Start the body at `##`.
- **Links** to other pages point at their files (`[Contributing](_index.md)`), so the linters can check them.
- **Diagrams** are Mermaid code blocks, fenced with `mermaid`, which the browser draws when the page loads. `docs/layouts/_partials/scripts/mermaid.html` takes the place of Hextra's partial of the same name. It loads the Mermaid version that `hugo.yaml` pins in `params.mermaid.base`, which Hugo fetches when it builds the site, and it gives every diagram the same theme, so a diagram never sets its own colors or font. The theme uses the site's palette: panels on the surface color with blue borders, lime arrows, and text in Departure Mono at 14px, larger than the home page's art so labels read easily. It uses Mermaid's classic look, because its newer neo look draws a decision's hexagon 70px taller than its label. A diagram can set its own layout in front matter, as Staying safe's three columns set `minNodeWidth`, but never its own colors or font. Mermaid draws each diagram at its own size and never scales it to fit, and a diagram wider than the page scrolls sideways. Keep labels short, and break a long one with `<br>`. In a label, write `<` as `#lt;` and `>` as `#gt;`. A diagram goes where it helps the reader follow the text, with at most one sentence to introduce it, and the text keeps every fact the diagram shows.
- **Style:** succinct and direct. Commands are written as devvm x or in backticks, never in quotes. No `please`, `simply` or `note that`.
@@ -538,13 +539,17 @@ The site is [Hugo](https://gohugo.io) with the [Hextra](https://imfing.github.io
- **Install commands** come from `{{</* install */>}}` in `docs/layouts/_shortcodes/install.html`, which the home page and Installing use. The commands are written in one place, `docs/layouts/_partials/install-tabs.html`, which the tabs and the pages' Markdown copies both read. It renders Hextra's tabs with a macOS tab, which has the Homebrew command, and a Linux tab, which has the install script. The macOS tab is selected in the HTML, so it shows when JavaScript is off. A small script in `docs/layouts/_partials/install-os.html` selects the Linux tab as the page loads when the browser's platform or user agent string says Linux, apart from Android. To check the Linux tab in headless Chrome, pass `--user-agent=` with a Linux user agent string. `custom.css` styles the tabs on a blue line, with the selected tab in lime.
- **Other content per operating system** goes in `{{</* os-tabs */>}}`, with a `{{</* os-tab name="macOS" */>}}` and then a `{{</* os-tab name="Linux" */>}}` inside it, each holding Markdown, as Installing's requirements tables do. It uses the same tabs, styles and script as the install commands, so the visitor's system is selected, and the build fails unless the tabs are macOS's, then Linux's.
- **Colors:** the site is dark only (`hugo.yaml`'s `params.theme`). Its palette is in `docs/assets/css/custom.css`: a black background and one lime accent, `#7fff00`, which sets Hextra's primary color. The home page's illustrations also use `#0086b3`, the blue that Hextra's syntax highlighting gives commands like `cd`, and `#ff5370` (`--devvm-red`), the JustBlack theme's red, which marks only what an attack has compromised. The red's contrast is 6.7:1 on the black and 6.0:1 on the surface color, and it's much darker than the lime, so the two stay apart for readers who can't tell red from green.
- **Fonts:** Instrument Sans for text and Martian Mono for code, from Google Fonts (`docs/layouts/_partials/custom/head-end.html`); Departure Mono, a pixel font in `docs/static/fonts/` with its license, for the logo, the home page's headings, badge and buttons. Departure Mono is sharp at multiples of 11px and has one weight.
- **Fonts:** Instrument Sans for text and Martian Mono for code, from Google Fonts (`docs/layouts/_partials/custom/head-end.html`); Departure Mono, a pixel font in `docs/static/fonts/` with its license, for the logo, the home page's headings, badge and buttons. Departure Mono is sharp at multiples of 11px and has one weight. The social cards draw it from `docs/assets/fonts/departure-mono/`, which has the same release's OTF and license, because Hugo can't draw text from a WOFF2.
- **The logo** in the navbar is the branding page's `devvm-logo-on-dark.svg` at its own size, which `hugo.yaml`'s `params.navbar.logo` names, with the site's title as its alt text. Right-clicking it opens the branding page instead of the browser's menu, through a script in `docs/layouts/_partials/custom/footer.html`. A left click, or Enter on the focused logo, still goes to the home page.
- **The branding page** is `docs/content/branding.md`, at `/branding/`, on its own layout, `docs/layouts/branding.html`, which is Hextra's home layout with the home page's look and the script that copies a swatch's hex. Its front matter keeps it out of the sidebar. It has the logo as box-drawing text in a code block, the logo's SVGs and PNGs, the icons, the social card, the palette, the fonts, how to use the logo and the credits.
- **Its downloads** are in `docs/static/branding/`, and `{{</* brand-asset */>}}` tiles inside `{{</* brand-assets */>}}` show each one on its background, with a link to each file. The build fails when a file doesn't exist, and it reads each PNG's size for its link. `devvm-logo-on-dark.svg` and `devvm-logo-on-light.svg` are the logo, drawn on a pixel grid as the favicon is, made from Departure Mono's 11px glyphs. The prompt and devvm are at twice the glyphs' size, the box is in 1-pixel lines, and the lock, a block with a keyhole under a 2-pixel arch, sits on the box's bottom-right corner, with the box's lines stopping short of it so that the arch stands clear. The version for light backgrounds is black, with its prompt in the dark lime, `#408000` (`--devvm-accent-dark`), which is the lime's hue at half its lightness, with a contrast of 4.9:1 on white, where the lime has 1.2:1. Each logo's PNG is its SVG at four times its size on a transparent background, and `devvm-icon-64.png` to `devvm-icon-1024.png` are `docs/static/favicon.svg` at 4 to 64 times its size. After changing an SVG, render its PNGs again with headless Chrome's `--screenshot` at the exact size, passing `--default-background-color=00000000` for the logos' transparency, and look at each one.
- **The palette** comes from `{{</* palette */>}}`, which reads the colors that `docs/data/palette.yaml` lists, with each one's name and use, and takes each hex from its variable in `custom.css`, so the page always shows the site's colors. The build fails when a variable isn't there. A new color goes in both files.
- **The fonts** each come from `{{</* font-sample */>}}`, which shows a line of text in the font, with a link to the license the site serves for Departure Mono.
- **The favicon** is the same mark drawn on a 16-pixel grid in `docs/static/favicon.svg`: the box, a lime prompt in its middle and a small lock centered on its bottom-right corner, overhanging it by 2 pixels each way, its shackle a closed arch, with the box's lines stopping a pixel short of the lock, on black, with a pixel of black around the whole mark. Hextra links its icons by name, and the ones in `docs/static/` take the place of its own: `favicon-16x16.png` and `favicon-32x32.png`, `favicon.ico`, which holds those two PNGs, `apple-touch-icon.png`, which is the grid at 160px with 10px of black around it, and the two `android-chrome-*.png` icons that `site.webmanifest` lists. Each PNG is the SVG at a whole multiple of its size, so its pixels stay sharp. **The social card** in `docs/static/images/social-card.png` is the 1200x630 image shown with a link to the site when someone shares it, and `hugo.yaml`'s `params.images` names it, so every page gets it as its `og:image` and `twitter:image`. It has `devvm-logo-on-dark.svg` at twice its size, the home page's headline and tagline in Departure Mono, and the site's colors. After changing the SVG or the card's text, render the PNGs again with headless Chrome's `--screenshot` at the image's exact size, and look at each one.
- **The favicon** is the same mark drawn on a 16-pixel grid in `docs/static/favicon.svg`: the box, a lime prompt in its middle and a small lock centered on its bottom-right corner, overhanging it by 2 pixels each way, its shackle a closed arch, with the box's lines stopping a pixel short of the lock, on black, with a pixel of black around the whole mark. Hextra links its icons by name, and the ones in `docs/static/` take the place of its own: `favicon-16x16.png` and `favicon-32x32.png`, `favicon.ico`, which holds those two PNGs, `apple-touch-icon.png`, which is the grid at 160px with 10px of black around it, and the two `android-chrome-*.png` icons that `site.webmanifest` lists. Each PNG is the SVG at a whole multiple of its size, so its pixels stay sharp. **The social card** in `docs/static/images/social-card.png` is the 1200x630 card that the branding page offers for links to devvm. It has `devvm-logo-on-dark.svg` at twice its size, the home page's headline and tagline in Departure Mono, and the site's colors. After changing the SVG or the card's text, render the PNGs again with headless Chrome's `--screenshot` at the image's exact size, and look at each one.
- **Social cards:** every page gets a 1200x630 card of its own, which Hugo draws when it builds the site, and which sites and chat apps show when someone shares the page's link.
- **The card** is `docs/assets/images/og-template.png`, which is `social-card.png` with the headline and tagline painted out in the background's black, so it has the logo, devvm.dev and the lime bar, in the same four colors and nothing else. `docs/layouts/_partials/og-image.html` draws three things on it with Hugo's `images.Text`, in Departure Mono: the page's section in lime capitals at 22px, its title in white at 66px, or at 55px or 44px when a smaller size fits it in two lines, and its explainer in gray at 33px. A docs page's section is its section's title, such as Using devvm, a section's own page has Docs, and the home page and the branding page have none. The text is centered between the logo and devvm.dev. Each size is a multiple of 11px and each line starts at a whole pixel, so the text is as sharp as the logo, and the card keeps only the template's four colors. `docs/layouts/_partials/og-wrap.html` wraps the lines at spaces, and because the font is monospaced, a line's width is its length.
- **The explainer** is the `explainer` in each page's front matter: a few plain words on what the reader gets from the page, such as `Install devvm and check what it needs`, without a full stop. It isn't the page's `description`, which search engines and `llms.txt` show, because that's a sentence or two, and most pages have none. The home page's card shows its `cardTitle`, the hero's headline, in place of its title, because the logo already says devvm. The CLI reference's pages get their command's `Short` as their explainer when `mise run cli-docs` writes them. `TestExplainers` in `internal/cli/docgen` fails when a page has no explainer, or when its explainer takes more than two lines of 48 characters or its title more than two lines of 36, which are the card's lines at 33px and 44px.
- **The tags:** `docs/layouts/_partials/custom/head-end.html` writes `og:image` with its type, width, height and `og:image:alt`, and `twitter:image:alt`, whose text is devvm docs, the title and the explainer. `docs/layouts/_partials/_funcs/get-page-images.html` takes the place of Hugo's own, which its Twitter card and schema templates call for a page's images, so `twitter:image` and the schema's image are the same card. `hugo.yaml` names no `params.images`, so Hextra's Open Graph template writes no second `og:image`. A card's address is the site's, so next.devvm.dev's pages show next.devvm.dev's cards.
- **The illustrations** on the home page are SVGs in `docs/assets/home/`, and `{{</* art "name" */>}}` inlines one into the page, so that it gets the page's fonts and colors. A feature card's `art` parameter inlines one the same way, through `docs/layouts/_partials/art.html`. Each one is drawn on Departure Mono's 11px cell, 7 pixels wide and 14 tall, so its text and shapes are sharpest at its own size or at twice its size. The `art` shortcode shows it at twice its size, 728px wide. A card shows it as wide as the card, at whatever scale that takes.
- **Each card's drawing shows what its text says, and nothing more.** The big cards' drawings are 364 by 140 pixels, or 168 for `isolated.svg`: `zero-config.svg` shows a dev server's forwarded port, `devvm code` and a commit authored by you, `copies.svg` the base image and its copies, `isolated.svg` the mount and the proxy, `agents.svg` the agents' mounts, the history that stays and the token, and `make-it-yours.svg` the stack of base, your layer and the VM, with `--from`. The What's supported cards' drawings are 224 by 70 pixels: `toolchains.svg`, `coding-agents.svg` and `layers.svg`, which shows the image `docker+nix` as a stack and the built-in layers beside it. The Quick start cards' drawings are terminals of 254 by 181 pixels, which a card shows at most twice their size: `step-cd.svg` types `cd ~/some-project` on your machine, `step-pick.svg` types devvm, shows a short version of the new VM's summary and presses enter at Customize it? [y/N], and `step-agent.svg` types claude in the VM's shell. Why use devvm?'s drawing, `blast-radius.svg`, is 364 by 210 pixels and shows the same four attacks as its text on two machines. Without devvm, they light up on your machine, and the project, `~/.aws`, `~/.ssh` and another project turn red one after another. With devvm, they light up in the VM, each one's path toward your machine ends at the VM's border with a cross, and your machine's folders stay as they are.
- **Every text element holds one run of characters at its own `x`,** because Hugo's `--minify` removes the spaces between `tspan` elements. A gap of a cell is 7 pixels added to `x`.
@@ -576,7 +581,7 @@ The site is [Hugo](https://gohugo.io) with the [Hextra](https://imfing.github.io
| Vale | the style rules | `.vale.ini`, `.vale/styles/devvm/` |
| lychee (`--offline`) | links to pages and files | |
It also builds the site with Hugo's `--panicOnWarning`, into a temporary folder it removes, so any warning fails it. That includes a deprecation, such as a template that reads `site.Data` where Hugo wants `hugo.Data`, so a Hugo upgrade that deprecates something the templates use fails here before the feature is removed.
It also builds the site with Hugo's `--panicOnWarning`, into a temporary folder it removes, so any warning fails it. That includes a deprecation, such as a template that reads `site.Data` where Hugo wants `hugo.Data`, so a Hugo upgrade that deprecates something the templates use fails here before the feature is removed. It runs `TestExplainers` too, so a page without an explainer fails it.
### The CLI reference
@@ -586,7 +591,7 @@ The [CLI reference](../cli/_index.md) in `docs/content/docs/cli/` is generated f
mise run cli-docs
```
It runs `internal/cli/docgen`, which replaces every page in that folder: `_index.md`, listing the commands, and a page per command named after its path (`devvm_build.md`), with `title` and `weight` front matter and links to the other pages as files. Each page has the command's examples, and a Docs section before See also that links to the command's docs page on the site. Hidden commands (`_msg`, `_qemu`) and Cobra's help command are left out. The pages carry no dates, so the same commands give the same files.
It runs `internal/cli/docgen`, which replaces every page in that folder: `_index.md`, listing the commands, and a page per command named after its path (`devvm_build.md`), with `title`, `weight` and `explainer` front matter, the explainer being the command's `Short`, and links to the other pages as files. Each page has the command's examples, and a Docs section before See also that links to the command's docs page on the site. Hidden commands (`_msg`, `_qemu`) and Cobra's help command are left out. The pages carry no dates, so the same commands give the same files.
### A command's help
@@ -1,5 +1,6 @@
---
title: Maintaining
explainer: Bump pinned versions, release devvm and run the docs sites
weight: 2
---
@@ -1,5 +1,6 @@
---
title: Testing on other hosts
explainer: Run devvm's tests on Linux, x86_64 and other hosts
weight: 1
---
@@ -1,5 +1,6 @@
---
title: Getting started
explainer: From installing devvm to your first VM
weight: 10
---
@@ -1,5 +1,6 @@
---
title: Everyday commands
explainer: The commands you use most, in their groups
weight: 3
---
@@ -1,5 +1,6 @@
---
title: Your first VM
explainer: Make a project's VM and start an agent in it
weight: 2
---
@@ -1,5 +1,6 @@
---
title: Installing
explainer: Install devvm and check what it needs
weight: 1
---
+1
View File
@@ -1,5 +1,6 @@
---
title: How it works
explainer: How devvm works, for reviewers and contributors
weight: 95
---
+1
View File
@@ -1,5 +1,6 @@
---
title: Backends
explainer: What a backend gives devvm, and how VMs are named
weight: 8
---
+1
View File
@@ -1,5 +1,6 @@
---
title: Design notes
explainer: Why devvm is built this way, and what's open
weight: 12
---
+1
View File
@@ -1,5 +1,6 @@
---
title: The desktop
explainer: How devvm desktop serves a VM's desktop
weight: 4
---
@@ -1,5 +1,6 @@
---
title: .git protection
explainer: What devvm locks in .git, and when
weight: 6
---
+1
View File
@@ -1,5 +1,6 @@
---
title: Images and caching
explainer: How images and shared tools are built and cached
weight: 3
---
+1
View File
@@ -1,5 +1,6 @@
---
title: Installing and updating
explainer: What the install script and devvm doctor check
weight: 2
---
+1
View File
@@ -1,5 +1,6 @@
---
title: Lima
explainer: How devvm sets up, confines and clones Lima's VMs
weight: 9
---
+1
View File
@@ -1,5 +1,6 @@
---
title: Network tiers
explainer: How the proxy confines VMs and keeps your secrets
weight: 5
---
+1
View File
@@ -1,5 +1,6 @@
---
title: Overview
explainer: What devvm does at each step of a VM's life
weight: 1
---
+1
View File
@@ -1,5 +1,6 @@
---
title: Port forwarding
explainer: How devvm forwards a VM's ports to this machine
weight: 4
---
+1
View File
@@ -1,5 +1,6 @@
---
title: Security model
explainer: What devvm protects, how, and what it doesn't
weight: 7
---
+1
View File
@@ -1,5 +1,6 @@
---
title: Staying safe
explainer: How devvm keeps untrusted code off your machine
weight: 30
---
@@ -1,5 +1,6 @@
---
title: Attack vectors
explainer: Common attacks, and what devvm does about each
weight: 3
---
@@ -1,5 +1,6 @@
---
title: .git protection
explainer: Keep code in the VM out of your .git
weight: 2
---
+1
View File
@@ -1,5 +1,6 @@
---
title: Network tiers
explainer: Choose what each VM can reach on the network
weight: 1
---
+1
View File
@@ -1,5 +1,6 @@
---
title: Using devvm
explainer: What you change in your VMs as you work
weight: 20
---
+1
View File
@@ -1,5 +1,6 @@
---
title: Working on a clone
explainer: Give a VM its own clone of the repo
weight: 9
---
+1
View File
@@ -1,5 +1,6 @@
---
title: Coding agents
explainer: Run Claude Code, Codex and opencode in a VM
weight: 1
description: "devvm runs Claude Code, Codex and opencode in VMs, with each agent's settings and logins from devvm's own store on this machine but never your history. This page covers which agents devvm supports, devvm's agent store and what each VM gets from it, the agents' logins and their history."
---
+1
View File
@@ -1,5 +1,6 @@
---
title: The command line
explainer: Help, flags, questions, JSON output and completion
weight: 15
---
Loaded 100 of 123 files, more files were not shown because too many files have changed in this diff. Show more