Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal for updated Workers AI side nav #21023

Open
wants to merge 2 commits into
base: production
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions public/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -1666,6 +1666,47 @@
/workers/observability/baselime-integration/ /workers/observability/integrations/baselime-integration/ 301
/workers-ai/tutorials/image-generator-flux/ /workers-ai/tutorials/image-generation-playground/ 301

# Workers AI reorganization redirects
# Function calling
/workers-ai/function-calling /workers-ai/tools/function-calling/ 301
/workers-ai/function-calling/ /workers-ai/tools/function-calling/ 301
/workers-ai/function-calling/embedded/ /workers-ai/tools/function-calling/embedded/ 301
/workers-ai/function-calling/embedded/* /workers-ai/tools/function-calling/embedded/:splat 301
/workers-ai/function-calling/traditional/ /workers-ai/tools/function-calling/traditional/ 301
/workers-ai/function-calling/index/ /workers-ai/tools/function-calling/ 301
/workers-ai/function-calling/* /workers-ai/tools/function-calling/:splat 301
Copy link
Contributor

@kodster28 kodster28 Mar 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dynamic redirects need to go at the bottom of our file. Maybe just update at the end of all the moving around?


# JSON Mode
/workers-ai/json-mode /workers-ai/tools/json-mode/ 301
/workers-ai/json-mode/ /workers-ai/tools/json-mode/ 301
/workers-ai/json-mode/* /workers-ai/tools/json-mode/:splat 301

# Fine-tunes
/workers-ai/fine-tunes /workers-ai/tools/fine-tunes/ 301
/workers-ai/fine-tunes/ /workers-ai/tools/fine-tunes/ 301
/workers-ai/fine-tunes/* /workers-ai/tools/fine-tunes/:splat 301

# Prompting
/workers-ai/guides/prompting /workers-ai/tools/prompting/ 301
/workers-ai/guides/prompting/ /workers-ai/tools/prompting/ 301
/workers-ai/guides/prompting/* /workers-ai/tools/prompting/:splat 301

# Platform section
/workers-ai/privacy /workers-ai/platform/privacy/ 301
/workers-ai/privacy/ /workers-ai/platform/privacy/ 301
/workers-ai/glossary /workers-ai/platform/glossary/ 301
/workers-ai/glossary/ /workers-ai/platform/glossary/ 301
/workers-ai/workers-ai-errors /workers-ai/platform/errors/ 301
/workers-ai/workers-ai-errors/ /workers-ai/platform/errors/ 301

# Guides section
/workers-ai/demos /workers-ai/guides/demos-architectures/ 301
/workers-ai/demos/ /workers-ai/guides/demos-architectures/ 301
/workers-ai/demos/* /workers-ai/guides/demos-architectures/:splat 301
/workers-ai/tutorials /workers-ai/guides/tutorials/ 301
/workers-ai/tutorials/ /workers-ai/guides/tutorials/ 301
/workers-ai/tutorials/* /workers-ai/guides/tutorials/:splat 301

# workflows

/workflows/reference/storage-options/ /workers/platform/storage-options/ 301
Expand Down
14 changes: 14 additions & 0 deletions src/content/docs/workers-ai/agents.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: Agents
pcx_content_type: navigation
external_link: /agents/
sidebar:
order: 7
---

import { LinkButton } from "~/components"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this content if you have the external_link prop set.


<div style={{ textAlign: 'center', marginBottom: '2rem' }}>
<p>Build AI assistants that can perform complex tasks on behalf of your users using Cloudflare Workers AI and Agents.</p>
<LinkButton href="/agents/">Go to Agents documentation</LinkButton>
</div>
2 changes: 1 addition & 1 deletion src/content/docs/workers-ai/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Changelog
release_notes_file_name:
- workers-ai
sidebar:
order: 8
order: 9
head: []
description: Review recent changes to Cloudflare Workers AI.
---
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/workers-ai/get-started/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pcx_content_type: navigation
title: Getting started
sidebar:
order: 2
order: 1

---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
pcx_content_type: navigation
pcx_content_type: concept
title: Demos and architectures
hideChildren: true
sidebar:
order: 6

order: 2
---

import { ExternalResources, GlossaryTooltip, ResourcesBySelector } from "~/components"
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/workers-ai/guides/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pcx_content_type: navigation
sidebar:
group:
hideIndex: true
order: 2
order: 5
---

import { DirectoryListing } from "~/components";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pcx_content_type: navigation
title: Tutorials
hideChildren: true
sidebar:
order: 5
order: 3
---

import { GlossaryTooltip, ListTutorials } from "~/components";
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/workers-ai/models/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pcx_content_type: navigation
title: Models
hideChildren: true
sidebar:
order: 3
order: 2
---

import ModelCatalog from "~/pages/workers-ai/models/index.astro";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Errors
pcx_content_type: concept
sidebar:
order: 5
---

Below is a list of Workers AI errors.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Glossary
pcx_content_type: glossary
sidebar:
order: 19
order: 4
---

import { Glossary } from "~/components";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Privacy
pcx_content_type: reference
sidebar:
order: 10
order: 2
head:
- tag: title
content: Your Data and Workers AI
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/workers-ai/playground.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ pcx_content_type: navigation
title: Playground
external_link: https://playground.ai.cloudflare.com
sidebar:
order: 2
order: 8

---
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pcx_content_type: navigation
title: Fine-tunes
sidebar:
order: 5
order: 3

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pcx_content_type: navigation
title: Function calling
sidebar:
order: 5
order: 1
badge:
text: Beta
---
Expand Down
12 changes: 12 additions & 0 deletions src/content/docs/workers-ai/tools/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
pcx_content_type: navigation
title: Tools
sidebar:
group:
hideIndex: true
order: 4
---

import { DirectoryListing } from "~/components";

<DirectoryListing />
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pcx_content_type: navigation
title: JSON Mode
hideChildren: true
sidebar:
order: 5
order: 2
---

import { Code } from "~/components";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
pcx_content_type: navigation
pcx_content_type: concept
title: Prompting
hideChildren: true
sidebar:
order: 2
order: 4
---

import { Code } from "~/components";
Expand Down