-
Notifications
You must be signed in to change notification settings - Fork 10.4k
[Docs Site] Add WranglerCommand component #17625
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
Conversation
Deploying cloudflare-docs with
|
| 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 |
|
This is very cool. Who is reviewing? |
|
@bllchmbrs FYI - Here's some work being done do improve Wrangler commands' docs you may want to be aware of. |
| ``` | ||
|
|
||
| ### `delete` | ||
| {/* <WranglerCommand cmd="secret delete" /> */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've dropped secret delete, at least (I didn't give content the most intense of reviews — Wrangler team are best placed as owners to spot anything awry there).
Regex parsing looks like it was a pain and a half, so kudos on that working and looking as good as it does. But hopefully we can get something more useful from Wrangler in the future. This script is only going to become more brittle as time goes on without it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10 files reviewed, 1 total issue(s) found.
| It may take up to 1 minute (60 seconds) for a tail to exit sampling mode after adding an option to filter tail messages. | ||
| ::: | ||
|
|
||
| If sampling persists after using options to filter messages, consider using [instant logs](https://developers.cloudflare.com/logs/instant-logs/). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| If sampling persists after using options to filter messages, consider using [instant logs](https://developers.cloudflare.com/logs/instant-logs/). | |
| If sampling persists after using options to filter messages, consider using [instant logs](/logs/instant-logs/). |
Issues:
- Style Guide - (cloudflare.LinkChecks-warning) Warning: When referring to another page in our docs, use the full relative link (
/1.1.1.1/check/) instead of the full URL (https://developers.cloudflare.com/1.1.1.1/check/) or a local development link (http://localhost:111/1.1.1.1/check/).
Fix Explanation:
The issue identified is related to the use of a full URL instead of a relative link. According to the style guide, we should use relative links when referring to other pages within the documentation. I've replaced the full URL with a relative path to adhere to this guideline.


Summary
Add WranglerCommand components.
There is a
scripts/wrangler-commands-json.tsfile which parses the--helpoutput 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: cloudflare/workers-sdk#6526The
WranglerCommandcomponent reads from this JSON file.