Use when modifying the iRaceDeck website, updating site content, changing styles, adding pages, or working with Firebase deployment. Also use when updating action counts, feature lists, or any public-facing content on iracedeck.com.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Website?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/iracedeck-website)
---
name: website
description: Use when modifying the iRaceDeck website, updating site content, changing styles, adding pages, or working with Firebase deployment. Also use when updating action counts, feature lists, or any public-facing content on iracedeck.com.
---
# iRaceDeck Website
## Overview
Astro + Starlight documentation site deployed via Firebase Hosting. Dark theme by default with the iRaceDeck brand.
## Key Files
| File | Purpose |
|------|---------|
| `packages/website/astro.config.mjs` | Starlight config: sidebar, logo, social links, GA |
| `packages/website/src/styles/custom.css` | Brand overrides (accent color, font, dark bg) |
| `packages/website/src/content.config.ts` | Content collections: `docs` (Starlight loader) and `i18n`, whose single entry `src/content/i18n/en.json` is `{}` on purpose — Starlight 0.42 reads the collection unconditionally and the build warns when it is undefined or holds no entry, so that keyless entry keeps it populated while preserving Starlight's default UI strings; do not remove it (#1152) |
| `packages/website/src/content/docs/index.mdx` | Landing page (splash template) |
| `packages/website/src/content/docs/changelog.mdx` | Changelog / version history at `/changelog/` (opened by the plugin on upgrade, #680). Holds released versions only: the in-development notes are fragments in the root `changelog.d/` (#1386), which `src/changelog-fragments-plugin.mjs` — a Sätteri mdast plugin wired into `astro.config.mjs`'s `markdown.processor` — renders onto the page as the `_Unreleased_` section. Add or edit a fragment, never a section here; see `.claude/rules/changelog.md` |
| `packages/website/src/content/docs/` | All documentation pages (markdown) |
| `packages/website/src/pages/404.astro` | The site's own 404 page, rendered with `StarlightPage` because `disable404Route: true` (Starlight 0.42's injected route looks up a `docs/404` entry the site does not have, which Astro 7 reports as a build warning, and a `404.md` entry collides with the `[...slug]` route; see the file's header comment) |
| `packages/website/src/components/` | Astro components for MDX pages (e.g. `ChangelogLeadIn.astro`). Use a small `.astro` component for any client-side `<script>` — an inline `<script>` inside an `.mdx` file fails to parse (MDX reads `{`/`<` in the body as JSX). Never spell a script tag in a component's frontmatter, comments included: Vite's dependency scan reads the file as text and takes the first one for the component's script, so `astro dev` starts with "Failed to run dependency scan" (`scripts/website-astro-frontmatter.test.mjs`). |
| `packages/website/src/data/brands.ts` | **Single source of truth for supported hardware brands and ecosystems** (#946). Feeds the landing page's "Works with" strip, the download card titles/descriptions/strips, and the installation guide via `BrandStrip.astro` / `BrandNames.astro`. Never retype a brand or device list in prose. |
| `packages/website/src/data/support.ts` | **Single source of truth for the support links** (#1299): the Buy Me a Coffee page, the iRaceDeck Supporter membership and the button image. `SupportSection.astro` renders them, with the wording, on the landing page (after "Works with") and on the Download page (under the download cards). Never retype a Buy Me a Coffee URL in the site: `scripts/website-support-section.test.mjs` fails on one that is not one of the three, and on the widget `<script>` the landing page used to load. The one copy is the plain Markdown link on `src/content/docs/docs/development/index.md`, which the test holds to `SUPPORT_URL`. |
| `packages/website/src/pack-reference-types.ts` | The voice-pack reference artifact's shape (`src/data/pack-reference.json`, #1066), re-declared by hand with a path-naming runtime parser — the site's SOURCES import nothing from `@iracedeck/audio-scenarios` (the package is a devDependency for the generator scripts only), and its `src/reference/pack-reference.ts` is the source the mirror follows. `pack-reference-view.ts` holds the pure helpers the three `PackReference*.astro` components and `routeData.ts` (injected "On this page" entries) share. |
| `packages/website/src/assets/` | Logo image, plus `brands/` for optional per-brand logo assets (see its `README.md`) |
| `packages/website/public/` | Static assets (favicons, webmanifest) plus generated icon-gallery assets (`public/icon-gallery/`, gitignored — regenerated by `generate:gallery`, which the package's dev/build scripts run automatically; the generator refuses to write an asset that still holds a `{{placeholder}}`, so an icon that draws a value needs a sample in its `TEMPLATE_SAMPLES`, #1352) |
| `packages/website/firebase.json` | Hosting config (serves `dist/`) |
## Brand
| Token | Value |
|-------|-------|
| Accent color | `#ce2128` |
| Dark background | `#0a0a0c` |
| Font | Exo (Google Fonts) |
| Theme | Dark default, light toggle available |
Colors are set as Starlight CSS custom properties in `src/styles/custom.css`.
## Content Structure
All docs pages live under `src/content/docs/docs/` and are served at `/docs/...`.
```text
src/content/docs/
├── index.mdx # Landing page at / (splash template)
├── downloads.mdx # Download page at /downloads/
├── changelog.mdx # Released versions at /changelog/ (see Key Files)
└── docs/
├── index.md # Docs landing page at /docs/
├── getting-started/
│ ├── installation.mdx
│ ├── first-steps.md # Also generates the Settings window's Getting Started tab (#1061)
│ ├── settings.mdx # Settings-window shots via SettingsShot.astro (release-captured, #1536)
│ └── troubleshooting.md
├── features/
│ ├── communication-methods.md
│ ├── key-bindings.md
│ ├── stream-deck-profiles.md
│ ├── dials.md
│ ├── press-sounds.md
│ ├── race-engineer-voices.md
│ ├── flags-overlay.md
│ ├── focus-iracing-window.md
│ ├── icon-colors.md
│ ├── title-customization.md
│ ├── graphic-scaling.md
│ ├── border-indicator.md
│ ├── template-variables.md # Source of truth for telemetry template vars
│ └── whats-new-page.md
├── voice-packs/ # For pack authors (#1066): concept, tutorial, format
│ ├── index.md
│ ├── first-pack.md
│ ├── format.md
│ └── reference/ # MDX pages rendering src/data/pack-reference.json
│ ├── callouts.mdx # via PackReference{Callouts,Vocabulary,RecordingScript}.astro;
│ ├── vocabulary.mdx # the JSON is generated by `pnpm generate:pack-reference`
│ └── recording-script.mdx # and freshness-tested — never hand-edit it
├── actions/
│ ├── overview.md
│ ├── audio-voice/ # 3 actions
│ ├── display-session/ # 2 actions
│ ├── driving/ # 3 actions
│ ├── cockpit/ # 5 actions
│ ├── view-camera/ # 6 actions
│ ├── media/ # 1 action
│ ├── pit-service/ # 3 actions
│ ├── car-setup/ # 7 actions
│ ├── communication/ # 2 actions
│ └── stream-deck/ # 1 action
├── reference/
│ ├── action-types.md
│ └── keyboard-shortcuts.md
└── development/
├── index.md
├── tech-stack.md
├── architecture.md
├── contributing.md
├── setup.md
├── feature-flags.md
├── icon-gallery.mdx
└── designing-icons.md
```
## Sidebar
Defined in `astro.config.mjs` under `starlight.sidebar`. Uses `{ slug: "..." }` entries pointing to content files. Categories match `docs/reference/actions.json`.
## Adding/Editing Pages
1. Create or edit a `.md` file in `src/content/docs/docs/`
2. Add Starlight frontmatter (`title`, `description`, optional `sidebar` badge)
3. If new, add the slug to the sidebar in `astro.config.mjs`
4. Run `pnpm dev` to preview, `pnpm build` to verify
## Action Doc Template
See the canonical example at `packages/website/src/content/docs/docs/actions/pit-service/tire-service.md` and the full rule at `.claude/rules/website-action-docs.md`. The short version:
```md
---
title: {Action Name}
description: {Brief description}
sidebar:
badge:
text: "{N} modes"
variant: tip
---
{Intro paragraph}
## Modes
Select the mode from the **{Dropdown Label}** dropdown in the Property Inspector.
### {Mode Name}
{Mode description}
#### Details
- **Method:** {`iRacing API`, `Key binding`, or `Chat command`}
- **Dial:** {rotation behavior, or `No rotation support`}
- **Default binding:** {`Key`, `No default key binding`, or `No keyboard binding`}
- **Telemetry-aware icon:** {`Yes` (with note on what updates) or `No`}
#### Settings
- No additional settings
```
Modes are separated by a `---` rule, with none after the last. For modes with settings, replace the `#### Settings` block with one or more `#### Setting: {Name}` subheaders documenting defaults and options inline.
## Deployment
```bash
cd packages/website
pnpm dev # Local dev server (http://localhost:4321)
pnpm build # Build to dist/
pnpm preview # Preview built site
pnpm deploy # Build + deploy to Firebase
```
Domain: **iracedeck.com** (Firebase Hosting with custom domain).
The release deploy builds the site alone, `turbo run build --filter=@iracedeck/website`, so turbo builds only the workspace packages `packages/website/package.json` declares. Every workspace package a website source imports — by name, by a relative path such as the gallery generator's `../../iracing-actions/src/…`, or through a root `scripts/` module it imports, as the voice-catalog generator reaches `voice-packs` through `scripts/lib/voice-catalog-data.mjs` — must be declared there, or the deploy fails on a missing `dist/` while every PR check, which builds the whole workspace, stays green (#1458). `scripts/website-workspace-deps.test.mjs` enforces it. Such a reach must also stay sim-free, since the website is sim-neutral: the gallery takes `iracing-actions`' dial drawing from the sim-free `*-dial-render.ts` modules, never a `*-dial-surface.ts`, and `scripts/cross-package-reach.test.mjs` fails when a file it loads at runtime imports a workspace package outside `SIM_NEUTRAL_PACKAGES` (#1662).
## Common Changes
**Update action count on landing page**: Edit the stats row and category cards in `src/content/docs/index.mdx`
**Add an action page**: Create `.md` in the right category folder, add slug to sidebar in `astro.config.mjs`, update `docs/reference/actions.json`, and update `.claude/skills/iracedeck-actions/SKILL.md`
**Add a supported hardware brand or device**: Edit `src/data/brands.ts` — one entry propagates to the landing page strip, the download cards, and the installation guide. Optional logo assets go in `src/assets/brands/` (see that folder's `README.md`); a brand without one renders as a wordmark tile. The Elgato `devices` string is pinned to deck-core's `DEVICE_SUPPORT` matrix by `scripts/website-device-list.test.mjs` (#983): every supported device must be named and no unsupported one may be, so a supported device added to that matrix fails the test until this string names it.
**Change the support link, its button or its wording**: Edit `src/data/support.ts` (the links, and the button image with its size — a different button text is a different width) or `src/components/SupportSection.astro` (the wording) — both pages that show the section follow. A changed `SUPPORT_URL` is also changed by hand in the Markdown link on `src/content/docs/docs/development/index.md`; the test fails until it is.
**Change brand color**: Update `--sl-color-accent` in `src/styles/custom.css`
**Update favicon**: Replace files in `public/`, source from `assets/favicon/`
**Add sidebar section**: Edit `sidebar` array in `astro.config.mjs`