Skip to content

Commit a20c9fa

Browse files
feat: add raw block support for code snippets in documentation
1 parent 7ea8a3b commit a20c9fa

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

docs/pipeline.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ const {
135135

136136
### Complete Pipeline UI
137137

138+
{% raw %}
139+
138140
```tsx
139141
function DataPipeline() {
140142
const pipeline = usePipeline([
@@ -225,6 +227,8 @@ function DataPipeline() {
225227
}
226228
```
227229

230+
{% endraw %}
231+
228232
### Conditional Stage Skipping
229233

230234
```tsx
@@ -414,6 +418,8 @@ console.log(report.insights);
414418

415419
Build a timeline UI from the metrics:
416420

421+
{% raw %}
422+
417423
```tsx
418424
function PipelineTimeline({ metrics }: { metrics: PipelineMetrics }) {
419425
const startTime = metrics.timeline[0]?.timestamp ?? 0;
@@ -440,6 +446,8 @@ function PipelineTimeline({ metrics }: { metrics: PipelineMetrics }) {
440446
}
441447
```
442448

449+
{% endraw %}
450+
443451
## Pipeline Options
444452

445453
```tsx

docs/react-hooks.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ ComputeKit provides purpose-built React hooks for seamless integration.
2727

2828
Wrap your application with the provider to enable all hooks.
2929

30+
{% raw %}
31+
3032
```tsx
3133
import { ComputeKitProvider } from '@computekit/react';
3234

@@ -39,6 +41,8 @@ function App() {
3941
}
4042
```
4143

44+
{% endraw %}
45+
4246
### Provider Options
4347

4448
| Option | Type | Default | Description |

0 commit comments

Comments
 (0)