From 820c8f38bb0f98a2deec5ad870c83dab491e7902 Mon Sep 17 00:00:00 2001 From: Denise Pena Date: Wed, 9 Oct 2024 10:37:11 -0500 Subject: [PATCH 1/7] Added tutorials folder & moved pages into folder --- .../docs/r2/{examples => tutorials}/cloudflare-access.mdx | 3 ++- src/content/docs/r2/{examples => tutorials}/mastodon.mdx | 0 src/content/docs/r2/{ => tutorials}/tutorials.mdx | 1 + .../upload-logs-event-notifications.mdx | 0 4 files changed, 3 insertions(+), 1 deletion(-) rename src/content/docs/r2/{examples => tutorials}/cloudflare-access.mdx (98%) rename src/content/docs/r2/{examples => tutorials}/mastodon.mdx (100%) rename src/content/docs/r2/{ => tutorials}/tutorials.mdx (90%) rename src/content/docs/r2/{examples => tutorials}/upload-logs-event-notifications.mdx (100%) diff --git a/src/content/docs/r2/examples/cloudflare-access.mdx b/src/content/docs/r2/tutorials/cloudflare-access.mdx similarity index 98% rename from src/content/docs/r2/examples/cloudflare-access.mdx rename to src/content/docs/r2/tutorials/cloudflare-access.mdx index 2df90b7b836e9be..d692ba7d6289b99 100644 --- a/src/content/docs/r2/examples/cloudflare-access.mdx +++ b/src/content/docs/r2/tutorials/cloudflare-access.mdx @@ -1,6 +1,7 @@ --- title: Protect an R2 Bucket with Cloudflare Access -pcx_content_type: example +pcx_content_type: tutorial +content_type: 📝 Tutorial --- diff --git a/src/content/docs/r2/examples/mastodon.mdx b/src/content/docs/r2/tutorials/mastodon.mdx similarity index 100% rename from src/content/docs/r2/examples/mastodon.mdx rename to src/content/docs/r2/tutorials/mastodon.mdx diff --git a/src/content/docs/r2/tutorials.mdx b/src/content/docs/r2/tutorials/tutorials.mdx similarity index 90% rename from src/content/docs/r2/tutorials.mdx rename to src/content/docs/r2/tutorials/tutorials.mdx index 0e65aa988dfad1d..4ac10fcaaf858f7 100644 --- a/src/content/docs/r2/tutorials.mdx +++ b/src/content/docs/r2/tutorials/tutorials.mdx @@ -1,6 +1,7 @@ --- pcx_content_type: navigation title: Tutorials +content_type: 📝 Tutorial sidebar: order: 8 diff --git a/src/content/docs/r2/examples/upload-logs-event-notifications.mdx b/src/content/docs/r2/tutorials/upload-logs-event-notifications.mdx similarity index 100% rename from src/content/docs/r2/examples/upload-logs-event-notifications.mdx rename to src/content/docs/r2/tutorials/upload-logs-event-notifications.mdx From b95ec00bf428bd828d63762ccb9ec436b48ed29f Mon Sep 17 00:00:00 2001 From: Denise Pena Date: Wed, 9 Oct 2024 11:00:40 -0500 Subject: [PATCH 2/7] Added redirects --- public/_redirects | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/_redirects b/public/_redirects index 7d3e2318f46240d..082d645af53c39b 100644 --- a/public/_redirects +++ b/public/_redirects @@ -1155,6 +1155,9 @@ /r2/reference/changelog/index.xml /r2/platform/changelog/index.xml 301 /r2/reference/limits/ /r2/platform/limits/ 301 /r2/reference/metrics-analytics/ /r2/platform/metrics-analytics/ 301 +/r2/examples/mastodon/ /r2/tutorials/mastodon/ 301 +/r2/examples/postman/ /r2/tutorials/postman/ 301 +/r2/examples/cloudflare-access/ /r2/tutorials/cloudflare-access/ 301 # style-guide /style-guide/formatting/symbols-in-ui-element-names/ /style-guide/formatting/ui-elements/ 301 From de50a64411025f122b7766a98ae9226e2960b5e8 Mon Sep 17 00:00:00 2001 From: Denise Pena Date: Wed, 9 Oct 2024 11:18:13 -0500 Subject: [PATCH 3/7] Fixed broken link --- src/content/docs/r2/buckets/event-notifications.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/r2/buckets/event-notifications.mdx b/src/content/docs/r2/buckets/event-notifications.mdx index ae520e627efd47b..c28f2371898bd53 100644 --- a/src/content/docs/r2/buckets/event-notifications.mdx +++ b/src/content/docs/r2/buckets/event-notifications.mdx @@ -50,7 +50,7 @@ $ npx wrangler r2 bucket notification create --event-type --event-type --queue --prefix "" --suffix "" ``` -For a more complete step-by-step example, refer to the [Log and store upload events in R2 with event notifications](/r2/examples/upload-logs-event-notifications/) example. +For a more complete step-by-step example, refer to the [Log and store upload events in R2 with event notifications](/r2/tutorials/upload-logs-event-notifications/) example. ## Event notification rules From e1d27c5ffc5b13109cd327c3342cbb2bc14977f5 Mon Sep 17 00:00:00 2001 From: Denise Pena Date: Wed, 9 Oct 2024 11:37:06 -0500 Subject: [PATCH 4/7] Renamed page to index --- src/content/docs/r2/tutorials/{tutorials.mdx => index.mdx} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/content/docs/r2/tutorials/{tutorials.mdx => index.mdx} (100%) diff --git a/src/content/docs/r2/tutorials/tutorials.mdx b/src/content/docs/r2/tutorials/index.mdx similarity index 100% rename from src/content/docs/r2/tutorials/tutorials.mdx rename to src/content/docs/r2/tutorials/index.mdx From e7f6ec51bd2597a4469008159b1c1e93ec62cd99 Mon Sep 17 00:00:00 2001 From: Denise Pena Date: Wed, 9 Oct 2024 11:49:49 -0500 Subject: [PATCH 5/7] Forgot to move Postman tutorial --- src/content/docs/r2/{examples => tutorials}/postman.mdx | 1 + 1 file changed, 1 insertion(+) rename src/content/docs/r2/{examples => tutorials}/postman.mdx (99%) diff --git a/src/content/docs/r2/examples/postman.mdx b/src/content/docs/r2/tutorials/postman.mdx similarity index 99% rename from src/content/docs/r2/examples/postman.mdx rename to src/content/docs/r2/tutorials/postman.mdx index bce4fa49221af91..73dddf74104f486 100644 --- a/src/content/docs/r2/examples/postman.mdx +++ b/src/content/docs/r2/tutorials/postman.mdx @@ -1,6 +1,7 @@ --- title: Postman summary: Learn how to configure Postman to interact with R2. +content_type: 📝 Tutorial pcx_content_type: example description: Learn how to configure Postman to interact with R2. From bab9cc601277e70a9327b2a58360d540219d3ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denise=20Pe=C3=B1a?= <75506267+dcpena@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:49:22 -0500 Subject: [PATCH 6/7] Apply suggestions from code review Co-authored-by: Pedro Sousa <680496+pedrosousa@users.noreply.github.com> --- public/_redirects | 1 + src/content/docs/r2/tutorials/postman.mdx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/_redirects b/public/_redirects index 082d645af53c39b..b3b370c0f0afef7 100644 --- a/public/_redirects +++ b/public/_redirects @@ -1158,6 +1158,7 @@ /r2/examples/mastodon/ /r2/tutorials/mastodon/ 301 /r2/examples/postman/ /r2/tutorials/postman/ 301 /r2/examples/cloudflare-access/ /r2/tutorials/cloudflare-access/ 301 +/r2/examples/upload-logs-event-notifications/ /r2/tutorials/upload-logs-event-notifications/ 301 # style-guide /style-guide/formatting/symbols-in-ui-element-names/ /style-guide/formatting/ui-elements/ 301 diff --git a/src/content/docs/r2/tutorials/postman.mdx b/src/content/docs/r2/tutorials/postman.mdx index 73dddf74104f486..10afc2d32d6dcff 100644 --- a/src/content/docs/r2/tutorials/postman.mdx +++ b/src/content/docs/r2/tutorials/postman.mdx @@ -2,7 +2,7 @@ title: Postman summary: Learn how to configure Postman to interact with R2. content_type: 📝 Tutorial -pcx_content_type: example +pcx_content_type: tutorial description: Learn how to configure Postman to interact with R2. --- From b387edcd4db27095c5f0cf58bde3b80346e8c3ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denise=20Pe=C3=B1a?= <75506267+dcpena@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:49:49 -0500 Subject: [PATCH 7/7] Removed content type --- src/content/docs/r2/tutorials/index.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/content/docs/r2/tutorials/index.mdx b/src/content/docs/r2/tutorials/index.mdx index 4ac10fcaaf858f7..0e65aa988dfad1d 100644 --- a/src/content/docs/r2/tutorials/index.mdx +++ b/src/content/docs/r2/tutorials/index.mdx @@ -1,7 +1,6 @@ --- pcx_content_type: navigation title: Tutorials -content_type: 📝 Tutorial sidebar: order: 8