Skip to content

docs(runtimes): route hardcoded runtime versions through docs.json variables - #887

Open
neurowave wants to merge 1 commit into
mainfrom
docs/centralize-runtime-versions
Open

docs(runtimes): route hardcoded runtime versions through docs.json variables#887
neurowave wants to merge 1 commit into
mainfrom
docs/centralize-runtime-versions

Conversation

@neurowave

Copy link
Copy Markdown
Contributor

web-js.mdx already reads its version from a docs.json variable. Three other pages pin versions inline, and all three have drifted:

page pinned current
runtimes/web/inputs.mdx @rive-app/canvas@2.10.3 2.40.1
runtimes/web/low-level-api-usage.mdx (4 places) @rive-app/canvas-advanced@2.26.1 2.40.1
runtimes/apple/apple.mdx rive-ios from: "6.13.0" 6.24.0

versionWebGL2 was also behind at 2.38.3, so that's bumped too.

The low-level page's versions are illustrative — the surrounding note says to match whatever you installed — but they're still numbers a reader copies, and a variable keeps them current for free. Adds versionCanvas, versionCanvasAdvanced, and versionApple, so future bumps are one edit in docs.json instead of a grep.

Variables already substitute inside fenced code blocks on the live site (web-js.mdx and the Apple pages do this today), so the swift and javascript samples render correctly.

Not touched: runtimes/react/preloading-wasm.mdx pairs canvas@1.0.95 with react-canvas@3.0.33 to illustrate version pairing, so a live number would defeat the point. Unity's #v0.0.0 is a deliberate placeholder with "replace 0.0.0 with the latest release" beside it.

mint broken-links passes.

…riables

Three pages pinned versions inline and had drifted: canvas 2.10.3,
canvas-advanced 2.26.1 (four places), and rive-ios 6.13.0, against
2.40.1 and 6.24.0 today. web-js.mdx already reads its version from a
docs.json variable, so these now do the same and there is one place to
bump. versionWebGL2 was itself behind at 2.38.3.
@neurowave
neurowave requested a review from a team as a code owner August 23, 2026 19:36
@mintlify

mintlify Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
rive 🟢 Ready View Preview Aug 23, 2026, 7:38 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

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.

1 participant