Skip to content

Commit 7c88f3f

Browse files
committed
Update tutorial template
1 parent 6ed680f commit 7c88f3f

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

templates/tutorial-template.mdx

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ content_type: 📝 Tutorial
55
pcx_content_type: tutorial
66
title: Tutorial title. Second-person imperative verb phrase that reflects user goal or job-to-be-done. For example, 'Create a Worker' or 'Build a Pages application'.
77
products:
8-
- Workers
8+
- Workers
99
languages:
10-
- TypeScript
10+
- TypeScript
1111
---
1212

1313
import { Render, PackageManagers } from "~/components";
@@ -34,13 +34,9 @@ In this tutorial, you will learn how to run serverless script on the web by crea
3434

3535
First, use the `c3` CLI to create a new Cloudflare Workers project.
3636

37-
<PackageManagers
38-
type="create"
39-
pkg="cloudflare@latest"
40-
args={"<PROJECT_NAME>"}
41-
/>
37+
<PackageManagers type="create" pkg="cloudflare@latest" args={"<WORKER_NAME>"} />
4238

43-
Replace `<PROJECT_NAME>` with your desired project name.
39+
Replace `<WORKER_NAME>` with your desired Worker name.
4440

4541
## 2. Tets run your Worker on a local server
4642

@@ -49,8 +45,9 @@ Replace `<PROJECT_NAME>` with your desired project name.
4945
Next, change into the newly created Worker's directory.
5046

5147
```sh title="Change directory into worker"
52-
cd <PROJECT_NAME>
48+
cd <WORKER_NAME>
5349
```
50+
5451
Now we can run our Worker locally to test that it works.
5552

5653
```sh title="Run Worker on a local development server"
@@ -81,7 +78,7 @@ export default {
8178

8279
```toml title="wrangler.toml"
8380
#:schema node_modules/wrangler/config-schema.json
84-
name = "<PROJECT_NAME>"
81+
name = "<WORKER_NAME>"
8582
main = "src/index.ts"
8683
compatibility_date = "YYYY-MM-DD"
8784
compatibility_flags = ["nodejs_compat"]
@@ -93,11 +90,11 @@ compatibility_flags = ["nodejs_compat"]
9390
(Aside examples. For more details read our [style guide documentation on Notes/tips/warnings](/style-guide/documentation-content-strategy/component-attributes/notes-tips-warnings/#recommendations).)
9491

9592
:::note[Aside example]
96-
An aside is a colored info box or aside with content (text, images, lists, code blocks) that adds relevant notes that do not fit the main text
93+
An aside is a colored info box or aside with content (text, images, lists, code blocks) that adds relevant notes that do not fit the main text
9794
:::
9895

9996
:::caution[Aside example]
100-
A caution warns users of specific behavior that can break functionality or impact security.
97+
A caution warns users of specific behavior that can break functionality or impact security.
10198
:::
10299

103100
(At the end of the tutorial's steps, summarize what has been successfully achieved by the reader through completing this tutorial)
@@ -112,4 +109,4 @@ To build more with Workers, refer to [Tutorials](/workers/tutorials/).
112109

113110
(External link example)
114111

115-
If you have any questions, need assistance, or would like to share your project, join the Cloudflare Developer community on [Discord](https://discord.cloudflare.com) to connect with other developers and the Cloudflare team.
112+
If you have any questions, need assistance, or would like to share your project, join the Cloudflare Developer community on [Discord](https://discord.cloudflare.com) to connect with other developers and the Cloudflare team.

0 commit comments

Comments
 (0)