[v9.3.x] Use relative aliases for all non-current Grafana aliases (#60111)
* Use relative aliases for all non-current Grafana aliases Prevents non-latest documentation "stealing" the page away from latest and through permanent redirects for latest pages that no longer exist. The redirected pages are indexed by search engines but our robots.txt forbids them crawling the non-latest page. Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Remove all current page aliases find docs/sources -type f -name '*.md' -exec sed -z -i 's#\n *- /docs/grafana/next/[^\n]*\n#\n#' {} \; find docs/sources -type f -name '*.md' -exec sed -z -i 's#\n *- /docs/grafana/latest/[^\n]*\n#\n#' {} \; find docs/sources -type f -name '*.md' -exec sed -Ez -i 's#\n((aliases:\n *-)|aliases:\n)#\n\2#' {} \; Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/getting-started/
|
||||
- /docs/grafana/latest/guides/what-is-grafana/
|
||||
- guides/what-is-grafana/
|
||||
title: Get started
|
||||
weight: 9
|
||||
---
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/getting-started/build-first-dashboard/
|
||||
- /docs/grafana/latest/getting-started/getting-started/
|
||||
- /docs/grafana/latest/guides/getting_started/
|
||||
- /docs/grafana/latest/guides/gettingstarted/
|
||||
- ../guides/getting_started/
|
||||
- ../guides/gettingstarted/
|
||||
- getting-started/
|
||||
description: Learn how to get started with Grafana by adding a preconfigured dashboard.
|
||||
title: Build your first dashboard
|
||||
weight: 200
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/getting-started/get-started-grafana-influxdb/
|
||||
- /docs/grafana/latest/getting-started/getting-started-influxdb/
|
||||
- getting-started-influxdb/
|
||||
description: Learn how to build your first InfluxDB dashboard in Grafana.
|
||||
title: Get started with Grafana and InfluxDB
|
||||
weight: 400
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/getting-started/get-started-grafana-ms-sql-server/
|
||||
- /docs/grafana/latest/getting-started/getting-started-sql/
|
||||
- /docs/grafana/latest/guides/getting_started/
|
||||
- /docs/grafana/latest/guides/gettingstarted/
|
||||
- ../guides/getting_started/
|
||||
- ../guides/gettingstarted/
|
||||
- getting-started-sql/
|
||||
description: Learn how to build your first MS SQL Server dashboard in Grafana.
|
||||
title: Get started with Grafana and MS SQL Server
|
||||
weight: 500
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/getting-started/get-started-grafana-prometheus/
|
||||
- /docs/grafana/latest/getting-started/getting-started-prometheus/
|
||||
- /docs/grafana/latest/guides/getting_started/
|
||||
- /docs/grafana/latest/guides/gettingstarted/
|
||||
- ../guides/getting_started/
|
||||
- ../guides/gettingstarted/
|
||||
- getting-started-prometheus/
|
||||
description: Learn how to build your first Prometheus dashboard in Grafana.
|
||||
title: Get started with Grafana and Prometheus
|
||||
weight: 300
|
||||
|
||||
Reference in New Issue
Block a user