rig-c/rig-c.github.io
Official static website for the rig-c 2D character rigging and animation toolchain, served at https://rig-c.org (GitHub Pages custom domain; the CNAME file holds it).
Built flat-first for zero-JS curl readability, AI agent ingestion (llms.txt / llms-full.txt / per-page index.md), and technical SEO (semantic HTML5, Schema.org JSON-LD, Open Graph, sitemap.xml, robots.txt).
Routes & Static Outputs
Every documentation page is one Markdown file under content/ (frontmatter + body). bun run build renders it to _site/<route>/index.html and copies it to _site/<route>/index.md. Only _site/ is published; the repository root contains authored inputs and tooling.
| Route |
Source |
Subject |
/ |
content/index.md |
Toolchain overview, package table, licensing boundaries |
/docs/ |
content/docs/index.md |
Docs hub: the packages in pipeline order (the list is generated from each page's frontmatter) |
/docs/capabilities/ |
content/docs/capabilities.md |
Input, producer, controls, output and playback matrix for 2D, depth-driven 2.5D and full 3D |
/docs/getting-started/ |
content/docs/getting-started.md |
The three-step pipeline and the 10-step no-GPU walkthrough from rig-c/getting-started |
/docs/create/ … /docs/adapters/ |
content/docs/<slug>.md |
One concept page per package: what it is, when to use it, what it solves, what you get, how it works, key concepts, and links into the repo for detail |
/docs/performance/ |
content/docs/performance.md |
Historical runtime costs, CPU/GPU boundaries, unresolved results and source-pinned methodology |
/examples/ |
content/examples.md |
Reproducible examples (rig-c/examples, rig-c/trailer) |
/demos/head-turn/ |
demos/head-turn/index.html |
Standalone depth-driven head-turn demo (separate from the released Parts producer) (JavaScript/WebGL required) |
/demos/head-turn/curvature/ |
demos/head-turn/curvature/index.html |
Curvature check: the original painting displaced by its depth map in one fragment shader, no rig (WebGL required) |
/exam/ |
content/exam.md |
rig-c/exam — the open-book exam for AI agents, Basic and Advanced editions |
The first version's routes (/parts/, /core/, /getting-started/, …) are redirect stubs to their /docs/ pages (REDIRECTS in src/content.ts); they are noindex and stay out of the sitemap.
Each docs page keeps a <!-- SOURCES … --> comment listing where every claim comes from. It is stripped at build time and never published. {{version:<slug>}} resolves the docs page's package names against npm's latest manifests at build time. Each engine adapter is resolved separately and labelled by name. The landing table, docs badges, per-page Markdown metadata, JSON-LD and both LLM endpoints use that same resolved map for current versions. Multi-package docs emit one badge and one SoftwareSourceCode record per actual package. There is no authored packageVersion frontmatter: it previously duplicated current-looking metadata without defining a historical documentation baseline. Recorded demo, fixture and reproduction versions remain pinned in their captions and instructions.
The build requires access to https://registry.npmjs.org. Before writing any output, src/versions.ts fetches each package's /latest manifest once, with a 15-second timeout and no retries or stale fallback. HTTP, network, JSON, package-name or version errors fail the build. Build stdout records each exact endpoint, version and SHA-256 of the response body for reproduction. /play/ and /licensing/ are compatibility stubs to /docs/play/ and /docs/licensing/.
Machine / AI Crawler Endpoints
/llms.txt — Concise index of all pages, packages, and install commands following the llms.txt specification.
/llms-full.txt — Complete single-file Markdown corpus of every page for single-request LLM context ingestion.
/sitemap.xml — XML sitemap for search engines.
/robots.txt — Explicit Allow: / rules for search engines and AI crawlers (GPTBot, ClaudeBot, Google-Extended, PerplexityBot, etc.).
Commands
Use Bun 1.4.4 (the Actions runtime is pinned to that release). The browser smoke uses an exact Playwright development dependency; install it with bun install --frozen-lockfile. The site builder has no third-party dependencies. Build and full verification bundles run on the project's approved remote verification runner, against frozen inputs; the commands below are also the exact pipeline run by Actions.
bun run test:rigboy # Built examples page: nine v2 clips, pause/overlays, Family regression + native captures
bun run test # Offline resolver/layout/artifact/live-comparison/workflow tests
bun run test:browser # Built head-turn artifact; pinned Chromium required (CI or an approved verification environment)
bun run build # Fetch nine npm latest manifests, emit an isolated _site/ artifact
bun run verify # Check _site/: all routes, redirects, static assets and deployment manifest
bun run compare:live # Read-only comparison with the currently served deployment manifest
bun run serve # Serve only _site/ on http://localhost:4321 (after a build)
Build, verify, serve and live comparison all accept --out <directory>:
bun run build --out dist
bun run verify --out dist
bun run compare:live --out dist
bun run serve --out dist
Inside this repository, output is restricted to _site/ or dist/; an external isolated output directory is also supported. The repository root and authored directories cannot be output targets. New or empty output directories are allowed. A nonempty destination is replaceable only if its valid deployment-manifest.json identifies a previous generated site and every current file/directory is recorded by that marker (or is the marker itself). Unknown files are preserved by refusing the build; checkout/.git destinations are always refused, including other checkout ancestors. The marker's own digest is validated without requiring current file bytes to match, so regeneration can remove previously recorded stale files. Ownership is checked before fetching and again immediately before replacement. A successful build replaces only that owned output directory. Output paths must have canonical, symlink-free ancestors: on macOS use /private/tmp/... rather than /tmp/... (or resolve a parent with realpath before choosing the output path). Aliases into authored input are rejected rather than followed. All version lookups and rendering finish before any output is written; failed lookups preserve an existing output directory unchanged. Asset copying or filesystem errors fail the build and prevent publication.
The builder copies only this repository's assets/, demos/, styles.css and CNAME, byte for byte. It never reads a sibling checkout or runs the media scripts. Site-authoring Markdown, scripts and configuration are not published; the static demo bundle intentionally preserves its own README and licence notice. Generated HTML/Markdown, redirect stubs, llms*.txt, robots.txt and sitemap.xml belong exclusively in the output directory and must be removed from source tracking during migration; authored assets/, styles.css and CNAME stay tracked. Actions publishes an already-rendered artifact without Jekyll. It does not need .nojekyll, and the official upload action excludes dotfiles, so the builder emits none and rejects hidden artifact files or symlinks rather than silently publishing an incomplete file set.
The landing HTML gives each adapter version its own escaped <code> item separated by <br>. Its Markdown table remains one physical line per row, followed by a plain per-package list of all nine independently resolved packages; the same list appears in llms.txt and llms-full.txt. The nine canonical registry identities are @rig-c/create, @rig-c/core, @rig-c/parts, @rig-c/pose, @rig-c/review, @rig-c/play, @rig-c/pixi, @rig-c/phaser and @rig-c/three. Core resolves the real scoped manifest; convenience name rig-c is not a separate lookup. The adapters heading groups three real packages; there is no @rig-c/adapters npm package. Convenience install names are documented separately from canonical identities and executable names. Docs badges and structured docs versions use the same build-time registry map. Recorded demo versions remain pinned to their sources.
Link checks
bun run verify checks links in all registered generated pages, their Markdown mirrors, llms.txt and each page section of llms-full.txt. The same check runs alone with bun run check:links. Build the output first: standalone checks refuse a nonexistent output directory or any missing expected page HTML, Markdown mirror, llms.txt or llms-full.txt, naming the missing input and exiting 1. Expected documents must be regular files. It reads the actual element IDs from generated HTML, including IDs on non-heading elements; it does not guess heading slugs. Markdown is rendered by Bun to extract inline, reference, autolinks and raw HTML links. Code examples and HTML comments are not links.
Same-page, relative, cross-page and absolute same-origin links are resolved in the source page's URL context. A link to a known index.md#fragment uses that page's generated HTML IDs. Each llms-full.txt section keeps its original page context, so another page's heading cannot satisfy its same-page fragment. Attributes decode semicolon-terminated named and numeric HTML entities once; URL paths and fragments decode percent escapes once, including Unicode. Empty # and #top navigate to the top. Missing files, missing IDs, invalid URL escapes and fragments on unsupported non-HTML files fail with the source and original href.
The link crawl covers generated pages and mirrors. It does not recursively inspect copied demo/bundle links, apply their <base> elements, execute scripts, or check dynamic links. Existing specialized demo and asset checks still run. A <base> in a generated source page is refused rather than resolved against the wrong context.
Use an external scratch directory for build output and test temporary files:
CHECK_ROOT="$HOME/.cache/rig-c-site-checks"
mkdir -p "$CHECK_ROOT"
export TMPDIR="$CHECK_ROOT"
bun run build --out "$CHECK_ROOT/output"
bun run check:links --out "$CHECK_ROOT/output"
bun run verify --out "$CHECK_ROOT/output"
bun test src/links.test.ts src/external-links.test.ts
The tests plant a missing anchor in an existing private fixture file, run the real check CLI and assert exit 1 with the source and href, then repair the fixture and assert exit 0. They also cover HTML entities, Unicode, queries, Markdown-only and LLM-only failures, and page context. No authored page is mutated by these controls. Tests and verification remain offline; only the existing build's npm lookups require network access.
Bounded repository documentation report
bun run check:external --out "$CHECK_ROOT/output" > "$CHECK_ROOT/external-links.json" is an optional live report, separate from test, build, verify and CI. It collects only public https://github.com/rig-c/<repo> README pages and /blob/... documents ending in .md, .mdx, .rst, .txt, or named LICENSE, LICENCE, COPYING, NOTICE. Other organizations, raw hosts, directory trees, issues and arbitrary domains are outside its scope. It follows no discovered links.
Bounds are fixed: 40 HTTP requests total (redirects included), at most two redirect hops per page, 1 MiB per response body, five seconds per request including body reads, and 45 seconds for the request budget. Requests are sequential, deduplicated by URL without fragment, unauthenticated, and use manual redirects with the same scope checks at every hop. No cookies or authorization headers are sent or forwarded. There are no retries. Unvisited targets are reported as budget; oversized responses and refused redirects remain uncertain.
Only HTTP 404/410 are missing and produce exit 1. Auth failures, rate limits, server errors, timeouts and network errors have distinct report statuses and never become missing targets. Exit 0 means the bounded report completed with no observed 404/410; it does not establish that every target is valid. Results retain source pages, requested and final URLs, HTTP status and, for completed bodies, length and SHA-256. GitHub can supply headings dynamically: an observed ID proves anchor: present, but an unobserved fragment stays anchor: unknown, even on HTTP 200. This report does not claim external anchor absence. Offline fixtures cover all these dispositions without live requests.
Actions Pages deployment
.github/workflows/pages.yml runs on pushes to main, pull requests, manual dispatch and hourly at minute 17 UTC (17 * * * *