Skip to content

Self-host Prism and fix the code-block flash - #58

Merged
rossarmstrong merged 1 commit into
mainfrom
development
Aug 6, 2026
Merged

Self-host Prism and fix the code-block flash#58
rossarmstrong merged 1 commit into
mainfrom
development

Conversation

@rossarmstrong

Copy link
Copy Markdown
Member

Write the language class into the 296 code blocks that previously received it from JavaScript at runtime, removing a 150 to 450 ms window in which code rendered in Consolas at 16 px with no box before snapping into place. Replace the four cross-origin Prism requests with one self-hosted bundle carrying only the grammars the site uses, fold the needed theme rules into the stylesheet, add the missing TypeScript grammar, and align the light-mode token colours on the two root pages with the docs palette.

Write the language class into the 296 code blocks that previously received it from JavaScript at runtime, removing a 150 to 450 ms window in which code rendered in Consolas at 16 px with no box before snapping into place. Replace the four cross-origin Prism requests with one self-hosted bundle carrying only the grammars the site uses, fold the needed theme rules into the stylesheet, add the missing TypeScript grammar, and align the light-mode token colours on the two root pages with the docs palette.
@rossarmstrong
rossarmstrong merged commit 2984c72 into main Aug 6, 2026
4 checks passed
@rossarmstrong
rossarmstrong deleted the development branch August 6, 2026 08:01
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant