Code samples are a key component of any documentation site. They provide concise examples of how to use a particular software, and readers can often copy and paste code from docs and use them directly in their projects.
I gave a talk on this subject at Reactadelphia in April 2020. Check it out below to learn more about the process of building these components.
If you want to transform TypeScript code samples in your own website, or you just want to look at the source code for this project, check out
npm i remark-typescript