Skip to content

Conversation

@gakonst
Copy link
Contributor

@gakonst gakonst commented Feb 3, 2026

Add codeHighlight.langs config to enable highlighting for languages used in the docs.

Languages enabled

  • solidity (309 code blocks)
  • go (24 code blocks)
  • rust (68 code blocks)
  • bash (200 code blocks)
  • python (8 code blocks)
  • yaml (8 code blocks)
  • json (16 code blocks)

The default vocs/shiki bundle includes tsx/ts/typescript but not these domain-specific languages. This uses config.codeHighlight.langs as @jxom suggested.

Add codeHighlight.langs config to enable highlighting for languages
used in the docs: solidity, rust, go, bash, python, yaml, json.

The default vocs/shiki bundle includes tsx/ts/typescript but not
these domain-specific languages.

Amp-Thread-ID: https://ampcode.com/threads/T-019c21fd-1fec-721f-a6ef-4b31e835508b
Co-authored-by: Amp <amp@ampcode.com>
@vercel
Copy link

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tempo-docs Error Error Feb 3, 2026 6:18am

Request Review

The codeHighlight.langs config replaces (not extends) the default list,
so we need to include all the vocs defaults plus our additional languages.

Amp-Thread-ID: https://ampcode.com/threads/T-019c21fd-1fec-721f-a6ef-4b31e835508b
Co-authored-by: Amp <amp@ampcode.com>
The previous vocs version (082ea99) only bundled rust and solidity on
top of shiki/bundle/web. The new version adds go, python, yaml, toml,
dockerfile, protobuf, and sql.

Also removed the codeHighlight.langs config since it wasn't being used
by the shiki plugin anyway.

Amp-Thread-ID: https://ampcode.com/threads/T-019c21fd-1fec-721f-a6ef-4b31e835508b
Co-authored-by: Amp <amp@ampcode.com>
@jxom jxom merged commit 4a31a8e into main Feb 3, 2026
3 of 6 checks passed
@jxom jxom deleted the add-code-highlight-langs branch February 3, 2026 06:30
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.

3 participants