[v8.5.x] Use relative aliases for all non-current Grafana aliases and remove current page latest aliases (#60062) (#61032)

* Use relative aliases for all non-current Grafana aliases

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/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:
Jack Baldry
2023-01-05 14:29:40 +00:00
committed by GitHub
parent 246b9cc82c
commit 4cacab01f4
589 changed files with 313 additions and 1190 deletions
@@ -1,11 +1,10 @@
---
aliases:
- /docs/grafana/latest/panels/expressions/
- /docs/grafana/latest/panels/inspect-panel/
- /docs/grafana/latest/panels/queries/
- /docs/grafana/latest/panels/query-a-data-source/
- /docs/grafana/latest/panels/share-query-results/
- /docs/sources/panels/query-a-data-source/_index/
- expressions/
- inspect-panel/
- queries/
- share-query-results/
title: Query a data source
weight: 200
---
@@ -1,6 +1,5 @@
---
aliases:
- /docs/grafana/latest/panels/query-a-data-source/about-queries/
- /docs/sources/panels/query-a-data-source/about-queries/
title: About queries
weight: 10
@@ -1,6 +1,5 @@
---
aliases:
- /docs/grafana/latest/panels/query-a-data-source/add-a-query/
- /docs/sources/panels/query-a-data-source/add-a-query/
title: Add a query
weight: 30
@@ -1,6 +1,5 @@
---
aliases:
- /docs/grafana/latest/panels/query-a-data-source/download-raw-query-results/
- /docs/sources/panels/query-a-data-source/download-raw-query-results/
title: Download raw query results
weight: 70
@@ -1,6 +1,5 @@
---
aliases:
- /docs/grafana/latest/panels/query-a-data-source/inspect-query-performance/
- /docs/sources/panels/query-a-data-source/inspect-query-performance/
title: Inspect query performance
weight: 80
@@ -1,6 +1,5 @@
---
aliases:
- /docs/grafana/latest/panels/query-a-data-source/inspect-request-and-response-data/
- /docs/sources/panels/query-a-data-source/inspect-request-and-response-data/
title: Inspect query request and response data
weight: 90
@@ -1,6 +1,5 @@
---
aliases:
- /docs/grafana/latest/panels/query-a-data-source/manage-queries/
- /docs/sources/panels/query-a-data-source/manage-queries/
title: Manage queries
weight: 50
@@ -1,6 +1,5 @@
---
aliases:
- /docs/grafana/latest/panels/query-a-data-source/navigate-query-tab/
- /docs/sources/panels/query-a-data-source/navigate-query-tab/
title: Navigate the query tab
weight: 20
@@ -1,6 +1,5 @@
---
aliases:
- /docs/grafana/latest/panels/query-a-data-source/share-query/
- /docs/sources/panels/query-a-data-source/share-query/
title: Share query results with another panel
weight: 60
@@ -1,6 +1,5 @@
---
aliases:
- /docs/grafana/latest/panels/query-a-data-source/use-expressions-to-manipulate-data/
- /docs/sources/panels/query-a-data-source/use-expressions-to-manipulate-data/
title: Use expressions to manipulate data
weight: 40
@@ -1,6 +1,5 @@
---
aliases:
- /docs/grafana/latest/panels/query-a-data-source/use-expressions-to-manipulate-data/about-expressions/
- /docs/sources/panels/query-a-data-source/use-expressions-to-manipulate-data/about-expressions/
title: About expressions
weight: 10
@@ -1,6 +1,5 @@
---
aliases:
- /docs/grafana/latest/panels/query-a-data-source/use-expressions-to-manipulate-data/write-an-expression/
- /docs/sources/panels/query-a-data-source/use-expressions-to-manipulate-data/write-an-expression/
title: Write an expression
weight: 20