Skip to content

Enable syntax highlighting in docs-app code snippets#181

Merged
NullVoxPopuli merged 2 commits intomainfrom
copilot/fix-code-snippet-highlighting
Feb 25, 2026
Merged

Enable syntax highlighting in docs-app code snippets#181
NullVoxPopuli merged 2 commits intomainfrom
copilot/fix-code-snippet-highlighting

Conversation

Copy link
Contributor

Copilot AI commented Feb 25, 2026

The kolay plugin was missing the rehypeShiki configuration, so code snippets in the docs-app rendered without syntax highlighting despite @shikijs/rehype and shiki already being installed and listed in optimizeDeps.include.

Changes

  • docs-app/vite.config.js: Import rehypeShiki and wire it into kolay's rehypePlugins with github-light/github-dark themes and light-dark() adaptive coloring:
import rehypeShiki from '@shikijs/rehype';

kolay({
  packages: ['@universal-ember/table'],
  rehypePlugins: [
    [
      rehypeShiki,
      {
        themes: {
          light: 'github-light',
          dark: 'github-dark',
        },
        defaultColor: 'light-dark()',
      },
    ],
  ],
}),

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix code snippets not being highlighted in docs-app Enable syntax highlighting in docs-app code snippets Feb 25, 2026
@github-actions
Copy link
Contributor

Project Preview URL
Docs https://11e2b282.ue-table.pages.dev

Logs

Copilot AI requested a review from NullVoxPopuli February 25, 2026 15:20
@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review February 25, 2026 15:24
@NullVoxPopuli NullVoxPopuli merged commit 7001fdf into main Feb 25, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants