cloudflare-docs icon indicating copy to clipboard operation
cloudflare-docs copied to clipboard

[Docs Site] Add WranglerCommand component

Open KianNH opened this issue 1 year ago • 2 comments

Summary

Add WranglerCommand components.

There is a scripts/wrangler-commands-json.ts file which parses the --help output of each Wrangler command, and creates a JSON file. This is hopefully a short term solution, as Wrangler moves towards providing it's own structured data: https://github.com/cloudflare/workers-sdk/pull/6526

The WranglerCommand component reads from this JSON file.

KianNH avatar Oct 18 '24 12:10 KianNH

Deploying cloudflare-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: a7c4c90
Status: ✅  Deploy successful!
Preview URL: https://b0e1e67e.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://kian-pcx-14259.cloudflare-docs-7ou.pages.dev

View logs

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/workers/wrangler/commands/ https://kian-pcx-14259.cloudflare-docs-7ou.pages.dev/workers/wrangler/commands/
https://developers.cloudflare.com/style-guide/components/wrangler-command/ https://kian-pcx-14259.cloudflare-docs-7ou.pages.dev/style-guide/components/wrangler-command/
https://developers.cloudflare.com/workers/tutorials/create-finetuned-chatgpt-ai-models-with-r2/ https://kian-pcx-14259.cloudflare-docs-7ou.pages.dev/workers/tutorials/create-finetuned-chatgpt-ai-models-with-r2/
https://developers.cloudflare.com/workers/tutorials/github-sms-notifications-using-twilio/ https://kian-pcx-14259.cloudflare-docs-7ou.pages.dev/workers/tutorials/github-sms-notifications-using-twilio/
https://developers.cloudflare.com/ai-gateway/tutorials/deploy-aig-worker/ https://kian-pcx-14259.cloudflare-docs-7ou.pages.dev/ai-gateway/tutorials/deploy-aig-worker/
https://developers.cloudflare.com/workers/tutorials/build-a-jamstack-app/ https://kian-pcx-14259.cloudflare-docs-7ou.pages.dev/workers/tutorials/build-a-jamstack-app/
https://developers.cloudflare.com/workers/tutorials/openai-function-calls-workers/ https://kian-pcx-14259.cloudflare-docs-7ou.pages.dev/workers/tutorials/openai-function-calls-workers/
https://developers.cloudflare.com/workers/wrangler/configuration/ https://kian-pcx-14259.cloudflare-docs-7ou.pages.dev/workers/wrangler/configuration/
https://developers.cloudflare.com/workers/wrangler/deprecations/ https://kian-pcx-14259.cloudflare-docs-7ou.pages.dev/workers/wrangler/deprecations/
https://developers.cloudflare.com/workers/wrangler/environments/ https://kian-pcx-14259.cloudflare-docs-7ou.pages.dev/workers/wrangler/environments/

github-actions[bot] avatar Oct 18 '24 12:10 github-actions[bot]

This is very cool. Who is reviewing?

irvinebroque avatar Oct 21 '24 19:10 irvinebroque

@bllchmbrs FYI - Here's some work being done do improve Wrangler commands' docs you may want to be aware of.

pedrosousa avatar Oct 30 '24 09:10 pedrosousa

Optional positionals are colored differently to required positionals. Is that intentional?

image

vs.

image

GregBrimble avatar Nov 04 '24 05:11 GregBrimble