This website is built using Docusaurus 2, a modern static website generator.
$ yarn
$ yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
$ yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
Using SSH:
$ USE_SSH=true yarn deploy
Not using SSH:
$ GIT_USER=<Your GitHub username> yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
.mdx files beginning with a _ character are partials. These are useful for including a piece of content in multiple locations, such as tables of annotations that can be inserted both in their relevant section, as well as stored in a single reference location.
If you delete a page you should create a redirect for it so that it doesn't break links. This configuration is located in the docusaurus config
Use this checklist when adding or updating docs pages:
- Start with a plain-language definition of what the feature does.
- State who should use it and when to use it.
- Keep terminology consistent with canonical terms (
Speedscale,proxymock,snapshot,replay,transform). - Use clear headings and short sections that can be quoted out of context.
- Prefer decision/comparison tables for "which option should I choose" content.
- Align product descriptions with
speedscale.comandllms.txtwording.
Follow the repository public-writing rules and run yarn check:writing before pushing documentation changes. It checks added public prose by default, while yarn check:writing --all reports the existing backlog. The same checker runs in pull request and main-branch CI.
The docs maintainer reviews npm dependencies and GitHub Actions at least monthly and opens a maintenance PR when updates are justified. Routine Dependabot version-update PRs are disabled. GitHub vulnerability alerts remain enabled; automatic security-update PRs are currently disabled.
- Review the repository's vulnerability alerts and run
yarn auditandyarn outdated. Triage new advisories promptly: record the affected dependency, advisory, available fix, and impact in Linear. Security fixes take priority over the monthly review. Record any deferred finding and its reason. - Inventory action references with
rg 'uses:' .github/workflows. Review each action repository's releases and security advisories, and compare the pinned commit and version comment with its latest compatible release. For example,gh api repos/actions/checkout/releases/latest --jq '{tag: .tag_name, url: .html_url}'discovers the latest checkout release. Repeat for every external action;yarn outdatedonly covers npm packages. - Read upstream release notes before choosing versions. Keep Docusaurus packages aligned, check React compatibility, and inspect
package.jsonoverrides inresolutions; a dependency bump can be ineffective when an override still pins the old version. Handle major upgrades separately when they require migration work. - Update the selected dependencies and matching overrides, then run
yarnto regenerateyarn.lock. Review the lockfile diff for unexpected dependency changes. For GitHub Actions, retain full commit-SHA pins and update their version comments from the corresponding upstream releases. - Validate with
yarn --frozen-lockfile,yarn test:writing,yarn check:writing --base origin/main,node --test scripts/security-regressions.test.mjs, andyarn build. Run any additional regression tests affected by the update. Compare vulnerability findings before and after the change. - Open one PR for a coherent maintenance batch. Explain why the updates are needed, identify behavior changes and remaining advisories, and include validation results. Inspect the published preview, including affected diagrams, search, redirects, and navigation, before requesting human review.
Vulnerability alerts and their triage are separate from version-update automation. Keep alerts enabled in the repository settings when changing this process.
yarn build generates a Pagefind index from every canonical URL in the finished sitemap and fails if a sitemap page cannot be indexed. Redirects, search pages, and Markdown mirrors stay out of the index. yarn test:search checks indexing under a preview base path.
The search interface searches both docs and the website, with documentation weighted higher on docs. The framework-neutral files in src/search/ are mirrored in the website repository; change both copies together and keep Pagefind pinned to the same version in both repositories. WWW_SEARCH_BUNDLE and WWW_SEARCH_BASE can point a local build at a local website index.
Deploy the public-index CloudFront headers before enabling cross-site results in production. Keep the Algolia crawler running until Pagefind is live on docs and its coverage and search behavior have been verified. Removing the frontend integration does not disable the crawler or close the Algolia account.