Skip to content

Use Starlight Code component for upgrade-instructions code blocks#423

Merged
vvlladd28 merged 1 commit into
mainfrom
upgrade-instructions-copy-button
May 26, 2026
Merged

Use Starlight Code component for upgrade-instructions code blocks#423
vvlladd28 merged 1 commit into
mainfrom
upgrade-instructions-copy-button

Conversation

@vvlladd28
Copy link
Copy Markdown
Member

Summary

  • Replaces hand-rolled <pre><code> blocks across all components in src/components/upgrade-instructions/ with Starlight's <Code> so commands get syntax highlighting and a built-in copy button.
  • Removes the now-unused pre / pre code scoped styles in each file.
  • Flattens the orphan <ol> in DockerComposeUpgradeSteps.astro so the TB_VERSION=… block lines up visually with the rest of the command blocks.

Replaces hand-rolled <pre><code> blocks across the upgrade-instructions
components with Starlight's <Code> so commands get syntax highlighting
and a built-in copy button. Also flattens the orphan <ol> in
DockerComposeUpgradeSteps so the TB_VERSION block aligns visually with
the surrounding command blocks.
@vvlladd28 vvlladd28 merged commit 7fea4a2 into main May 26, 2026
4 of 5 checks passed
@vvlladd28 vvlladd28 deleted the upgrade-instructions-copy-button branch May 26, 2026 08:59
vvlladd28 added a commit that referenced this pull request May 26, 2026
* Use Starlight Code component for upgrade-instructions code blocks (#423)

Replaces hand-rolled <pre><code> blocks across the upgrade-instructions
components with Starlight's <Code> so commands get syntax highlighting
and a built-in copy button. Also flattens the orphan <ol> in
DockerComposeUpgradeSteps so the TB_VERSION block aligns visually with
the surrounding command blocks.

* fix(a11y): apply alt text for blog, device-library, rule-nodes, and product images (#424)

Update 244 image alt texts from the SEO/accessibility audit (CSV):
- 210 blog `![](path)` images across 37 posts
- 16 `<DocImage>` alts in 4 device-library guides
- 7 rule-node icon items in shared _includes; RuleNodeCardGrid now surfaces `item.alt` while keeping `aria-hidden` on the placeholder (alt for SEO, no redundant a11y announce next to title/desc)
- 11 product-page images (mobile, mobile-pe, thingsboard-pe, trendz): added optional `phoneSideAlt` to MobileFeatureBlock and `alt` to FeatureCard; wired per-image alts on the pages
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