orta / twoslash

You take some Shiki, add a hint of TypeScript compiler, and πŸŽ‰ incredible static code samples

Home Page:https://shikijs.github.io/twoslash/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

You take some Shiki, add a hint of TypeScript compiler, and πŸŽ‰ incredible statically generated code samples.

See the user-facing docs at: https://shikijs.github.io/twoslash/

This Repo

The majority of this repo uses pnpm, the rest yarn. There are four main areas of interest:

  • packages, the shiki meets twoslash plugins for markdown renderers and static site generators
  • site, the docs micro-site
  • examples, example static site generator projects which use the plugins
  • extensions, right now, just the vscode extension for twoslash code samples

Packages

The site extensions and examples are excluded from the workspace. To work on those, cd to their folders and read instructions.

Otherwise:

git clone https://github.com/shikijs/twoslash
cd twoslash

pnpm i
pnpm bootstrap
pnpm test

Then see the contributing for advice and the vision file for the long-term perspective.

Plugins

Markdown Renderers

Root Abstractions

About

You take some Shiki, add a hint of TypeScript compiler, and πŸŽ‰ incredible static code samples

https://shikijs.github.io/twoslash/

License:MIT License


Languages

Language:TypeScript 63.1%Language:HTML 22.9%Language:JavaScript 6.9%Language:SCSS 3.8%Language:CSS 3.3%