Skip to content

Commit 328241d

Browse files
committed
Personalize section headers in template examples
Replace generic "Define/Build/Use the template" headers with context-specific titles that describe what each section does: - Docker: Install Docker, Build and publish, Run containers - Next.js: Set up Next.js with shadcn, Build and publish, Access your app - Expo: Create the Expo project, Build and publish, Access the dev server - Desktop: Set up the desktop environment, Build and publish, Connect to the desktop - Claude Code: Install Claude Code, Build and publish, Run AI prompts
1 parent a870286 commit 328241d

6 files changed

Lines changed: 36 additions & 36 deletions

File tree

docs/template/examples/claude-code.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ description: "Claude Code Agent available in a sandbox"
55

66
Run Claude Code in a sandbox to execute AI-generated code safely.
77

8-
## Define the template
8+
## Install Claude Code
99

10-
Install Claude Code globally with the necessary tools.
10+
Set up Node.js with Claude Code and the tools it needs: curl for fetching, git for repos, and ripgrep for fast code search.
1111

1212
<CodeGroup>
1313

@@ -36,9 +36,9 @@ template = (
3636

3737
</CodeGroup>
3838

39-
## Build the template
39+
## Build and publish
4040

41-
Build and publish the template.
41+
Build the template. Claude Code itself is lightweight, so minimal resources work fine.
4242

4343
<CodeGroup>
4444

@@ -68,9 +68,9 @@ Template.build(claudeCodeTemplate, 'claude-code',
6868

6969
</CodeGroup>
7070

71-
## Use the template
71+
## Run AI prompts
7272

73-
Start a sandbox with your API key and run prompts.
73+
Create a sandbox with your Anthropic API key and pipe prompts to Claude. It can write files, run commands, and build whatever you describe.
7474

7575
<CodeGroup>
7676

docs/template/examples/desktop.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ description: "Sandbox with Ubuntu Desktop and VNC access"
55

66
Ubuntu Desktop with XFCE, accessible via noVNC on port 6080.
77

8-
## Define the template
8+
## Set up the desktop environment
99

10-
Install XFCE desktop environment with noVNC for browser-based access.
10+
Install XFCE with all the essentials: file manager, text editor, LibreOffice, and more. noVNC provides browser-based access without a native VNC client.
1111

1212
<CodeGroup>
1313

@@ -147,9 +147,9 @@ cd /opt/noVNC/utils && ./novnc_proxy --vnc localhost:5900 --listen 6080 --web /o
147147
sleep 2
148148
```
149149

150-
## Build the template
150+
## Build and publish
151151

152-
Build and publish the template.
152+
Build the template. The desktop environment needs more resources than typical sandboxes.
153153

154154
<CodeGroup>
155155

@@ -179,9 +179,9 @@ Template.build(desktopTemplate, 'desktop',
179179

180180
</CodeGroup>
181181

182-
## Use the template
182+
## Connect to the desktop
183183

184-
Start a sandbox and open the desktop in your browser.
184+
Create a sandbox and open the URL in your browser. You'll see a full Ubuntu desktop running in your sandbox.
185185

186186
<CodeGroup>
187187

docs/template/examples/docker.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ description: "Sandbox with Docker installed for running containers"
55

66
Run Docker containers inside the E2B sandbox. Docker daemon is managed by systemd and starts automatically.
77

8-
## Define the template
8+
## Install Docker
99

10-
Install Docker using the official installation script from [get.docker.com](https://get.docker.com).
10+
Use the official installation script from [get.docker.com](https://get.docker.com) to set up Docker. The `hello-world` container validates that everything works.
1111

1212
<CodeGroup>
1313
```typescript JavaScript & TypeScript
@@ -33,9 +33,9 @@ template = (
3333
```
3434
</CodeGroup>
3535

36-
## Build the template
36+
## Build and publish
3737

38-
Build and publish the template.
38+
Build the template with enough resources for Docker operations.
3939

4040
<CodeGroup>
4141
```typescript JavaScript & TypeScript
@@ -63,9 +63,9 @@ Template.build(dockerTemplate, 'e2b-docker-template',
6363
```
6464
</CodeGroup>
6565

66-
## Use the template
66+
## Run containers
6767

68-
Start a sandbox and run containers.
68+
Spin up a sandbox and run any Docker image you need.
6969

7070
<CodeGroup>
7171
```typescript JavaScript & TypeScript

docs/template/examples/expo.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ description: "Expo web app running in the sandbox using Node.js"
55

66
Expo app with the dev server running on port 8081.
77

8-
## Define the template
8+
## Create the Expo project
99

10-
Create an Expo project that starts the dev server automatically.
10+
Scaffold a fresh Expo app. The dev server starts automatically when the sandbox boots.
1111

1212
<CodeGroup>
1313
```typescript JavaScript & TypeScript
@@ -39,9 +39,9 @@ template = (
3939
```
4040
</CodeGroup>
4141

42-
## Build the template
42+
## Build and publish
4343

44-
Build and publish the template.
44+
Build the template with enough memory for the Expo bundler.
4545

4646
<CodeGroup>
4747
```typescript JavaScript & TypeScript
@@ -69,9 +69,9 @@ Template.build(expoTemplate, 'expo-app',
6969
```
7070
</CodeGroup>
7171

72-
## Use the template
72+
## Access the dev server
7373

74-
Start a sandbox and get the URL where your Expo app is running.
74+
Create a sandbox and get the URL. Open it in your browser to see the Expo web preview on port 8081.
7575

7676
<CodeGroup>
7777
```typescript JavaScript & TypeScript

docs/template/examples/nextjs-bun.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ description: "Next.js web app running in the sandbox using Bun"
55

66
Next.js app with Tailwind and shadcn UI using Bun. The dev server starts automatically on port 3000.
77

8-
## Define the template
8+
## Set up Next.js with Bun
99

10-
Create the Next.js project with Bun and all shadcn components.
10+
Use Bun for faster installs and hot reloads. This template includes TypeScript, Tailwind, and all shadcn components.
1111

1212
<CodeGroup>
1313
```typescript JavaScript & TypeScript
@@ -47,9 +47,9 @@ template = (
4747
```
4848
</CodeGroup>
4949

50-
## Build the template
50+
## Build and publish
5151

52-
Build and publish the template.
52+
Build the template. Bun makes the initial setup noticeably faster than npm.
5353

5454
<CodeGroup>
5555
```typescript JavaScript & TypeScript
@@ -77,9 +77,9 @@ Template.build(nextjsTemplate, 'nextjs-app-bun',
7777
```
7878
</CodeGroup>
7979

80-
## Use the template
80+
## Access your app
8181

82-
Start a sandbox and get the URL where your app is running.
82+
Create a sandbox and grab the URL. The dev server with Turbopack is already running on port 3000.
8383

8484
<CodeGroup>
8585
```typescript JavaScript & TypeScript

docs/template/examples/nextjs.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ description: "Next.js web app running in the sandbox using Node.js"
55

66
Next.js app with Tailwind and shadcn UI. The dev server starts automatically on port 3000.
77

8-
## Define the template
8+
## Set up Next.js with shadcn
99

10-
Create the Next.js project with Tailwind and all shadcn components pre-installed.
10+
Scaffold a Next.js project with TypeScript, Tailwind CSS, and every shadcn component ready to use.
1111

1212
<CodeGroup>
1313
```typescript JavaScript & TypeScript
@@ -49,9 +49,9 @@ template = (
4949
```
5050
</CodeGroup>
5151

52-
## Build the template
52+
## Build and publish
5353

54-
Build and publish the template.
54+
Build the template. The first build takes a few minutes since it installs all shadcn components.
5555

5656
<CodeGroup>
5757
```typescript JavaScript & TypeScript
@@ -79,9 +79,9 @@ Template.build(nextjsTemplate, 'nextjs-app',
7979
```
8080
</CodeGroup>
8181

82-
## Use the template
82+
## Access your app
8383

84-
Start a sandbox and get the URL where your app is running.
84+
Create a sandbox and grab the URL. The dev server with Turbopack is already running on port 3000.
8585

8686
<CodeGroup>
8787
```typescript JavaScript & TypeScript

0 commit comments

Comments
 (0)