Skip to content

Commit

Permalink
[Workers] (WIP) Assets (#16610)
Browse files Browse the repository at this point in the history
* Assets docs

* Frameworks Guides (#17023)

* Create C3 Frameworks component and rename Typescript to TypeScript

* Rename deploy-via-c3 props

* Add some framework guides for Workers Assets

* Update deploy command docs

* Move stuff around a bit

* Final touch-ups

* Hide framework guides external link

* Fix a bunch of dead links

* compat-matrix

* content updates

* vitest limitation

* edits from feedback

* more content updates

* feedback

* small fix

* Greg's pass of assets docs

---------

Co-authored-by: Greg Brimble <gbrimble@cloudflare.com>
Co-authored-by: emily-shen <69125074+emily-shen@users.noreply.github.com>
  • Loading branch information
3 people authored and patriciasantaana committed Sep 26, 2024
1 parent a423a69 commit 0c9ed17
Show file tree
Hide file tree
Showing 89 changed files with 2,520 additions and 1,258 deletions.
1 change: 1 addition & 0 deletions .github/styles/config/vocabularies/cloudflare/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ WordPress
Worker
Workers
[wW]rangler
wrangler.toml
VMware
VPN
YubiKey
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run
---

<h2>Code Examples</h2>
<Details header="Workers - Typescript">
<Details header="Workers - TypeScript">
<Code code={worker} lang="ts" />
</Details>

Expand Down
2 changes: 1 addition & 1 deletion src/components/models/code/ImageClassificationCode.astro
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run
---

<h2>Code Examples</h2>
<Details header="Workers - Typescript">
<Details header="Workers - TypeScript">
<Code code={worker} lang="ts" />
</Details>

Expand Down
2 changes: 1 addition & 1 deletion src/components/models/code/ImageToTextCode.astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export default {
---

<h2>Code Examples</h2>
<Details header="Workers - Typescript">
<Details header="Workers - TypeScript">
<Code code={worker} lang="ts" />
</Details>
2 changes: 1 addition & 1 deletion src/components/models/code/ObjectDetectionCode.astro
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run
---

<h2>Code Examples</h2>
<Details header="Workers - Typescript">
<Details header="Workers - TypeScript">
<Code code={worker} lang="ts" />
</Details>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run
---

<h2>Code Examples</h2>
<Details header="Workers - Typescript">
<Details header="Workers - TypeScript">
<Code code={worker} lang="ts" />
</Details>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run
---

<h2>Code Examples</h2>
<Details header="Workers - Typescript">
<Details header="Workers - TypeScript">
<Code code={worker} lang="ts" />
</Details>

Expand Down
2 changes: 1 addition & 1 deletion src/components/models/code/SummarizationCode.astro
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ curl https://api.cloudflare.com/client/v4/accounts/{cf_account_id}/ai/run/${name
---

<h2>Code Examples</h2>
<Details header="Workers - Typescript">
<Details header="Workers - TypeScript">
<Code code={worker} lang="ts" />
</Details>

Expand Down
2 changes: 1 addition & 1 deletion src/components/models/code/TextClassificationCode.astro
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run
---

<h2>Code Examples</h2>
<Details header="Workers - Typescript">
<Details header="Workers - TypeScript">
<Code code={worker} lang="ts" />
</Details>

Expand Down
2 changes: 1 addition & 1 deletion src/components/models/code/TextEmbeddingCode.astro
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run
---

<h2>Code Examples</h2>
<Details header="Workers - Typescript">
<Details header="Workers - TypeScript">
<Code code={worker} lang="ts" />
</Details>

Expand Down
2 changes: 1 addition & 1 deletion src/components/models/code/TextToImageCode.astro
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run
---

<h2>Code Examples</h2>
<Details header="Workers - Typescript">
<Details header="Workers - TypeScript">
<Code code={worker} lang="ts" />
</Details>

Expand Down
2 changes: 1 addition & 1 deletion src/components/models/code/TranslationCode.astro
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run
---

<h2>Code Examples</h2>
<Details header="Workers - Typescript">
<Details header="Workers - TypeScript">
<Code code={worker} lang="ts" />
</Details>

Expand Down
6 changes: 3 additions & 3 deletions src/content/docs/ai-gateway/tutorials/deploy-aig-worker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ Create a Worker project in the command line:
file="c3-post-run-steps"
product="workers"
params={{
one: "Hello World example",
two: "Hello World Worker",
three: "JavaScript",
category: "hello-world",
type: "Hello World Worker",
lang: "JavaScript",
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ Create a new Worker project named `browser-worker` by running:
file="c3-post-run-steps"
product="workers"
params={{
one: "Hello World example",
two: "Hello World Worker",
three: "TypeScript",
category: "hello-world",
type: "Hello World Worker",
lang: "TypeScript",
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ Create a new Worker project named `browser-worker` by running:
file="c3-post-run-steps"
product="workers"
params={{
one: "Hello World example",
two: "Hello World Worker",
three: "JavaScript / Typescript",
category: "hello-world",
type: "Hello World Worker",
lang: "JavaScript / TypeScript",
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ Create your dispatch Worker. In this example, the dispatch Worker is called `my-
file="c3-post-run-steps"
product="workers"
params={{
one: "Hello World example",
two: "Hello World Worker",
three: "JavaScript",
category: "hello-world",
type: "Hello World Worker",
lang: "JavaScript",
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ Support for Workers for Platforms with `wrangler dev` in local mode is experimen
file="c3-post-run-steps"
product="workers"
params={{
one: "Hello World example",
two: "Hello World Worker",
three: "JavaScript",
category: "hello-world",
type: "Hello World Worker",
lang: "JavaScript",
}}
/>

Expand Down Expand Up @@ -72,9 +72,9 @@ dispatch_namespace = "my-namespace"
file="c3-post-run-steps"
product="workers"
params={{
one: "Hello World example",
two: "Hello World Worker",
three: "JavaScript",
category: "hello-world",
type: "Hello World Worker",
lang: "JavaScript",
}}
/>

Expand Down Expand Up @@ -128,9 +128,9 @@ outbound = { service = "outbound-worker", parameters = ["paramCustomerName"] }
file="c3-post-run-steps"
product="workers"
params={{
one: "Hello World example",
two: "Hello World Worker",
three: "JavaScript",
category: "hello-world",
type: "Hello World Worker",
lang: "JavaScript",
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ This will prompt you to install the [`create-cloudflare`](https://www.npmjs.com/
file="c3-post-run-steps"
product="workers"
params={{
one: "Hello World example",
two: "Hello World Worker",
three: "JavaScript",
category: "hello-world",
type: "Hello World Worker",
lang: "JavaScript",
}}
/>

Expand Down
Loading

0 comments on commit 0c9ed17

Please sign in to comment.