Skip to content

Commit 2732f34

Browse files
committed
improve website SEO
1 parent 204ec50 commit 2732f34

28 files changed

Lines changed: 1323 additions & 99 deletions
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
type VideoProps = {
2+
demoPoster: string
3+
demoVideo: string
4+
}
5+
6+
export function Video({ demoPoster, demoVideo }: VideoProps) {
7+
return (
8+
<div className="w-full max-w-200 mt-12 rounded-xl overflow-hidden border border-border bg-surface">
9+
<div className="aspect-1380/1080 flex items-center justify-center text-text-3 text-sm">
10+
<video autoPlay muted loop poster={demoPoster}>
11+
<source src={demoVideo} type="video/mp4" />
12+
</video>
13+
</div>
14+
</div>
15+
)
16+
}

apps/website/docs/extending/plugin-api.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: Build custom React Trace plugins — the TracePlugin interface, available hooks, shared state, scaffolding CLI, and production stub conventions.
3+
---
4+
15
# Creating Plugins
26

37
Extend React Trace by building your own plugins. A plugin is a `TracePlugin` object with a `name` and optional React components for the widget's `toolbar`, `actionPanel`, and `settings` slots.

apps/website/docs/extending/ui-components.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: UI component library for React Trace plugins — buttons, tooltips, popovers, dropdowns, icons, and layout primitives that match the widget's look and feel.
3+
---
4+
15
# UI Components
26

37
`@react-trace/ui-components` provides UI primitives for building plugins that match the widget's look and feel.

apps/website/docs/guide/configuration.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: Configure React Trace props — toolbar position, editor presets, editing controls, and plugin options for both @react-trace/kit and @react-trace/core.
3+
---
4+
15
# Configuration
26

37
## `@react-trace/kit` props

apps/website/docs/guide/index.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: Learn how React Trace works — hover to inspect components, view props and source locations, and run plugin actions like code preview and editor integration.
3+
---
4+
15
import { Hotkey } from '../_components/Hotkey'
26

37
# Introduction

apps/website/docs/guide/installation.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: Install React Trace with @react-trace/kit for a batteries-included setup, or use @react-trace/core with individual plugins for full control.
3+
---
4+
15
# Installation
26

37
## Recommended: `@react-trace/kit`

apps/website/docs/guide/production-stubs.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: How React Trace achieves zero production cost — conditional exports resolve to no-op stubs in production builds, adding no runtime overhead.
3+
---
4+
15
# Production Stubs
26

37
React Trace is a development-only tool. Every package ships **conditional exports** that resolve to zero-cost no-op stubs in production builds.

apps/website/docs/index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
---
22
pageType: home
3+
title: React Trace
4+
description: A development-time React inspector that helps you identify rendered components, resolve their source locations, and run source-aware actions.
35
---

apps/website/docs/plugins/comments.mdx

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
1+
---
2+
description: Comments plugin for React Trace — add inline review comments anchored to components, then copy them to the clipboard or send directly to OpenCode.
3+
---
4+
5+
import { Video } from '../_components/Video'
16
import commentsDemo from '../../theme/videos/comments-demo.mp4'
7+
import commentsDemoPoster from '../../theme/videos/comments-demo.webp'
28

39
# Comments Plugin
410

511
`@react-trace/plugin-comments` adds lightweight review comments to the Trace widget. Collect comments anchored to specific components, then copy them to the clipboard or send them directly to OpenCode.
612

7-
<video
8-
autoPlay
9-
muted
10-
loop
11-
style={{
12-
width: '100%',
13-
borderRadius: '0.75rem',
14-
border: '1px solid var(--rp-c-divider)',
15-
marginTop: '1.5rem',
16-
marginBottom: '1.5rem',
17-
}}
18-
>
19-
<source src={commentsDemo} type="video/mp4" />
20-
</video>
13+
<Video demoPoster={commentsDemoPoster} demoVideo={commentsDemo} />
2114

2215
## Installation
2316

apps/website/docs/plugins/copy-to-clipboard.mdx

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
1+
---
2+
description: Copy to Clipboard plugin for React Trace — copy the selected component's source location as a project-relative path:lineNumber reference.
3+
---
4+
5+
import { Video } from '../_components/Video'
16
import copyToClipboardDemo from '../../theme/videos/copy-to-clipboard-demo.mp4'
7+
import copyToClipboardDemoPoster from '../../theme/videos/copy-to-clipboard-demo.webp'
28

39
# Copy to Clipboard Plugin
410

511
`@react-trace/plugin-copy-to-clipboard` adds a **Copy path** action to the Trace action panel for copying the file:line of the seleced component.
612

7-
<video
8-
autoPlay
9-
muted
10-
loop
11-
style={{
12-
width: '100%',
13-
borderRadius: '0.75rem',
14-
border: '1px solid var(--rp-c-divider)',
15-
marginTop: '1.5rem',
16-
marginBottom: '1.5rem',
17-
}}
18-
>
19-
<source src={copyToClipboardDemo} type="video/mp4" />
20-
</video>
13+
<Video demoPoster={copyToClipboardDemoPoster} demoVideo={copyToClipboardDemo} />
2114

2215
## Installation
2316

0 commit comments

Comments
 (0)