Scroll walkthrough
<ScrollWalkthrough> (alias <Walkthrough>) explains code as the reader scrolls; the code panel follows the current step.
A scroll-driven walkthrough (alias <Walkthrough>): steps on the left, and on the right a code panel that highlights along with the current step. Each fenced code block is a file in the panel (the text after the language is the file name).
<ScrollWalkthrough>
<Step title="Create the client" file="deploy.ts" focus="1-3">
Read the API key and platform URL.
</Step>
<Step title="Upload" focus="5-10">
Upload the source as a gzip tarball and get back a deployment id.
</Step>
<Step title="Wait for completion" focus="12-17">
Poll the status every second until it's ready or failed.
</Step>
```ts deploy.ts
const api = process.env.BITI_API ?? "https://console.butterix.com";
…
```
</ScrollWalkthrough>- 1
Create the client
Read the API key and platform URL.
- 2
Upload
Upload the source as a gzip tarball and get back a deployment id.
- 3
Wait for completion
Poll the status every second until it's ready or failed.
Here <Step> additionally supports file (a file name or zero-based index), focus, highlight, and startLine; inside a step you can nest <Substep title file focus highlight startLine id> (alias <SubStep>) for finer breakdowns.