Skip to content

Commit

Permalink
docs: add redirect for examples (#2438)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
lucasrod16 committed Apr 11, 2024
1 parent 879e7e3 commit 214fedf
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 214fedf

Please sign in to comment.