[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,8 +1,7 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/
|
||||
- /docs/grafana/latest/http_api/
|
||||
- /docs/grafana/latest/overview/
|
||||
- ../http_api/
|
||||
- ../overview/
|
||||
description: Grafana HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/access_control/
|
||||
- /docs/grafana/latest/http_api/access_control/
|
||||
- /docs/grafana/latest/http_api/accesscontrol/
|
||||
- ../../http_api/access_control/
|
||||
- ../../http_api/accesscontrol/
|
||||
description: ''
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/admin/
|
||||
- /docs/grafana/latest/http_api/admin/
|
||||
- ../../http_api/admin/
|
||||
description: Grafana Admin HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/alerting/
|
||||
- /docs/grafana/latest/http_api/alerting/
|
||||
- ../../http_api/alerting/
|
||||
description: Grafana Alerts HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/alerting_notification_channels/
|
||||
- /docs/grafana/latest/http_api/alerting_notification_channels/
|
||||
- ../../http_api/alerting_notification_channels/
|
||||
description: Grafana Alerting Notification Channel HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/alerting_provisioning/
|
||||
- /docs/grafana/latest/http_api/alerting_provisioning/
|
||||
- ../../http_api/alerting_provisioning/
|
||||
description: Grafana Alerts HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/annotations/
|
||||
- /docs/grafana/latest/http_api/annotations/
|
||||
- ../../http_api/annotations/
|
||||
description: Grafana Annotations HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
@@ -11,7 +10,7 @@ keywords:
|
||||
- annotation
|
||||
- annotations
|
||||
- comment
|
||||
title: 'Annotations HTTP API'
|
||||
title: Annotations HTTP API
|
||||
---
|
||||
|
||||
# Annotations API
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/auth/
|
||||
- /docs/grafana/latest/http_api/auth/
|
||||
- /docs/grafana/latest/http_api/authentication/
|
||||
- ../../http_api/auth/
|
||||
- ../../http_api/authentication/
|
||||
description: Grafana Authentication HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/correlations/
|
||||
- /docs/grafana/latest/http_api/correlations/
|
||||
- ../../http_api/correlations/
|
||||
description: Grafana Correlations HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/create-api-tokens-for-org/
|
||||
- /docs/grafana/latest/http_api/create-api-tokens-for-org/
|
||||
- /docs/grafana/latest/tutorials/api_org_token_howto/
|
||||
- ../../http_api/create-api-tokens-for-org/
|
||||
- ../../tutorials/api_org_token_howto/
|
||||
keywords:
|
||||
- grafana
|
||||
- tutorials
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/curl-examples/
|
||||
- /docs/grafana/latest/http_api/curl-examples/
|
||||
- ../../http_api/curl-examples/
|
||||
description: cURL examples
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/dashboard/
|
||||
- /docs/grafana/latest/http_api/dashboard/
|
||||
- ../../http_api/dashboard/
|
||||
description: Grafana Dashboard HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
@@ -9,7 +8,7 @@ keywords:
|
||||
- documentation
|
||||
- api
|
||||
- dashboard
|
||||
title: 'Dashboard HTTP API'
|
||||
title: Dashboard HTTP API
|
||||
---
|
||||
|
||||
# Dashboard API
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/dashboard_permissions/
|
||||
- /docs/grafana/latest/http_api/dashboard_permissions/
|
||||
- /docs/grafana/latest/http_api/dashboardpermissions/
|
||||
- ../../http_api/dashboard_permissions/
|
||||
- ../../http_api/dashboardpermissions/
|
||||
description: Grafana Dashboard Permissions HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
@@ -13,7 +12,7 @@ keywords:
|
||||
- permission
|
||||
- permissions
|
||||
- acl
|
||||
title: 'Dashboard Permissions HTTP API'
|
||||
title: Dashboard Permissions HTTP API
|
||||
---
|
||||
|
||||
# Dashboard Permissions API
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/dashboard_versions/
|
||||
- /docs/grafana/latest/http_api/dashboard_versions/
|
||||
- /docs/grafana/latest/http_api/dashboardversions/
|
||||
- ../../http_api/dashboard_versions/
|
||||
- ../../http_api/dashboardversions/
|
||||
description: Grafana Dashboard Versions HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/data_source/
|
||||
- /docs/grafana/latest/http_api/data_source/
|
||||
- /docs/grafana/latest/http_api/datasource/
|
||||
- ../../http_api/data_source/
|
||||
- ../../http_api/datasource/
|
||||
description: Grafana Data source HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
@@ -10,7 +9,7 @@ keywords:
|
||||
- documentation
|
||||
- api
|
||||
- data source
|
||||
title: 'Data source HTTP API'
|
||||
title: Data source HTTP API
|
||||
---
|
||||
|
||||
# Data source API
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/datasource_permissions/
|
||||
- /docs/grafana/latest/http_api/datasource_permissions/
|
||||
- /docs/grafana/latest/http_api/datasourcepermissions/
|
||||
- ../../http_api/datasource_permissions/
|
||||
- ../../http_api/datasourcepermissions/
|
||||
description: Data Source Permissions API
|
||||
keywords:
|
||||
- grafana
|
||||
@@ -14,7 +13,7 @@ keywords:
|
||||
- permissions
|
||||
- acl
|
||||
- enterprise
|
||||
title: 'Datasource Permissions HTTP API'
|
||||
title: Datasource Permissions HTTP API
|
||||
---
|
||||
|
||||
# Data Source Permissions API
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/external_group_sync/
|
||||
- /docs/grafana/latest/http_api/external_group_sync/
|
||||
- ../../http_api/external_group_sync/
|
||||
description: Grafana External Group Sync HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
@@ -13,7 +12,7 @@ keywords:
|
||||
- group
|
||||
- member
|
||||
- enterprise
|
||||
title: 'External Group Sync HTTP API'
|
||||
title: External Group Sync HTTP API
|
||||
---
|
||||
|
||||
# External Group Synchronization API
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/folder/
|
||||
- /docs/grafana/latest/http_api/folder/
|
||||
- ../../http_api/folder/
|
||||
description: Grafana Folder HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
@@ -9,7 +8,7 @@ keywords:
|
||||
- documentation
|
||||
- api
|
||||
- folder
|
||||
title: 'Folder HTTP API'
|
||||
title: Folder HTTP API
|
||||
---
|
||||
|
||||
# Folder API
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/folder_dashboard_search/
|
||||
- /docs/grafana/latest/http_api/folder_dashboard_search/
|
||||
- ../../http_api/folder_dashboard_search/
|
||||
description: Grafana Folder/Dashboard Search HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
@@ -11,7 +10,7 @@ keywords:
|
||||
- search
|
||||
- folder
|
||||
- dashboard
|
||||
title: 'Folder/Dashboard Search HTTP API'
|
||||
title: Folder/Dashboard Search HTTP API
|
||||
---
|
||||
|
||||
# Folder/Dashboard Search API
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/folder_permissions/
|
||||
- /docs/grafana/latest/http_api/dashboardpermissions/
|
||||
- /docs/grafana/latest/http_api/folder_permissions/
|
||||
- ../../http_api/dashboardpermissions/
|
||||
- ../../http_api/folder_permissions/
|
||||
description: Grafana Folder Permissions HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
@@ -13,7 +12,7 @@ keywords:
|
||||
- permission
|
||||
- permissions
|
||||
- acl
|
||||
title: 'Folder Permissions HTTP API'
|
||||
title: Folder Permissions HTTP API
|
||||
---
|
||||
|
||||
# Folder Permissions API
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/library_element/
|
||||
- /docs/grafana/latest/http_api/library_element/
|
||||
- ../../http_api/library_element/
|
||||
description: Grafana Library Element HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/licensing/
|
||||
- /docs/grafana/latest/http_api/licensing/
|
||||
- ../../http_api/licensing/
|
||||
description: Enterprise Licensing HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
@@ -10,7 +9,7 @@ keywords:
|
||||
- api
|
||||
- licensing
|
||||
- enterprise
|
||||
title: 'Licensing HTTP API'
|
||||
title: Licensing HTTP API
|
||||
---
|
||||
|
||||
# Enterprise License API
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/org/
|
||||
- /docs/grafana/latest/http_api/org/
|
||||
- /docs/grafana/latest/http_api/organization/
|
||||
- ../../http_api/org/
|
||||
- ../../http_api/organization/
|
||||
description: Grafana Organization HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
@@ -10,7 +9,7 @@ keywords:
|
||||
- documentation
|
||||
- api
|
||||
- organization
|
||||
title: 'Organization HTTP API'
|
||||
title: Organization HTTP API
|
||||
---
|
||||
|
||||
# Organization API
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/other/
|
||||
- /docs/grafana/latest/http_api/other/
|
||||
- ../../http_api/other/
|
||||
description: Grafana Other HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/playlist/
|
||||
- /docs/grafana/latest/http_api/playlist/
|
||||
- ../../http_api/playlist/
|
||||
description: Playlist Admin HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/preferences/
|
||||
- /docs/grafana/latest/http_api/preferences/
|
||||
- ../../http_api/preferences/
|
||||
description: Grafana HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/query_history/
|
||||
- /docs/grafana/latest/http_api/query_history/
|
||||
- ../../http_api/query_history/
|
||||
description: Grafana Query History HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/reporting/
|
||||
- /docs/grafana/latest/http_api/reporting/
|
||||
- ../../http_api/reporting/
|
||||
description: Grafana Enterprise APIs
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/serviceaccount/
|
||||
- /docs/grafana/latest/http_api/serviceaccount/
|
||||
- ../../http_api/serviceaccount/
|
||||
description: Grafana service account HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
@@ -9,7 +8,7 @@ keywords:
|
||||
- documentation
|
||||
- api
|
||||
- serviceaccount
|
||||
title: 'Service account HTTP API'
|
||||
title: Service account HTTP API
|
||||
---
|
||||
|
||||
# Service account API
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/short_url/
|
||||
- /docs/grafana/latest/http_api/short_url/
|
||||
- ../../http_api/short_url/
|
||||
description: Grafana Short URL HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/snapshot/
|
||||
- /docs/grafana/latest/http_api/snapshot/
|
||||
- ../../http_api/snapshot/
|
||||
description: Grafana HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/team/
|
||||
- /docs/grafana/latest/http_api/team/
|
||||
- ../../http_api/team/
|
||||
description: Grafana Team HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
@@ -11,7 +10,7 @@ keywords:
|
||||
- team
|
||||
- teams
|
||||
- group
|
||||
title: 'Team HTTP API'
|
||||
title: Team HTTP API
|
||||
---
|
||||
|
||||
# Team API
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/developers/http_api/user/
|
||||
- /docs/grafana/latest/http_api/user/
|
||||
- ../../http_api/user/
|
||||
description: Grafana User HTTP API
|
||||
keywords:
|
||||
- grafana
|
||||
@@ -9,7 +8,7 @@ keywords:
|
||||
- documentation
|
||||
- api
|
||||
- user
|
||||
title: 'User HTTP API'
|
||||
title: User HTTP API
|
||||
---
|
||||
|
||||
# User API
|
||||
|
||||
Reference in New Issue
Block a user