HACKER Q&A
📣 mlejva

How do you make sure code snippets in docs are working and up to date?


How do you make sure code snippets in docs are working and up to date?


  👤 verdverm Accepted Answer ✓
I use actual code files on disk, write tests, and then have a process for converting them to html snippets (with shiki) and embedding them into the the larger site.

https://github.com/hofstadter-io/cuetorials.com