Skip to content

Commit d74783c

Browse files
authored
Moving the docs examples section into guides (#1356)
* Links to guides and examples from the introduction page * Moving examples into guides * update the redirect * Fixed broken links * Fixing redirect * Added another redirect rule * Trigger Mintlify build * Removed redirect
1 parent 3af8ae5 commit d74783c

17 files changed

+65
-105
lines changed

docs/config/config-file.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ And add the following environment variable in your Trigger.dev dashboard on the
498498
PUPPETEER_EXECUTABLE_PATH: "/usr/bin/google-chrome-stable",
499499
```
500500

501-
Follow [this example](/examples/puppeteer) to get setup with Trigger.dev and Puppeteer in your project.
501+
Follow [this example](/guides/examples/puppeteer) to get setup with Trigger.dev and Puppeteer in your project.
502502

503503
#### ffmpeg
504504

@@ -532,7 +532,7 @@ export default defineConfig({
532532

533533
This extension will also add the `FFMPEG_PATH` and `FFPROBE_PATH` to your environment variables, making it easy to use popular ffmpeg libraries like `fluent-ffmpeg`.
534534

535-
Follow [this example](/examples/ffmpeg-video-processing) to get setup with Trigger.dev and FFmpeg in your project.
535+
Follow [this example](/guides/examples/ffmpeg-video-processing) to get setup with Trigger.dev and FFmpeg in your project.
536536

537537
#### esbuild plugins
538538

docs/examples/intro.mdx

Lines changed: 0 additions & 19 deletions
This file was deleted.

docs/guides/examples/intro.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: "Introduction"
3+
sidebarTitle: "Introduction"
4+
description: "Learn how to use Trigger.dev with these practical task examples."
5+
---
6+
7+
| Example task | Description |
8+
| :------------------------------------------------------------ | :-------------------------------------------------------------------------- |
9+
| [DALL·E 3 image generation](/guides/examples/dall-e3-generate-image) | Use OpenAI's GPT-4o and DALL·E 3 to generate an image and text. |
10+
| [FFmpeg video processing](/guides/examples/ffmpeg-video-processing) | Use FFmpeg to process a video in various ways and save it to Cloudflare R2. |
11+
| [OpenAI with retrying](/guides/examples/open-ai-with-retrying) | Create a reusable OpenAI task with custom retry options. |
12+
| [PDF to image](/guides/examples/pdf-to-image) | Use `MuPDF` to turn a PDF into images and save them to Cloudflare R2. |
13+
| [React to PDF](/guides/examples/react-pdf) | Use `react-pdf` to generate a PDF and save it to Cloudflare R2. |
14+
| [Puppeteer](/guides/examples/puppeteer) | Use Puppeteer to generate a PDF or scrape a webpage. |
15+
| [Resend email sequence](/guides/examples/resend-email-sequence) | Send a sequence of emails over several days using Resend with Trigger.dev. |
16+
| [Sharp image processing](/guides/examples/sharp-image-processing) | Use Sharp to process an image and save it to Cloudflare R2. |
17+
| [Stripe webhook](/guides/examples/stripe-webhook) | Trigger a task from Stripe webhook events. |
18+
| [Supabase Storage upload](/guides/examples/supabase-storage-upload) | Download a video from a URL and upload it to Supabase Storage using S3. |
19+
| [Vercel AI SDK](/guides/examples/vercel-ai-sdk) | Use Vercel AI SDK to generate text using OpenAI. |

docs/examples/puppeteer.mdx renamed to docs/guides/examples/puppeteer.mdx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import ScrapingWarning from "/snippets/web-scraping-warning.mdx";
1111

1212
There are 3 example tasks to follow on this page:
1313

14-
1. [Basic example](/examples/puppeteer#basic-example)
15-
2. [Generate a PDF from a web page](/examples/puppeteer#generate-a-pdf-from-a-web-page)
16-
3. [Scrape content from a web page](/examples/puppeteer#scrape-content-from-a-web-page)
14+
1. [Basic example](/guides/examples/puppeteer#basic-example)
15+
2. [Generate a PDF from a web page](/guides/examples/puppeteer#generate-a-pdf-from-a-web-page)
16+
3. [Scrape content from a web page](/guides/examples/puppeteer#scrape-content-from-a-web-page)
1717

1818
<ScrapingWarning/>
1919

@@ -143,7 +143,7 @@ There's no payload required for this task so you can just click "Run test" from
143143

144144
### Overview
145145

146-
In this example we use [Puppeteer](https://pptr.dev/) with a [BrowserBase](https://www.browserbase.com/) proxy to scrape the GitHub stars count from the [Trigger.dev](https://trigger.dev) landing page and log it out. See [this list](/examples/puppeteer#proxying) for more proxying services we recommend.
146+
In this example we use [Puppeteer](https://pptr.dev/) with a [BrowserBase](https://www.browserbase.com/) proxy to scrape the GitHub stars count from the [Trigger.dev](https://trigger.dev) landing page and log it out. See [this list](/guides/examples/puppeteer#proxying) for more proxying services we recommend.
147147

148148
<Note>
149149
When web scraping, you MUST use the technique below which uses a proxy with Puppeteer. Direct scraping without using `browserWSEndpoint` is prohibited and will result in account suspension.
@@ -164,12 +164,6 @@ export const puppeteerScrapeWithProxy = task({
164164

165165
const page = await browser.newPage();
166166

167-
// Set up BrowserBase proxy authentication
168-
await page.authenticate({
169-
username: "api",
170-
password: process.env.BROWSERBASE_API_KEY || "",
171-
});
172-
173167
try {
174168
// Navigate to the target website
175169
await page.goto("https://trigger.dev", { waitUntil: "networkidle0" });
File renamed without changes.

0 commit comments

Comments
 (0)