Skip to content

Commit 7d24c63

Browse files
pedrosousanevikashah
authored andcommitted
[Rules] Use DashButton in instructions (#24886)
1 parent 88c8c65 commit 7d24c63

File tree

5 files changed

+59
-44
lines changed

5 files changed

+59
-44
lines changed

src/content/docs/rules/custom-errors/edit-error-pages.mdx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar:
55
order: 2
66
---
77

8-
import { Details } from "~/components";
8+
import { Details, DashButton } from "~/components";
99

1010
## Before you start
1111

@@ -61,13 +61,15 @@ The following HTML code is an example error page for 5XX errors without styling:
6161

6262
To update an account-level custom error page:
6363

64-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
65-
2. Go to **Manage Account** > **Configurations**.
66-
3. Select **Error Pages** and identify your desired custom error page type.
67-
4. (Optional) To preview the current error page (default or custom), select the link in the **Show** column.
68-
5. To edit the error page, select three dots > **Edit** next to the page type you previously identified.
69-
6. To use Cloudflare's default page, select **Cloudflare default page.** To provide a custom error page, select **Custom page** and enter the URL of the custom error page you created.
70-
7. Select **Confirm**.
64+
1. In the Cloudflare dashboard, go to the **Settings** page.
65+
66+
<DashButton url="/?to=/:account/configurations" />
67+
68+
2. Go to **Error Pages** and identify your desired custom error page type.
69+
3. (Optional) To preview the current error page (default or custom), select the link in the **Show** column.
70+
4. To edit the error page, select the three dots > **Edit** next to the page type you previously identified.
71+
5. To use Cloudflare's default page, select **Cloudflare default page.** To provide a custom error page, select **Custom page** and enter the URL of the custom error page you created.
72+
6. Select **Confirm**.
7173

7274
### Zone-level custom error page
7375

@@ -76,7 +78,7 @@ To edit a zone-level custom error page:
7678
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/), and select your account and website.
7779
2. Go to **Error Pages** and identify your desired custom error page type.
7880
3. (Optional) To preview the current error page (default or custom), select the link in the **Show** column.
79-
4. To edit the error page, select three dots > **Edit** next to the page type you previously identified.
81+
4. To edit the error page, select the three dots > **Edit** next to the page type you previously identified.
8082
5. To use Cloudflare's default page, select **Cloudflare default page.** To provide a custom error page, select **Custom page** and enter the URL of the custom error page you created.
8183
6. Select **Confirm**.
8284

src/content/docs/rules/origin-rules/tutorials/point-to-pages-with-custom-domain.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ products:
88
- Origin Rules
99
---
1010

11-
import { Example } from "~/components";
11+
import { Example, DashButton } from "~/components";
1212

1313
This example configures an origin rule and a DNS record to point to a Pages deployment with a custom domain.
1414

@@ -27,8 +27,11 @@ When configuring your Pages custom domain, use a custom domain that you do not p
2727

2828
To add the custom domain to your Pages deployment:
2929

30-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account.
31-
2. Go to **Workers & Pages** and select your Pages project.
30+
1. In the Cloudflare dashboard, go to the **Workers & Pages** page.
31+
32+
<DashButton url="/?to=/:account/workers-and-pages" />
33+
34+
2. Select your Pages project.
3235
3. Go to **Custom domains**.
3336
4. Select **Set up a custom domain**.
3437
5. Enter `blogmirror.example.com` and select **Continue**.

src/content/docs/rules/origin-rules/tutorials/point-to-r2-bucket-with-custom-domain.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ products:
88
- Origin Rules
99
---
1010

11-
import { Example } from "~/components";
11+
import { Example, DashButton } from "~/components";
1212

1313
This example configures an origin rule and a DNS record to point to an R2 bucket configured with a custom domain.
1414

@@ -23,8 +23,11 @@ When configuring your R2 bucket's custom domain, use a custom domain that you do
2323

2424
## 1. Configure custom domain in your Pages project
2525

26-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
27-
2. Go to **R2 Object Storage** and select your bucket.
26+
1. In the Cloudflare dashboard, go to the **R2 object storage** page.
27+
28+
<DashButton url="/?to=/:account/r2/overview" />
29+
30+
2. Select your bucket.
2831
3. On the bucket page, select **Settings**.
2932
4. Under **Public access** > **Custom Domains**, select **Connect Domain**.
3033
5. Enter the domain name you want to connect to — `imagesbucket.example.com` in this example — and select **Continue**.

src/content/docs/rules/trace-request/how-to.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ head:
1111
description: Learn how to use Cloudflare Trace in the dashboard and with the API.
1212
---
1313

14-
import { GlossaryTooltip } from "~/components";
14+
import { GlossaryTooltip, DashButton } from "~/components";
1515

1616
## Use Trace in the dashboard
1717

@@ -22,14 +22,15 @@ import { GlossaryTooltip } from "~/components";
2222

2323
### 2. Build a trace
2424

25-
1. In the [Cloudflare dashboard](https://dash.cloudflare.com), go to Account Home > **Trace**.
25+
1. In the Cloudflare dashboard, go to the **Trace** page.
26+
27+
<DashButton url="/?to=/:account/trace" />
2628

2729
2. Enter a URL to trace. The URL must include a hostname that belongs to your account.
2830

2931
3. Select an HTTP method. If you select _POST_, _PUT_, or _PATCH_, you should enter a value in **Request Body**.
3032

3133
4. (Optional) Define any custom request properties to simulate the conditions of a specific HTTP/S request. You can customize the following request properties:
32-
3334
- **Protocol** (HTTP protocol version)
3435
- **User Agent and Request Headers**
3536
- **Cookies**

src/content/docs/rules/url-forwarding/bulk-redirects/create-dashboard.mdx

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar:
66
label: Create in the dashboard
77
---
88

9-
import { Details, Render } from "~/components";
9+
import { Details, Render, DashButton } from "~/components";
1010

1111
To create Bulk Redirects in the Cloudflare dashboard you must:
1212

@@ -15,7 +15,7 @@ To create Bulk Redirects in the Cloudflare dashboard you must:
1515

1616
You can create Bulk Redirect Lists and Bulk Redirect Rules in the Cloudflare dashboard:
1717

18-
- At the account level, in **Bulk Redirects**.
18+
- At the account level, in **Bulk redirects**.
1919
- At the zone level, go to **Rules** > **Settings** and select the **Bulk Redirects** tab.
2020

2121
However, the lists and rules only exist at the account level and every zone in the same account will show the same items.
@@ -28,45 +28,49 @@ However, the lists and rules only exist at the account level and every zone in t
2828

2929
## 1. Create a Bulk Redirect List
3030

31-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account.
31+
{/* prettier-ignore-start */}
3232

33-
2. Go to Account Home > **Bulk Redirects**.
33+
1. In the Cloudflare dashboard, go to the **Bulk redirects** page.
3434

35-
3. Under **Bulk Redirect Lists**, select **Create Bulk Redirect List**.
35+
<DashButton url="/?to=/:account/bulk-redirects" />
3636

37-
4. Enter a list name and description, and select **Next**.
37+
2. Under **Bulk Redirect Lists**, select **Create Bulk Redirect List**.
3838

39-
5. You can import a CSV file containing several URL redirects or enter URL redirects one at a time in the dashboard.
39+
3. Enter a list name and description, and select **Next**.
4040

41-
:::note
42-
The source URL of each redirect cannot include a query string. For more information, refer to the [supported URL components](/rules/url-forwarding/bulk-redirects/reference/url-components/).
43-
:::
41+
4. You can import a CSV file containing several URL redirects or enter URL redirects one at a time in the dashboard.
42+
43+
:::note
44+
The source URL of each redirect cannot include a query string. For more information, refer to the [supported URL components](/rules/url-forwarding/bulk-redirects/reference/url-components/).
45+
:::
46+
47+
<Details header="Import a CSV file">
4448

45-
<Details header="Import a CSV file">
49+
1. Drag and drop a CSV file containing URL redirects or select **browse** and select a CSV file. For more information on the file format, refer to [CSV file format](/rules/url-forwarding/bulk-redirects/reference/csv-file-format/).
4650

47-
6. Drag and drop a CSV file containing URL redirects or select **browse** and select a CSV file. For more information on the file format, refer to [CSV file format](/rules/url-forwarding/bulk-redirects/reference/csv-file-format/).
51+
2. The dashboard will display the URL redirects that were successfully imported from the file. You can manually adjust the displayed records or add/remove URL redirects before proceeding.
4852

49-
7. The dashboard will display the URL redirects that were successfully imported from the file. You can manually adjust the displayed records or add/remove URL redirects before proceeding.
53+
3. Select **Next**.
5054

51-
8. Select **Next**.
55+
</Details>
5256

53-
</Details>
57+
<Details header="Add URL redirects manually">
5458

55-
<Details header="Add URL redirects manually">
59+
1. Select **Or, manually add URL redirects**.
5660

57-
9. Select **Or, manually add URL redirects**.
61+
2. Enter the URL redirects you wish to add to the list. You must enter at least the following three fields: **Source URL**, **Target URL**, and **Status**. To set additional options, expand **Edit parameters**.
5862

59-
10. Enter the URL redirects you wish to add to the list. You must enter at least the following three fields: **Source URL**, **Target URL**, and **Status**. To set additional options, expand **Edit parameters**.
63+
3. Add more URL redirects, if required.
6064

61-
11. Add more URL redirects, if required.
65+
4. Select **Next**.
6266

63-
12. Select **Next**.
67+
</Details>
6468

65-
</Details>
69+
5. Review and edit the URL redirects you imported or created, and select **Next**.
6670

67-
13. Review and edit the URL redirects you imported or created, and select **Next**.
71+
6. Select **Continue to Redirect Rules** to go to the rule creation page, and follow the instructions in the next section. You must create a Bulk Redirect Rule to enable the URL redirects you defined.
6872

69-
14. Select **Continue to Redirect Rules** to go to the rule creation page, and follow the instructions in the next section. You must create a Bulk Redirect Rule to enable the URL redirects you defined.
73+
{/* prettier-ignore-end */}
7074

7175
:::note[Notes]
7276

@@ -77,9 +81,11 @@ The source URL of each redirect cannot include a query string. For more informat
7781
## 2. Create a Bulk Redirect Rule
7882

7983
1. (Optional) If you are not using the Bulk Redirect List creation wizard according to the instructions in the previous section:
80-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account.
81-
2. Go to Account Home > **Bulk Redirects**.
82-
3. Select **Create Bulk Redirect Rule**.
84+
1. In the Cloudflare dashboard, go to the **Bulk redirects** page.
85+
86+
<DashButton url="/?to=/:account/bulk-redirects" />
87+
88+
2. Select **Create Bulk Redirect Rule**.
8389

8490
2. In **Rule name**, enter a descriptive name for the rule.
8591

0 commit comments

Comments
 (0)