From 1bc14fa3008179335374335d6508393d55aabbfb Mon Sep 17 00:00:00 2001 From: Billy Lynch Date: Thu, 31 Aug 2023 18:12:19 -0400 Subject: [PATCH] Redirect /predicate/chains to Chains documentation. This is a placeholder for SLSA predicate type documentation. We may try to figure out how to handle these better with the doc import process later on, but we need these to keep URL structure that AFAIK sync.py doesn't support well today. --- .gitignore | 4 +++- public/_redirects | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 public/_redirects diff --git a/.gitignore b/.gitignore index f3d183ae..68d62f2d 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,9 @@ node_modules/ # Generated content resources/_gen/ -public/ +public/** +## Allow redirect file. +!public/_redirects assets/js/version-switcher.js assets/js/release-switcher.js diff --git a/public/_redirects b/public/_redirects new file mode 100644 index 00000000..d6562a6d --- /dev/null +++ b/public/_redirects @@ -0,0 +1,2 @@ +# Chains predicate docs. +/predicate/chains/* https://github.com/tektoncd/chains/tree/main/docs/predicate/:splat