Skip to content

Commit 3ea02ee

Browse files
committed
Add note about redirection infra to the README.md
Signed-off-by: Sam Barker <[email protected]>
1 parent b09dc13 commit 3ea02ee

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,15 @@ should go under `/assets/`. To try and preserve a bit of sanity to the repo we s
6060
Some content such as the use-cases include diagrams drawn in Excalidraw. Browsers can't handle the format natively, so instead, in addition to
6161
commiting the `.excalidraw` orginals to the repo, we also export a transparent `.png` for inclusion in the content.
6262

63+
# Redirects
64+
There is nothing more frustrating than reading some documentation or a stack trace with a link to some helpful sounding answer only for that link to be a 404. To try and minimise that pain we have built a Jekyll plugin to generate a redirect from a token to a URL. This plug-in generates a collection of static pages derived from the yaml documents in `_data/redirects`.
65+
Each yaml document defines a namespace for redirections. For example `errors.yaml` will build pages under `/redirects/errors/`. The yaml document takes the format outlined here:
66+
67+
```yaml
68+
baseUrl: https://kroxylicious.io/documentation/ #The base URL to build redirects from
69+
mappings:
70+
- name: test #the token to be the landing url
71+
fromVersion: 0.10.0 #Optional, if not specified the latest release at time of site build is used.
72+
toVersion: 0.12.0 #Optional, if not specified the latest release at time of site build is used.
73+
path: /html/kroxylicious-proxy/#con-configuring-client-connections-proxy # the path within the baseUrl
74+
```

0 commit comments

Comments
 (0)