Skip to content

Use .tool-versions variables in getting-started prerequisites#760

Merged
aram356 merged 2 commits into
mainfrom
docs/747-version-variables
Jun 8, 2026
Merged

Use .tool-versions variables in getting-started prerequisites#760
aram356 merged 2 commits into
mainfrom
docs/747-version-variables

Conversation

@aram356

@aram356 aram356 commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Fixes #747. Supersedes #758.

Problem

The Getting Started prerequisites listed Rust with a hardcoded version and omitted Node.js/npm entirely. Contributors without Node installed hit a confusing build.rs failure when the JS build runs during cargo build.

Approach

Rather than hardcode versions (which drift from the source of truth), this uses the version-substitution mechanism already present in docs/.vitepress/config.mts, which parses .tool-versions and replaces {{TOOL_VERSION}} placeholders at markdown-parse time.

Changes

File Change
docs/guide/getting-started.md Prerequisites now use {{RUST_VERSION}}, {{NODEJS_VERSION}}, and {{FASTLY_VERSION}}; adds NodeJS as an explicit prerequisite

Renders as:

  • Rust 1.91.1
  • NodeJS 24.12.0
  • Fastly 13.3.0 CLI installed

Versions now stay in sync with .tool-versions automatically — no future doc edits needed when toolchain versions bump.

Test plan

  • cd docs && npm run build — substitution renders real versions in dist/guide/getting-started.html
  • cd docs && npm run format — passes

Replace hardcoded versions in the Getting Started prerequisites with
{{RUST_VERSION}}, {{NODEJS_VERSION}}, and {{FASTLY_VERSION}} placeholders,
which the VitePress config substitutes from .tool-versions at build time.
Adds NodeJS as an explicit prerequisite so contributors install Node/npm
before the JS build runs.

Supersedes #758. Fixes #747.

@ChristianPavilonis ChristianPavilonis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated Yesman review: I reviewed PR #760 and found no blocking correctness, security, data-loss, authorization, or severe compatibility issues. The new .tool-versions placeholders match the existing VitePress replacement logic and .tool-versions keys. I left one non-blocking docs navigation question inline.

Comment thread docs/guide/getting-started.md
@aram356 aram356 merged commit 7f7e0e5 into main Jun 8, 2026
13 checks passed
@aram356 aram356 deleted the docs/747-version-variables branch June 8, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ensure NPM Installation is included as a prerequisite to install Trusted Server

2 participants