unjs / undocs

Minimal Documentation theme and CLI for shared usage across UnJS projects.
https://undocs.pages.dev/
MIT License
169 stars 13 forks source link

feat: `twoslash` support #73

Open cpreston321 opened 7 months ago

cpreston321 commented 7 months ago

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

Preview: https://feat-twoslash.undocs.pages.dev/guide/content-transformation#twoslash-code-blocks

This just a reference PR on how to enable it currently so we can test the waters.

๐Ÿ“ Checklist

cloudflare-workers-and-pages[bot] commented 7 months ago

Deploying undocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6fa41d0
Status: โœ…  Deploy successful!
Preview URL: https://c171ed8c.undocs.pages.dev
Branch Preview URL: https://feat-twoslash.undocs.pages.dev

View logs

DylanThomasFr commented 6 months ago

I really like this PR. I wanted to make a PR to integrate twoslash in h3 docs. Can't wait to have this !

pi0 commented 6 months ago

thanks for work on this. i think it would be a good addition but considering that this tool is still not stable and I'm trying to reduce stack size (#51), i would wait until changes (basically content layer rewrite) happen before considering twoslash support to make the migration easier.