From 214fedfd03d1bf427a4c25bd2fa1dab3e6b45270 Mon Sep 17 00:00:00 2001 From: Lucas Rodriguez Date: Thu, 11 Apr 2024 14:21:27 -0500 Subject: [PATCH] docs: add redirect for examples (#2438) ## Description add redirect for examples https://docs.zarf.dev/examples/ ## Checklist before merging - [x] Test, docs, adr added or updated as needed - [x] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow) followed --- netlify.toml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 3521d1663b..3c974ecbf2 100644 --- a/netlify.toml +++ b/netlify.toml @@ -2,7 +2,27 @@ base = "site/" command = "npm run build" publish = "dist/" - ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . src/content/docs ../examples/" + ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . src/content/ ../examples/" [build.environment] NODE_VERSION = "20.11.1" + +[[redirects]] +from = "/docs/the-zarf-cli/cli-commands/*" +to = "/commands/:splat" + +[[redirects]] +from = "/docs/create-a-zarf-package/*" +to = "/ref/" + +[[redirects]] +from = "/docs/deploy-a-zarf-package/*" +to = "/ref/" + +[[redirects]] +from = "/examples/*" +to = "/ref/examples/:splat" + +[[redirects]] +from = "/docs/:page" +to = "/:page"