Skip to content

Conversation

@devongovett
Copy link
Member

  • Adjusts the font size of the h1 so that it fits on mobile. This is done by calculating the width of the heading at build time (relative to 1em), and then scaling the font size using that ratio.
  • Makes code examples scroll horizontally instead of wrapping, which is much easier to read on mobile. The copy/open buttons are now in a floating toolbar.
  • Automatically sets the type of code blocks to the correct library based on the page URL so that sandbox/zip downloads are always available.
  • Adds additional aria groupings and labels so it's easier to navigate with a screen reader.

@rspbot
Copy link

rspbot commented Oct 27, 2025

@rspbot
Copy link

rspbot commented Oct 27, 2025

Copy link
Member

Choose a reason for hiding this comment

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

nice lol, the long headings looks good now

@devongovett devongovett added this pull request to the merge queue Oct 27, 2025
Merged via the queue into main with commit 8e7a57d Oct 27, 2025
32 checks passed
@devongovett devongovett deleted the docs-fix branch October 27, 2025 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants