Marketing site for VirtualPyTest, the open-source, AI-native device testing & monitoring platform.
Plain static HTML/CSS, no build step. Deployed on Vercel.
index.html— the siteimages/— screenshots and logo, sourced fromvirtualpytest/pitch-deck
python3 -m http.server 8000
master is what Vercel deploys, so a merge to master is a deploy. Nobody merges by hand: not you, not a PR button, not the manager. The integration lane (mycodebox, repo key website) merges your branch into master, runs the tests below on the merged tree and pushes master. It has no deploy scope: Vercel deploys from master on its own.
- Never work in the shared clone. Make your own worktree from
origin/master:git worktree add ../virtualpytest-website-<slug> -b <type>/<slug> origin/master - Test in the worktree:
python3 -m pytest tests -q(about 100 s; needspython3-playwrightand its Chromium). It checks that the JSON files parse and that every Learn lesson fits a phone (tools/learn_fit.py, below). - Commit there and push your branch only:
git push -u origin <type>/<slug>. A push tomasteris refused by the guard in the VirtualPyTest agent tooling, on purpose; the lane does the push tomasterfrom its own clone. - Ask the lane to integrate:
integrate request <type>/<slug> --repo website --wait(no--deploy). It prints a request id;integrate status <id>shows where it is. Exit 0 = merged. Exit 3 = returned with a reason (fix it on your branch, push, request again). On a Mac the same command works with the Macintegrateclient (token in~/.config/mycodebox/token, see mycodeboxdocs/MAC-HOOK.md); run it with--waitsince nothing wakes a Mac session. - After the merge Vercel deploys
master. Verify the live page or file (for examplecurl -s https://virtualpytest.com/site.js | grep <marker>). The lane removes your branch; remove the worktree:git worktree remove ../virtualpytest-website-<slug>.
The manager is only involved when the lane returns a request that needs a decision (paths such as .github/workflows/*, secrets); never open a PR to get around the lane.
Backend endpoints used by the site (e.g. the Ask AI widget) live in the virtualpytest repo and must be deployed before the site change that calls them.
learn/ loads its cards, translations and script by relative path (cards/<name>.html, i18n/, learn_i18n.js). Opened as /learn without the slash, they resolve to the site root and the player shows Vercel's 404 ("This page doesn't exist"). The cards are not missing. Two guards stop this; keep both:
vercel.jsonhas"trailingSlash": true, so/learnanswers with a 308 to/learn/.learn/index.htmlredirects to the slash form in its<head>, for any other host.
A new folder page (<name>/index.html) with relative paths needs the same <head> guard. After a deploy, check: curl -sI https://virtualpytest.com/learn returns 308 with location: /learn/.
12 lessons play a 3D card (cards/<slug>-3d.html). Its stage is a video in learn/out/blender/<scene>/: stage-light
and stage-dark (the player's dark theme), each as WebM and MP4 (Safari), ~0.4-1 MB each, plus anchors.js (where
the labels sit, frame by frame). They are copied with the card by the product repo's publish_learn.sh; never edit them
here. The frames they replaced (450 WebP per card) stuttered on the live site, 2026-11-15. A 3D card has its flat card's
words, so the player translates it with the flat card's catalog (catOf in learn/index.html). To bring a flat card
back, set its card in learn/index.html. New video files need --approved-by manager in the lane.
python3 tools/learn_fit.py [site-dir] [height, default 740] [--lang de] opens every Learn lesson at 390 px wide and requires that the lesson block (main.lx: picker, animation, text, sticky Prev/Next) is no taller than the viewport, that every title stays on one line and that no card throws a page error. The site navbar, device strip and footer scroll away and are not counted. It exits 1 on any failure and is part of python3 -m pytest tests -q, which the lane runs. (Before 2026-11-11 the check counted the whole page, so all 50 lessons "failed" by a constant 400 px. The lessons themselves were fine.)
index.html, site.css, site.js and locales.json are the source: edit them directly, through the lane as above. Do not regenerate them from any script.
A local-only mockups/ folder (design mockups and a port_site.py generator) may exist on some machines. It is gitignored on purpose, is not part of this repository, and must never be committed or pushed. It has fallen behind master, so running its generator would overwrite current pages.