Skip to content

fix(website): build the site with a Ripple that keeps the spaces around inline elements - #1337

Merged
jonkwheeler merged 1 commit into
tsrx-org:mainfrom
jonkwheeler:w13/t-481-website-ripple-spaces
Nov 14, 2026
Merged

jonkwheeler merged 1 commit into
tsrx-org:mainfrom
jonkwheeler:w13/t-481-website-ripple-spaces

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The website now renders the spaces between words and inline code or links. #1105 put them back in the sources, but the site builds with @ripple-ts/vite-plugin 0.4.0, which pins @tsrx/ripple 0.2.0, and that compiler drops a space at the edge of a multi-line text run, so most of them were still lost in the built pages. Ripple-TS/ripple#1608 fixed the trim in @tsrx/ripple 0.2.8.

The website's server render (website-tsrx/dist/server/entry.js, vite build), main (8d2b839) vs this branch:

main this branch
/blog/removing-lazy-destructuring TSRX no longer has<code class="tsrx-bd9c4420">&amp;{ ... }</code> and … TSRX no longer has <code class="tsrx-bd9c4420">&amp;{ ... }</code> and …
/specification, TSRX3014 … logical expression, is<code class="inline-code …">TSRX3014</code> … logical expression, is <code class="inline-code …">TSRX3014</code>
word, then <code>/<a>/<strong>/<em>/<span>/<kbd>, no space 283 0
one of those closing tags, then a word, no space 304 0
sources with such a boundary on a line break (#481's scan) 1 0

Changes

  • The default catalog moves ripple, @ripple-ts/vite-plugin and @ripple-ts/adapter-node from ^0.4.0 to ^0.6.1, the current release. Plugin 0.6.1 uses @tsrx/ripple 0.2.11 (any plugin before 0.5.7 pins a compiler before 0.2.8), and the lockfile resolves the workspace's own @tsrx/ripple to 0.2.11 too. Its catalog range stays ^0.2.0, so the optional peer range @tsrx/typescript-plugin publishes doesn't change. All three are dev dependencies of private packages or @tsrx/content-mapper, so nothing published needs a changeset, and tsrx-website is ignored by changesets.
  • The minimumReleaseAgeExclude entries for the 0.4.0/0.2.0 Ripple releases go: those versions are no longer in the lockfile.
  • website-tsrx/src/pages/specification.tsrx:1734 gets the {' '} it was missing before TSRX3014 (from fix(core): report a <style> block rendered as an expression child (TSRX3014) #1130, which merged beside fix(website): restore the spaces between words and inline code or links #1105).

The website needs no source changes for Ripple 0.6: its imports from ripple and @ripple-ts/* type-check, and it doesn't use the transport/rootBoundary config that 0.6 changed.

Checks

  • vite build of website-tsrx passes, and the built server answers 200 on all nine pages, with /api/compile compiling for the Ripple target.
  • pnpm install --frozen-lockfile, format:check, typecheck (the website's included), the changeset check and the full Vitest run (14,189 passed) pass locally.
  • Not checked: hydration in a browser.

Codex (gpt-5.6-sol) reviewed 6a51556 (catalog consumers, Ripple 0.4 → 0.6 changelogs, frozen installs and CI) and found no problems.

Fixes #481

🤖 Generated with Claude Code


Note

Low Risk
Dependency and lockfile bumps plus a one-line docs markup fix; no auth, data, or runtime API changes in application code.

Overview
Bumps the workspace Ripple stack so the site and examples build with compiler fixes that keep spaces between prose and inline markup. The default pnpm catalog moves ripple, @ripple-ts/vite-plugin, and @ripple-ts/adapter-node from ^0.4.0 to ^0.6.1; the lockfile pins @tsrx/ripple 0.2.11 and related transitive updates. Removes the old minimumReleaseAgeExclude entries for the superseded 0.4.0/0.2.0 Ripple packages.

Adds explicit {' '} in specification.tsrx before the TSRX3014 inline code in the style early-errors list so that sentence still has a visible space after rebuild.

Reviewed by Cursor Bugbot for commit 6a51556. Bugbot is set up for automated code reviews on this repo. Configure here.

…nd inline elements

tsrx-org#1105 restored the spaces between words and inline code or links in the
website's sources, but the site still rendered most of them glued
("TSRX no longer has<code>&{ ... }</code>"): it builds with
`@ripple-ts/vite-plugin` 0.4.0, which pins `@tsrx/ripple` 0.2.0, and that
compiler drops a space at the edge of a multi-line text run. Ripple-TS/ripple
#1608 fixed the trim in `@tsrx/ripple` 0.2.8.

Move the Ripple packages the workspace builds with to the current release:
`ripple`, `@ripple-ts/vite-plugin` and `@ripple-ts/adapter-node` 0.6.1, whose
plugin uses `@tsrx/ripple` 0.2.11, and resolve the workspace's own
`@tsrx/ripple` to 0.2.11 as well. The catalog range of `@tsrx/ripple` stays
`^0.2.0`, so the optional peer range `@tsrx/typescript-plugin` publishes
doesn't change. The release-age exclusions for the 0.4.0/0.2.0 releases go
with them.

Also put back the one space the sources still lacked, before
`TSRX3014` in the specification (added by tsrx-org#1130 beside tsrx-org#1105).

Fixes tsrx-org#481

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jonkwheeler
jonkwheeler marked this pull request as ready for review November 14, 2026 04:39
@jonkwheeler
jonkwheeler merged commit 7b98eb1 into tsrx-org:main Nov 14, 2026
9 checks passed
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.

[Bug]: tsrx-website: Website text renders without the spaces around inline code and links

1 participant