Skip to content

feat: sync hero snippet, highlight.js - #26

Merged
arjunkmrm merged 1 commit into
mainfrom
feat/hero-readme-sync
May 28, 2026
Merged

feat: sync hero snippet, highlight.js#26
arjunkmrm merged 1 commit into
mainfrom
feat/hero-readme-sync

Conversation

@arjunkmrm

Copy link
Copy Markdown
Collaborator

Summary

  • Update the landing-page hero code to mirror the README snippet (NodeContext import, platform, deepwiki + multi-line linear McpServer, Compact wrapping Messages, agent.run).
  • Remap LINE_SLICE to the new line numbers so click-to-highlight still lands on the right slices.
  • Swap the custom 4-token tokenizer in HeroCodeBlock for highlight.js (typescript + xml), with CSS mapping .hljs-* onto the existing keyword/string/fn/punct palette across dark and light themes.

Test plan

  • pnpm dev in web/, hero renders without HMR errors; clicking the highlighted lines toggles the matching context-panel slice.

@arjunkmrm
arjunkmrm merged commit f44a9bd into main May 28, 2026
1 check passed
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