Skip to content

Commit 997a84c

Browse files
jay-sahnanseanmcguire12
authored andcommitted
adding template links to docs (#1317)
# why Updating links on stagehand docs to link to templates. # what changed Links # test plan N/A <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds template links across Stagehand docs so readers can quickly try and run examples on Browserbase. Replaces “Examples” with “Templates” and adds callouts on relevant pages. # Why: - Make examples easier to discover and run via Browserbase templates. - Addresses GRO-716 by adding direct template links in docs. # What: - v2/v3 “Introduction”: change “View Examples” card to “View Templates” → https://www.browserbase.com/templates. - v2/v3 “Computer Use” pages: add callout linking to Computer Use Agents templates. - v2 “Agent” page: add callout linking to the Gemini CUA template. # Test Plan: - Build docs and open updated pages: - v2: basics/agent, best-practices/computer-use, first-steps/introduction - v3: best-practices/computer-use, first-steps/introduction - Confirm callouts render and all links resolve to the correct Browserbase template pages. <sup>Written for commit 41e953b. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
1 parent c843742 commit 997a84c

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

packages/docs/v2/basics/agent.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ await agent.execute("apply for a job at Browserbase")
5757
```
5858
</CodeGroup>
5959

60+
<Callout icon="code" color="#6ec202" iconType="regular">View or run the example template [here](https://www.browserbase.com/templates/gemini-cua)</Callout>
61+
6062
### Use Stagehand Agent with Any LLM
6163

6264
Use the agent without specifying a provider to utilize any model or LLM provider:

packages/docs/v2/best-practices/computer-use.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,6 @@ await agent.execute(
194194
max_steps=10,
195195
)
196196
```
197-
</CodeGroup>
197+
</CodeGroup>
198+
199+
<Callout icon="code" color="#6ec202" iconType="regular">View or run the example templates [here](https://www.browserbase.com/templates?category=Computer+Use+Agents)</Callout>

packages/docs/v2/first-steps/introduction.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ Stagehand is designed for developers building production browser automations and
122122
Generate Stagehand scripts with AI
123123
</Card>
124124
<Card
125-
title="View Examples"
125+
title="View Templates"
126126
icon="code"
127-
href="https://github.com/browserbase/stagehand/tree/v2/examples"
127+
href="https://www.browserbase.com/templates"
128128
>
129129
See real-world automation examples
130130
</Card>

packages/docs/v3/best-practices/computer-use.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,6 @@ const agent = stagehand.agent({
181181
});
182182
```
183183
</Tab>
184-
</Tabs>
184+
</Tabs>
185+
186+
<Callout icon="code" color="#6ec202" iconType="regular">View or run the example templates [here](https://www.browserbase.com/templates?category=Computer+Use+Agents)</Callout>

packages/docs/v3/first-steps/introduction.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ Stagehand is designed for developers building production browser automations and
9797
Generate Stagehand scripts with AI
9898
</Card>
9999
<Card
100-
title="View Examples"
100+
title="View Templates"
101101
icon="code"
102-
href="https://github.com/browserbase/stagehand/tree/main/packages/core/examples"
102+
href="https://www.browserbase.com/templates"
103103
>
104104
See real-world automation examples
105105
</Card>

0 commit comments

Comments
 (0)