Skip to content

Commit 4a5230e

Browse files
authored
Redirect top level spec/<proj> dir to the latest version (#2773)
This is to allow redirect of openmetrics.io domain to https://prometheus.io/docs/specs/om/ on CNCF side and then be able to dynamically switch latest on our side. Signed-off-by: bwplotka <[email protected]>
1 parent a04d7ce commit 4a5230e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

public/_redirects

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
/docs/specs/remote_write_spec /docs/specs/prw/remote_write_spec
2727
/docs/specs/remote_write_spec_2_0 /docs/specs/prw/remote_write_spec_2_0
2828

29+
# Per spec sub dirs should point the currently "latest" version.
30+
# E.g. https://openmetrics.io redirects to https://prometheus.io/docs/specs/om
31+
/docs/specs/om /docs/specs/om/open_metrics_spec
32+
/docs/specs/prw /docs/specs/prw/remote_write_spec_2_0
33+
2934
# Redirect for HTTP SD docs, which briefly lived in the wrong category / repo.
3035
/docs/instrumenting/http_sd/ /docs/prometheus/latest/http_sd/
3136

0 commit comments

Comments
 (0)